Hello,
Below is the code I typed out to create my robot for my class using Processing for the first time.
size (720, 480);
smooth();
strokeWeight(5);
background(181);
ellipseMode (RADIUS);
//Neck
stroke(18, 45, 52); //set stroke to grey
line (245, 280, 266, 115); //Left
line (276, 257, 276, 162); //Middle
line (286, 240, 286, 162); //Right
// Antennae
line (276, 50, 246, 122); //small
line (276, 155, 306, 56); //Tall
//Body
noStroke(); //Disable Stroke
fill (80, 75, 150);
ellipse (240, 360, 33, 33); //back wheel L
fill (80, 75, 150);
ellipse (300, 360, 33, 33); //back wheel R
fill (31, 110, 131); //Set fill to black
rect (219, 210, 100, 150); //Main Body
fill (75, 80, 200);
ellipse (300, 377, 33, 33); //front Wheel R
fill (75, 80, 200);
ellipse (230, 377, 33, 33); //front Wheel L
fill (255);
rect (219, 274, 100, 15); //white Stripe
fill (255);
rect (219, 220, 100, 8); //white Stripe
//Head
fill(94, 150, 196);
rect (230, 100, 80, 80); //Head
fill (255);
rect (250, 170, 50, 4); //white Stripe
fill (255); //Set fill to white
ellipse (288, 150, 14, 14); //Large eye
fill (255); //Set fill to white
ellipse (245, 150, 14, 14); //Large eye
fill (0); //Set fill to black
ellipse (288, 150, 3, 3); //Pupil
fill (0); //Set fill to black
ellipse (245, 150, 3, 3); //Pupil
fill (97, 221, 225);
ellipse (308, 55, 5, 5); //small eye 1
ellipse (296, 130, 4, 4); //small eye 2
ellipse (305, 55, 3, 3); //small eye 3
ellipse (275, 55, 8, 8); //small eye 3
Below is the code I typed out to create my robot for my class using Processing for the first time.
size (720, 480);
smooth();
strokeWeight(5);
background(181);
ellipseMode (RADIUS);
//Neck
stroke(18, 45, 52); //set stroke to grey
line (245, 280, 266, 115); //Left
line (276, 257, 276, 162); //Middle
line (286, 240, 286, 162); //Right
// Antennae
line (276, 50, 246, 122); //small
line (276, 155, 306, 56); //Tall
//Body
noStroke(); //Disable Stroke
fill (80, 75, 150);
ellipse (240, 360, 33, 33); //back wheel L
fill (80, 75, 150);
ellipse (300, 360, 33, 33); //back wheel R
fill (31, 110, 131); //Set fill to black
rect (219, 210, 100, 150); //Main Body
fill (75, 80, 200);
ellipse (300, 377, 33, 33); //front Wheel R
fill (75, 80, 200);
ellipse (230, 377, 33, 33); //front Wheel L
fill (255);
rect (219, 274, 100, 15); //white Stripe
fill (255);
rect (219, 220, 100, 8); //white Stripe
//Head
fill(94, 150, 196);
rect (230, 100, 80, 80); //Head
fill (255);
rect (250, 170, 50, 4); //white Stripe
fill (255); //Set fill to white
ellipse (288, 150, 14, 14); //Large eye
fill (255); //Set fill to white
ellipse (245, 150, 14, 14); //Large eye
fill (0); //Set fill to black
ellipse (288, 150, 3, 3); //Pupil
fill (0); //Set fill to black
ellipse (245, 150, 3, 3); //Pupil
fill (97, 221, 225);
ellipse (308, 55, 5, 5); //small eye 1
ellipse (296, 130, 4, 4); //small eye 2
ellipse (305, 55, 3, 3); //small eye 3
ellipse (275, 55, 8, 8); //small eye 3