Week 2 update // Angus in the Olive suit
So in the last weeeek, i may have gotten the instructions wrong and used an animation instead of a movie. I saw the look on prof’s face and it told me enough. SO here I am two weeks later with an updated data!
This time I used fully vertex(), and curveVertex(), as I used mousePressed to tell me the coordinates of all the angles using the following:
void mousePressed(){
ellipse( mouseX, mouseY, 2, 2 );
text( "x: " + mouseX + " y: " + mouseY, mouseX + 2, mouseY );
print(mouseX, mouseY);
Expand
The code is the following:
void setup() {
size (700, 300);
background(136, 128,146);
//road
//1
beginShape();
noStroke();
fill(164,115,72);
vertex(321,206);
vertex(125,300);
vertex(368,300);
vertex(349,210);
endShape();
//road 2
beginShape();
noStroke();
fill(178,134,94);
vertex(368,300);
vertex(349,210);
vertex(357,209);
vertex(404,300);
endShape();
//road 3
beginShape();
noStroke();
fill(134,96,59);
vertex(357,209);
vertex(404,300);
vertex(700, 300);
vertex(699,239);
vertex(487,205);
endShape();
//buildings
fill(250,196,178);
beginShape();
vertex(125,300);
vertex(321,206);
vertex(321,179);
vertex(291,164);
vertex(285,166);
vertex(284,157);
vertex(257,154);
vertex(256,147);
vertex(245,136);
vertex(216,133);
vertex(215,119);
vertex(166,115);
vertex(165,94);
vertex(133,78);
vertex(132,71);
vertex(116,56);
vertex(94,52);
vertex(94,39);
vertex(76,20);
vertex(0,18);
vertex(0,300);
endShape(CLOSE);
beginShape();
vertex(437,165);
vertex(485,100);
vertex(499,98);
vertex(505,92);
vertex(498,89);
vertex(540,37);
vertex(540,17);
vertex(529,17);
vertex(538,4);
vertex(700,0);
vertex(699,239);
vertex(494,207);
vertex(436,209);
endShape(CLOSE);
//head
beginShape();
stroke(164, 28,10);
fill(164, 28,10);
curveVertex(320,129);
curveVertex(320,129);
curveVertex(320,117);
curveVertex(334,115);
curveVertex(336,128);
curveVertex(336,128);
endShape();
//face
noStroke();
fill(221, 148,102);
ellipse (328, 128, 12,14);
//face features
strokeWeight(2);
stroke(126, 59,24);
point(324,125);
point(332,125);
point(328,132);
//left foot
beginShape();
noStroke();
fill (124,96,46);
curveVertex(318,233);
curveVertex(318,233);
curveVertex(324,234);
curveVertex(326,250);
curveVertex(324,258);
curveVertex(320,258);
curveVertex(319,252);
curveVertex(319,252);
endShape(CLOSE);
//right foot
beginShape();
noStroke();
fill (43,16,0);
curveVertex(329,236);
curveVertex(329,236);
curveVertex(337,236);
curveVertex(335,258);
curveVertex(333,266);
curveVertex(328,267);
curveVertex(328,255);
curveVertex(328,255);
endShape(CLOSE);
//main body
noStroke();
fill(157,131,1);
ellipse(330,185,80,100);
//collar
beginShape();
noStroke();
fill(164, 28,10);
curveVertex(323,135);
curveVertex(323,135);
curveVertex(312,141);
curveVertex(347,139);
curveVertex(333,135);
curveVertex(333,135);
endShape();
//arms - left
beginShape();
noStroke();
fill (97,63,23);
curveVertex(303,171);
curveVertex(303,171);
curveVertex(312,169);
curveVertex(306,194);
curveVertex(298,193);
curveVertex(298,193);
endShape(CLOSE);
//arms - right
beginShape();
noStroke();
fill (97,63,23);
curveVertex(347,170);
curveVertex(347,170);
curveVertex(354,172);
curveVertex(355,182);
curveVertex(349,191);
curveVertex(342,189);
curveVertex(342,189);
endShape(CLOSE);
//tyres
fill(24,16,12);
beginShape();
vertex(396,245);
vertex(395,267);
vertex(402,269);
vertex(401,277);
vertex(420, 277);
vertex(418,255);
endShape(CLOSE);
beginShape();
vertex(543,240);
vertex(547,254);
vertex(559,251);
vertex(560,262);
vertex(582,261);
vertex(584,241);
vertex(568,235);
endShape(CLOSE);
//car
fill(106, 99,92);
beginShape();
vertex (409,133);
vertex (398,171);
vertex (392,168);
vertex (379,170);
vertex (376,176);
vertex (399,180);
vertex (389,197);
vertex (392,240);
vertex (408,256);
vertex (582,240);
vertex (580,197);
vertex (559,163);
vertex (569,160);
vertex (570,153);
vertex (563,148);
vertex (556,149);
vertex (554,155);
vertex (522,120);
endShape();
//car deets
fill(24,16,12);
beginShape();
vertex(440,234);
vertex(439,247);
vertex(563,233);
vertex(561,223);
endShape(CLOSE);
beginShape();
vertex(445,203);
vertex(448,209);
vertex(499,211);
vertex(540,200);
vertex(545,192);
vertex(499,200);
endShape(CLOSE);
fill (68,64,52);
beginShape();
vertex(413,140);
vertex(408,172);
vertex(551,158);
vertex(524,128);
endShape(CLOSE);
fill (198,144,114);
beginShape();
vertex(408,186);
vertex(410,207);
vertex(445,211);
vertex(427,185);
endShape(CLOSE);
beginShape();
vertex(578,192);
vertex(549,202);
vertex(551,175);
vertex(565,170);
endShape(CLOSE);