xxxxxxxxxx
53
let w = 400; h = 400;
angle = 0;
function setup() {
createCanvas(w, h);
background("#FBDDFF");
}
function draw() {
noStroke();
fill(104, 64, 52); // Draw hair
ellipse(w/2, h/2 - 40, w/2, h/2);
bezier(w/4, h/3+20, 1000, 1000, w, h, 0, h);
bezier(3*w/4, h/3+20, -500, 1000, 0, h, w, h);
fill("#FFD1BB"); // Draw the face
arc(w/2, h/2, w/2, h/2, PI/2, (3*PI)/2);
fill("#FF0000"); // Draw the lips
ellipse(w/2 - 9.25, 5*h/8, 20, 20);
ellipse(w/2 + 9.25, 5*h/8, 20, 20);
arc(w/2, 5*h/8, 38, 30, 0, PI);
fill("#FC5CAC"); // Draw the nose
triangle(w/2 - 10, h/2 + 20, w/2 + 20, h/2 + 20, w/2, h/2 - 20);
ellipse(w/2 - 10, h/2 + 10, 20, 20);
fill("#000000");
ellipse(w/2 - 10, h/2 + 10, 5, 10);
strokeWeight(1); // Draw glasses
stroke(51);
fill("#FFFFFF00");
ellipse(3*w/7 - 10, 3*h/7, 60, 40);
ellipse(4*w/7 + 10, 3*h/7, 60, 40);
noStroke();
fill("#FFFFFF"); // Draw the eyes
ellipse(3*w/7 - 10, 3*h/7, 50, 10);
ellipse(4*w/7 + 10, 3*h/7, 50, 10);
fill("#000000");
ellipse(3*w/7 - 10, 3*h/7, 10, 10);
ellipse(4*w/7 + 10, 3*h/7, 10, 10);
fill("#FC5CAC"); // Draw the eyelids
arc(3*w/7 - 10, 3*h/7, 50, 10, PI, 3*PI/2);
arc(4*w/7 + 10, 3*h/7, 50, 10, PI, 3*PI/2);
fill("#00BCD4");
arc(4*w/7 + 10, 3*h/7, 50, 10, 3*PI/2, 0);
arc(3*w/7 - 10, 3*h/7, 50, 10, 3*PI/2, 0);
}