xxxxxxxxxx
/*-----------------------------
Star Wars Looking Robot
Able to traverse rough terrain, but slowly, but scans the area with ease.
18 Jan 2017
Nicholas Nowak
jedinick@msn.com
Class 3001 8:10 AM Tues, Thurs
-----------------------------*/
size(500,400);
background(255);
rectMode(CENTER);
//Antenna
noFill();
beginShape();
curveVertex(200, 145);
curveVertex(225, 91);
curveVertex(228, 19);
curveVertex(221, 17);
endShape();
//Head
fill(0,0,25);
ellipse(200,100,100,100);
fill(125,0,0);
ellipse(200,100,50,50);
//Body
fill(0,125,125);
rect(200,200,100,200);
fill(0,0,25,50);
rectMode(CORNER);
rect(150,150,50,100);
//Scanner
fill(255,0,0);
ellipseMode(CENTER);
ellipse(200, 200, 50, 50);
//Scanning Beam
fill(175,0,0,75);
triangle(200,200, 50, 75,100,75);
triangle(200,200, 300,50,450,50);
//Wheels, threads
fill(0,0,25,75);
ellipse(200,325,50,50);
ellipse(250,325,50,50);
ellipse(150,325,50,50);