//Erin Fuller
//SectionA
//efuller@andrew.cmu.edu
//Project-01
function setup() {
createCanvas(600, 600);
}
function draw() {
background(157, 196, 191);
background(157, 196, 191);
background(157, 196, 191);
//hair background
strokeWeight(0);
fill(214, 101, 36);
ellipse(210, 180, 100, 30);
strokeWeight(0);
fill(214, 101, 36);
ellipse(340, 180, 200, 120);
strokeWeight(0);
fill(214, 101, 36);
rect(160, 180, 280, 340);
//ears
strokeWeight(0);
fill(252, 206, 146);
ellipse(175, 285, 40, 65);
strokeWeight(0);
fill(252, 206, 146);
ellipse(425, 285, 40, 65);
//face
strokeWeight(0);
fill(255, 217, 153);
ellipse(300, 300, 230, 290);
// hair foreground
strokeWeight(0);
fill(214, 101, 36);
ellipse(210, 180, 100, 80);
strokeWeight(0);
fill(214, 101, 36);
ellipse(340, 180, 200, 80);
//eyebrows
strokeWeight(3);
stroke(168, 79, 28)
noFill();
line(315, 240, 344, 230);
line(344, 230, 365, 234);
strokeWeight(3);
stroke(168, 79, 28)
noFill();
line(285, 240, 256, 230);
line(256, 230, 235, 234);
//nose
strokeWeight(2.5);
stroke(214, 177, 128)
noFill();
line(300, 265, 315, 310);
line(315, 310, 305, 315);
//smile
strokeWeight(2.5);
stroke(204, 61, 94)
noFill();
arc(300, 366, 85, 40, 0, PI);
//left eye
strokeWeight(0);
fill(249, 249, 249);
ellipse(267, 265, 35, 20);
strokeWeight(0);
fill(77, 124, 69);
ellipse(267, 265, 15, 15);
//right eye
strokeWeight(0);
fill(249, 249, 249);
ellipse(343, 265, 35, 20);
strokeWeight(0);
fill(77, 124, 69);
ellipse(343, 265, 15, 15);
//freckles
strokeWeight(0);
fill(186, 115, 80);
ellipse(350, 300, 4, 4);
ellipse(366, 300, 4, 4);
ellipse(342, 313, 4, 4);
ellipse(358, 313, 4, 4);
ellipse(374, 313, 4, 4);
strokeWeight(0);
fill(186, 115, 80);
ellipse(250, 300, 4, 4);
ellipse(266, 300, 4, 4);
ellipse(242, 313, 4, 4);
ellipse(258, 313, 4, 4);
ellipse(274, 313, 4, 4);
noLoop();
}
I was originally very nervous for this class and the idea of coding, just because it seems too structured for me. However, I had a lot of fun with the project and had a lot of satisfaction when I made each new shape and of course when I finally completed the self-portrait.