//Sara Frankel
//9:30
//sfrankel@andrew.cmu.edu
//Project-01
function setup() {
createCanvas(600, 600);
background(165,212,157);
}
function draw() {
//head
fill(77,47,23);
arc(300, 500, 460, 770, PI, TWO_PI);
fill('tan');
ellipse(300,300,300,350);
fill(77,47,23)
arc(300, 180, 230, 110, PI, TWO_PI);
//eyebrows
fill(77,47,23);
ellipse(230,220,90,10);
ellipse(370,220,90,10);
//glasses
noFill();
arc(300, 280, 20, 20, PI + QUARTER_PI, TWO_PI);
fill('red');
ellipse(235,280,120,120);
fill('red');
ellipse(365,280,120,120);
fill('tan');
ellipse(235,280,100,100);
fill('tan');
ellipse(365,280,100,100);
//left eye
fill('white')
ellipse(235,270,60,40)
//right eye
fill('white');
ellipse(365,270,60,40);
//ellipse(mouseX,300,mouseX,395)
//nose
line(300,300,320,350);
line(300,350,320,350);
//left eyeball
fill('blue');
ellipse(245,270,30,30);
fill(51);
ellipse(250,270,20,20);
fill('white');
ellipse(243,260,5,5);
//right eyeball
fill('blue');
ellipse(375,270,30,30);
fill(51);
ellipse(380,270,20,20);
fill('white');
ellipse(373,260,5,5);
//mouth
noFill();
arc(300,390,60,60,0,PI);
}
My process for this project was to first figure out what kind of aesthetic I wanted my portrait to be (i.e. more bubble character vs. a more lined out character). I also had to figure out which shapes and coordinates I predominately wanted to use to replicate my face.