aboutsummaryrefslogtreecommitdiffstats
path: root/dev/robot_transforms
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-09-20 18:15:14 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-09-20 18:15:14 -0500
commit342403a02f8063903d0f38327430721d4d0ae331 (patch)
tree29d020a27bc16939c568dd4b29166566d1c0e658 /dev/robot_transforms
parentFix parenthesis (diff)
downloadcsci4611-342403a02f8063903d0f38327430721d4d0ae331.tar
csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.gz
csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.bz2
csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.lz
csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.xz
csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.zst
csci4611-342403a02f8063903d0f38327430721d4d0ae331.zip
Diffstat (limited to 'dev/robot_transforms')
-rw-r--r--dev/robot_transforms/robot_transforms.pde156
1 files changed, 78 insertions, 78 deletions
diff --git a/dev/robot_transforms/robot_transforms.pde b/dev/robot_transforms/robot_transforms.pde
index 380c34f..d3dd45f 100644
--- a/dev/robot_transforms/robot_transforms.pde
+++ b/dev/robot_transforms/robot_transforms.pde
@@ -1,78 +1,78 @@
-
-
-float t = 0.0;
-
-void setup()
-{
- size(600, 310);
- smooth();
-}
-
-void draw() {
- background(255);
- drawFloor();
- drawRobot();
- t += 0.05;
-}
-
-
-void drawRobot() {
-
-}
-
-
-// HELPER ROUTINES FOR DRAWING THE ROBOT'S BODY PARTS
-
-// 50x65 rectangle with origin at bottom center (pelvis area)
-void drawTorso() {
- noStroke();
- fill(38, 38, 200);
- rect(-25, -65, 50, 65); // body
-}
-
-// 38x30 rectangle with origin at bottom center
-void drawHead() {
- noStroke();
- fill(38, 38, 200);
- rect(-19, -30, 38, 30);
- fill(222, 222, 249);
- ellipse(-8, -18, 12, 12); // left eye
- ellipse( 8, -18, 12, 12); // right eye
-}
-
-// 12x26 rectangle with origin at top center
-void drawArmPart() {
- noStroke();
- fill(38, 38, 200);
- rect(-6, 0, 12, 26);
-}
-
-// 12x20 ellipse with origin at the top center
-void drawHand() {
- noStroke();
- fill(122, 122, 249);
- ellipse(0, 10, 12, 20);
-}
-
-// 16x40 rectangle with origin at top center
-void drawLegPart() {
- noStroke();
- fill(38, 38, 200);
- rect(-8, 0, 16, 40);
-}
-
-// 26x12 ellipse with origin at top center
-void drawFoot() {
- noStroke();
- fill(122, 122, 249);
- ellipse(0, 6, 26, 12);
-}
-
-
-
-void drawFloor()
-{
- noStroke();
- fill(100, 255, 100);
- rect(0, 300, 600, 10);
-}
+
+
+float t = 0.0;
+
+void setup()
+{
+ size(600, 310);
+ smooth();
+}
+
+void draw() {
+ background(255);
+ drawFloor();
+ drawRobot();
+ t += 0.05;
+}
+
+
+void drawRobot() {
+
+}
+
+
+// HELPER ROUTINES FOR DRAWING THE ROBOT'S BODY PARTS
+
+// 50x65 rectangle with origin at bottom center (pelvis area)
+void drawTorso() {
+ noStroke();
+ fill(38, 38, 200);
+ rect(-25, -65, 50, 65); // body
+}
+
+// 38x30 rectangle with origin at bottom center
+void drawHead() {
+ noStroke();
+ fill(38, 38, 200);
+ rect(-19, -30, 38, 30);
+ fill(222, 222, 249);
+ ellipse(-8, -18, 12, 12); // left eye
+ ellipse( 8, -18, 12, 12); // right eye
+}
+
+// 12x26 rectangle with origin at top center
+void drawArmPart() {
+ noStroke();
+ fill(38, 38, 200);
+ rect(-6, 0, 12, 26);
+}
+
+// 12x20 ellipse with origin at the top center
+void drawHand() {
+ noStroke();
+ fill(122, 122, 249);
+ ellipse(0, 10, 12, 20);
+}
+
+// 16x40 rectangle with origin at top center
+void drawLegPart() {
+ noStroke();
+ fill(38, 38, 200);
+ rect(-8, 0, 16, 40);
+}
+
+// 26x12 ellipse with origin at top center
+void drawFoot() {
+ noStroke();
+ fill(122, 122, 249);
+ ellipse(0, 6, 26, 12);
+}
+
+
+
+void drawFloor()
+{
+ noStroke();
+ fill(100, 255, 100);
+ rect(0, 300, 600, 10);
+}