sketch
//Selina Lee
//selinal@andrew.cmu.edu
//Project 01
function setup() {
createCanvas(600,600); //yellow background
background(250,250,120);
//create hair and face
strokeWeight(0); //hair
fill(50,50,30);
arc(300,225,250,175,PI,TWO_PI);
strokeWeight(0);
fill(50,50,30);
rect(175,225,250,250);
strokeWeight(0); //neck
fill(210,180,160);
rect(260,350,80,140);
strokeWeight(0); //green shirt
fill(140,200,180);
arc(190,570,200,200,HALF_PI,PI+HALF_PI);
strokeWeight(0);
fill(140,200,180);
arc(410,570,200,200,PI+HALF_PI,HALF_PI);
strokeWeight(0);
fill(140,200,180);
rect(190,470,220,300);
strokeWeight(0); //chest
fill(210,180,160);
arc(300,470,220,50,TWO_PI,PI);
strokeWeight(0); //face
fill(210,180,160);
ellipse(300,300,210,260);
stroke(90,80,50); //left brown eye
strokeWeight(7);
fill(0);
ellipse(260,275,22,22);
stroke(90,80,50); //right brown eye
strokeWeight(7);
fill(0);
ellipse(340,275,22,22);
stroke(220,150,160); //mouth
strokeWeight(5);
fill(0);
arc(300,335,100,100,TWO_PI,PI);
strokeWeight(0); //tongue
fill(220,140,150);
rect(275,335,50,50);
strokeWeight(0);
fill(220,140,150);
arc(300,385,50,50,TWO_PI,PI);
strokeWeight(0); //teeth
fill(256);
arc(300,335,60,30,TWO_PI,PI);
strokeWeight(0); //left eyebrow
fill(50,50,30);
quad(240,240,250,250,280,252,285,242);
strokeWeight(0);
fill(50,50,30);
triangle(240,240,250,250,220,255);
strokeWeight(0); //right eyebrow
fill(50,50,30);
quad(360,240,350,250,320,252,315,242);
strokeWeight(0);
fill(50,50,30);
triangle(360,240,350,250,380,255);
stroke(0); //nose
strokeWeight(1);
noFill();
arc(300,310,20,15,TWO_PI,PI);
stroke(50,50,30); //brown hair strand
strokeWeight(5);
bezier(300,170,200,200,270,280,200,300);
}
function draw() {
if (millis() > 2000) {
osc.stop();
noLoop();
}
}