xxxxxxxxxx
42
let lefteye, righteye, leftpupil, rightpupil, mouth, nose, cheek1, cheek2, face, ear1, ear2, body, arm1, arm2
function setup() {
cnv = createCanvas(420, 420);
}
function draw() {
stroke(1);
background(145, 222, 227);
if (mouseIsPressed) {background(222, 153, 193)}
fill(220);
//ears
ear1 = ellipse(90, 180, 140, 190)
ear2 = ellipse(330, 180, 140, 190)
//body
body = ellipse(210, 400, 220, 250)
//arms not breasts
arm1 = arc(170, 360, 40, 50, 0, PI, OPEN)
arm2 = arc(260, 360, 40, 50, 0, PI, OPEN)
//face
face = ellipse(210, 210, 250, 240)
fill(255);
//eyes
lefteye = circle(160, 170, 70);
righteye = circle(260, 170, 70);
fill(0);
//pupils
leftpupil = circle(148+(0.07*mouseX), 154+(0.07*mouseY), 20);
rightpupil = circle(248+(0.07*mouseX), 154+(0.07*mouseY), 20);
//mouth
mouth = line(170,250+(0.1*mouseX),250,250);
//nose
fill(0, 0, 0);
nose = ellipse(200, 210, 60, 80);
fill(220);
noStroke();
//cheeks on click
if (mouseIsPressed) {fill(160, 0, 0, 50)}
cheek1 = ellipse(120, 220, 50, 50);
cheek1 = ellipse(300, 220, 50, 50);
}