/* Chelsea Fan
Section 1B
chelseaf@andrew.cmu.edu
Assignment-01
*/
function setup() {
createCanvas(400, 600);
background(230,230,250);
}
function draw() {
//head
fill(245,222,179);
ellipse(200,300,300,400);
//eyes
fill(255,250,205);
ellipse(130,300,30,30);
ellipse(270, 300, 30, 30);
fill(70,120,180);
ellipse(130, 300, 20,20);
ellipse(270, 300, 20,20);
//eyebrows
fill(2040,128,128);
rect(110,250,50,7);
rect(240, 250, 50, 7);
//nose
fill(173,216,230);
rect(195, 325, 10, 30);
//mouth
fill(255,255,255);
triangle(250,400,150,400,200,440);
//hair
strokeWeight(0);
fill(0);
rect(50, 170, 35, 400);
rect(315, 170, 35,400);
triangle(50, 170, 200, 80, 350, 170);
}
This product took me a long time to figure out coordinates for shapes and colors. However, I am happy I figured it out.