# Processing drawing

Screen drawing in Processing using 2d primitive shapes: quad(), rect(), triangle(), beginShape(), endShape() and basic color functions: background(), fill(), stroke().
size(800, 800); background(255,255,255); smooth(); stroke(255,255,255); strokeWeight(2); translate(400, 250); rotate(PI/4); // HEAD fill(170,60,30); //orange3 rect(0,0,120,120); fill(240,135,50); //orange1 rect(30,30,120,120); fill(210,90,40); //orange2 rect(30,30,90,90); fill(240,135,50); //orange1 rect(0,0,60,60); // BODY fill(240,135,50); //orange1 rect(150,150,120,120); fill(210,90,40); //orange2 rect(180,180,90,90); fill(170,60,30); //orange3 rect(210,210,60,60); fill(210,90,40); //orange2 rect(210,270,60,60); fill(210,90,40); //orange2 rect(270,210,60,60); fill(170,60,30); //orange3 rect(270,270,30,30); // BODY-RIGHT fill(210,90,40); //orange2 beginShape(); vertex(152, 30); vertex(180, 30); vertex(180, 120); vertex(270, 120); vertex(270, 150); vertex(152, 150); endShape(); fill(240,135,50); //orange1 rect(270,180,60,30); fill(170,60,30); //orange3 triangle(180,30,270,120,180,120); fill(170,60,30); //orange3 triangle(270,120,330,180,270,180); // BODY-LEFT fill(210,90,40); //orange2 beginShape(); vertex(30, 152); vertex(30, 180); vertex(120, 180); vertex(120, 270); vertex(150, 270); vertex(150, 152); endShape(); fill(240,135,50); //orange1 rect(180,270,30,60); fill(170,60,30); //orange3 triangle(30,180,120,180,120,270); fill(170,60,30); //orange3 triangle(120,270,180,270,180,330); // LEGS-RIGHT fill(100,0,50); //purple2 quad(90,0,90,-60,120,-30,120,0); quad(150,30,150,-30,180,0,180,30); quad(210,60,330,60,300,90,240,90); fill(130,50,80); //purple1 quad(90,-60,120,-90,120,-68,100,-50); quad(150,-30,243,-30,228,-15,165,-15); quad(330,60,330,147,315,135,315,75); fill(100,0,50); //purple2 quad(114,-142,120,-142,120,-90,114,-84); quad(235,-30,275,-70,280,-67,243,-30); rect(330,140,60,6); // LEGS-LEFT fill(100,0,50); //purple2 quad(0,90,-60,90,-30,120,0,120); quad(30,150,-30,150,0,180,30,180); quad(60,210,60,330,90,300,90,240); fill(130,50,80); //purple1 quad(-60,90,-90,120,-68,120,-50,100); quad(-30,150,-30,243,-15,228,-15,165); quad(60,330,147,330,135,315,75,315); fill(100,0,50); //purple2 quad(-142,114,-142,120,-90,120,-84,114); quad(-30,235,-70,275,-67,280,-30,243); rect(140,330,6,60); // ANTENNA-RIGHT fill(100,0,50); //purple2 quad(30,0,-15,-45,15,-45,60, 0); //ghfhg quad(-15,-45,-15,-135,-8,-129,-8,-45); quad(-15,-135,28,-180,38,-180,-10,-130); quad(39,-180, 60,-180, 60,-174, 33,-174); quad(27,-168, 48,-168, 48,-162, 22,-162); quad(16,-156, 36,-156, 36,-150, 10,-150); // ANTENNA-LEFT fill(100,0,50); //purple2 quad(0,30,-45,-15,-45,15,0,60); quad(-45,-15,-135,-15,-129,-8,-45,-8); quad(-135,-15,-180,28,-180,38,-130,-10); quad(-180,39,-180,60,-174,60,-174,33); quad(-168,27,-168,48,-162,48,-162,22); quad(-156,16,-156,36,-150,36,-150,10); |