-Miles Shamo
My mother requested a Godzilla; I’m not sure this looks like it (especially after the hat). It needs some sort of spines, but I struggled enough with rotating shapes for today. I think I’ll stick towards the abstract in the future.
The code:
//My mother requested a gozilla, so its terrible
size(1000, 1000);
//draws a grid for refference
boolean debug = false;
if (debug)
{
for (int i = 0; i <= 1000; i+= 100)
{
line (i, 0, i, 1000);
line (0, i, 1000, i);
}
}
//tail
fill(#989898);
beginShape();
curveVertex(50, 1000);
curveVertex(100, 900);
curveVertex(200, 850);
curveVertex(300, 700);//Body Join
curveVertex(300, 900);
curveVertex(100, 900);
curveVertex(50, 1000);
endShape();
//body
pushMatrix();
float width = 300;
float height = 530;
translate(300 + width / 2, 700);
rotate(PI/7);
ellipse(0, 0, width, height);
/* OLD Body
beginShape();
curveVertex(250, 900);
curveVertex(300, 700);
curveVertex(350, 550);
curveVertex(375, 500);
curveVertex(400, 475);
curveVertex(600, 350);
endShape();
*/
popMatrix();
//head
pushMatrix();
translate(600, 500);
rotate(PI/7);
//give the guy a hat
fill (#C63A3A);
triangle(0, -100, 100, -100, 50, -200);
//
fill(#989898);
beginShape();
curveVertex(-100, 0);
curveVertex(-100, 0);
curveVertex(0, -100);
curveVertex(100, -100);
curveVertex(150, 0);
curveVertex(100, 50);
curveVertex(50, 50);
curveVertex(-100, 0);
curveVertex(-100, -250);
endShape();
popMatrix();
//eye
fill(255);
ellipse(700, 475, 40, 70);
strokeWeight(15);
point(700, 500);
//front leg
fill(#989898);
strokeWeight(1);
beginShape();
curveVertex(300, 800);
curveVertex(400, 800);
curveVertex(550, 800);
curveVertex(600, 900);
curveVertex(600, 950);
curveVertex(650, 1000);
curveVertex(400, 1000);
curveVertex(425, 900);
curveVertex(400, 800);
curveVertex(300, 800);
endShape();
//arm
beginShape();
curveVertex(500, 600);
curveVertex(600, 600);
curveVertex(650, 680);
curveVertex(700, 700);
curveVertex(600, 700);
curveVertex(600, 600);
curveVertex(500, 600);
endShape();