xxxxxxxxxx
58
function setup() {
createCanvas(400,400);
}
function draw() {
background(173,216,260);
//hair
fill(0)
arc(200,390,300,700,PI,0)
//body
fill(260,203,248)
ellipse(200,410,175,220);
noFill();
//face
rectMode(CENTER);
fill(248,224,199);
ellipse(200,200,190,220);//head
noFill();
fill(255);
circle(160,190,30); //eye
circle(240,190,30);
noFill();
fill(0);
circle(156,186,12); //pupil
circle(243,194,12);
noFill();
stroke(24);
strokeWeight(5);
rect(160,190,60,60,10,10,70,70);//glasses
rect(240,190,60,60,10,10,70,70);
noFill();
strokeWeight(2.5);
line(165,260,240,260);//mouth
strokeWeight(3);
line(100,178,131,178);//glasses
line(300,178,273,178);//glasses
//line(190,190,210,190);//glasses
arc(200,192,20,8,PI,0)
//arc(200, 200, 50, 30, PI + HALF_PI, TWO_PI); failed glasses arc attempt
strokeWeight(1.25);
//hair 2
fill(0)
arc(160,120,150,170)
arc(100,105,180,132,(11/6)*PI,PI/2,OPEN)
print(mouseX,mouseY)
}