Week 1 Assignment: Self Portrait
sketch
//Iris Yip iyip
//15104 f2020 - Section D
function setup() {
createCanvas(600, 600);
}
function draw() {
background(245, 173, 48);
//hair, back
fill(24,20,45)
rect(80, 316, 450, 384)
ellipse(300, 300, 450);
fill(14,14,14)
rect(120, 316, 360, 284)
fill(246, 245, 180)
ellipse(300, 600, 400, 200)
//neck + shirt
noStroke();
fill(225, 159, 110)
ellipse(300, 492, 68, 100);
//ears
fill(225, 159, 110)
ellipse(108, 317, 90+30, 100+30);
ellipse(492, 317, 90+30, 100+30);
fill(198, 127, 96)
ellipse(108, 317, 90, 100);
ellipse(492, 317, 90, 100);
//face
noStroke();
fill(225, 159, 110)
ellipse(300, 300, 385);
//nose
fill(198, 127, 96)
ellipse(300, 316, 68, 126)
fill(225, 159, 110)
ellipse(300, 290, 120, 126)
//eyes
fill(255,255.255)
ellipse(205, 290, 109, 76);
ellipse(390, 290, 109, 76);
fill(24,20,45)
ellipse(390, 290, 50, 50);
ellipse(205, 290, 50, 50);
//mouth
fill(188, 101, 86);
ellipse(300, 440, 70, 20);
fill(225, 159, 110)
ellipse(300, 450, 70, 20);
//eyelids
fill(225, 159, 110)
rect(148, 236, 307, 57)
stroke(24,20,45);
strokeWeight(10);
line(150, 290, 260, 290)
line(447, 290, 335, 290)
//hair
fill(24,20,45)
arc(110, 170, 360, 250, 0, HALF_PI);
rect(143, 146, 300, 40)
rect(193, 106, 210, 40)
arc(440, 120, 160, 260, 1, PI);
fill(225, 159, 110)
noStroke();
ellipse(373, 197, 160, 110);
fill(24,20,45)
triangle(465, 230, 505, 240, 474, 435)
triangle(96,240, 141, 240, 125, 435)
stroke(188, 101, 86);
noFill();
arc(380, 280, 130, 20, PI + QUARTER_PI, TWO_PI)
noFill();
stroke(24,20,45)
arc(260, 110, 100, 320, 0, HALF_PI);
}