//Yash Mittal
// Section D
function setup() {
createCanvas(600,700);
background(255,196,206);
}
function draw() {
noStroke();
fill(34,10,11);
ellipse(300,360,230,80); //shoulder
fill(150,117,86);//neck
quad(280,300,320,300,340,340,260,340); //neck
ellipse(300,340,80,40); //neck ellipse
fill(80,77,67);//shadow
ellipse(315,325,33,10);
quad(260,290,318,290,332,325,300,327);//shadow
fill(150,117,86);
ellipse((width/2),(height/2)-140,150,200); //face
fill(34,10,11);
rect(186,360,228,240);//main body
fill(255,243,139);//belt
rect(186,600,228,20);
fill(81,192,248);//legs
rect(186,620,85,200);
rect(329,620,85,200);
fill(34,10,11);//arms
rotate(20/3.0);
ellipse(320,388,60,300);
rotate(20/3.0);
ellipse(530,-120,63,300);
fill(150,117,86); // hands
ellipse(489,365,60,60); // left hand
ellipse(530,-250,63,63)//right hand
fill(35,42,51);//glasses
stroke(255,243,139);
strokeWeight(2);
ellipse(325,-55,40,40);
ellipse(365,-94,40,40);
line(312,-40,291,-25);
line(380,-110,395,-128);
line(341,-71,350,-80)
stroke(1,0,0);//mouth
line(386,-10,415,-30);
line(300,-74,320,-85);//eyebrows
line(335,-100,350,-120);
noStroke();//hat
rotate(-40/3.0);
fill(223,103,72);
ellipse(300,128,180,30);//hat
rect(250,70,100,70);
ellipse(300,70,100,30)
fill(211,213,216);//hat highlight
arc(265,132,100,9,TWO_PI,PI);
arc(274,110,50,6,TWO_PI,PI);
}
The most challenging part about this project was definitely trying to arrange the elements in their proper exact location. It took me a lot of attempts to get, for example the shadow, to line up perfectly with the rest of the elements.