//Han Yu
//section D
//hyu1@andrew.cmu.edu
//Project 01 Face
function setup() {
createCanvas(600,600);
background(255);
}
function draw() {
noStroke();
fill(99,189,214);
ellipse(300,300,550,550);
//hair
noStroke();
fill(64,35,19);
ellipse(282,275,235,300);
ellipse(308,280,235,300);
quad(380,270,190,270,150,530,450,530);
//face
noStroke();
fill(253,205,174);
ellipse(300,285,200,255);
//hair
noStroke();
fill(64,35,19);
ellipse(292,180,130,70);
ellipse(250,200,130,50);
//brows
strokeWeight(4)
stroke(1)
noFill();
arc(250, 270, 40, 40, PI+QUARTER_PI, TWO_PI-QUARTER_PI, OPEN);
arc(338, 270, 40, 40, PI+QUARTER_PI, TWO_PI-QUARTER_PI, OPEN);
//eyelashes
fill(0);
stroke(51)
strokeWeight(5)
line(240,267,260,270);
line(320,268,340,270);
//eyes
noStroke();
fill(0);
ellipse(260,280,18,27);
ellipse(340,280,18,27);
//glisten
fill(253,205,174);
triangle(260,280,300,280,350,350);
triangle(340,280,380,330,400,290);
//nose
stroke(255,187,164);
strokeWeight(4);
line(294,310,290,338);
line(290,338,300,336);
//neck
noStroke();
fill(253,205,174);
rect(280,410,40,58);
//lips
stroke(200,114,110);
fill(200,114,110);
ellipse(300,365,40,9);
//sweater
noStroke();
fill(random(0,255),random(150,255),random(160,245));
quad(230,440,370,440,420,530,180,530);
}
I like doing the project overall. It took me a long time to find colors that match together. I couldn’t decide on one sweater color so I used a range of random colors I like.