xxxxxxxxxx
size(500,500);
background(200,50,100);
//ROBOT CENTER (250,150)
int x = 250;
int y = 150;
//head
rectMode(CENTER);
rect(x,y,130,100);
fill(0,0,100,50);
ellipse(x-35,y-10,30,30);
ellipse(x+35,y-10,30,30);
triangle(x-30,y+20,x+30,y+20,x,y+35);
stroke(0);
strokeWeight(2);
line(x,y-67,x+50,y-90);
ellipse(x+50,y-90,5,5);
fill(0,0,0,80);
beginShape();
curveVertex(x-10,y-50);
curveVertex(x-10,y-50);
curveVertex(x,y-65);
curveVertex(x+10,y-50);
curveVertex(x+10,y-50);
endShape();
//neck
fill(0,0,0,80);
beginShape();
curveVertex(x-30,y+50);
curveVertex(x-30,y+50);
curveVertex(x,y+70);
curveVertex(x+30,y+50);
curveVertex(x+30,y+50);
endShape();
//body
fill(0,0,70);
quad(x-20,y+70,x+20,y+70,x+50,y+200,x-50,y+200);
//leg
strokeWeight(10);
//left
line(x-20,y+200,x-20,y+260);
//right
line(x+20,y+200,x+20,y+260);
//foot
rectMode(CENTER);
//left
rect(x-20,y+260,11,8);
//right
rect(x+20,y+260,11,8);
//arm+hand
stroke(255,255,255,99);
strokeWeight(8);
//left
line(x-38,y+135,x-90,y+135);
line(x-90,y+135,x-90,y+110);
line(x-90,y+110,x-110,y+110);
rect(x-120,y+100,11,8);
//right
line(x+30,y+100,x+100,y+50);
line(x+100,y+50,x+70,y+20);
rect(x+70,y+20,11,8);