sketch
var nosesi = 75var noseco = 40var noseco2 = 120var glintx = 210var glinty = 190
function setup() {
createCanvas(640, 480);
background(200);
}
function draw() {
stroke(0);
strokeWeight(3);
fill(230, 80, 160);
ellipse(320, 240, 440, 330);
var lipx = constrain(mouseX, 130, 220); var lipy = constrain(mouseY, 250, 320);
noFill();
stroke(0);
strokeWeight(1);
beginShape();
curveVertex(lipx, lipy);
curveVertex(lipx, lipy);
curveVertex(width/2 - lipx/2, lipy + 50);
curveVertex(width/2 + lipx/2, lipy + 50);
curveVertex(width - lipx, lipy);
curveVertex(width - lipx, lipy);
endShape();
fill(noseco, noseco2, 130);
stroke(0);
strokeWeight(1);
ellipse(320 , 240, nosesi, nosesi/2);
var eyebroy = constrain(mouseY, 120, 170);
stroke(150, 100, 100);
strokeWeight(10);
line(160, 180, 250, eyebroy); line(480, 180, 390, eyebroy);
var pupil = random(20, 35);
stroke(0);
fill(0);
ellipse(200, 190, pupil, pupil); ellipse(440, 190, pupil, pupil);
strokeWeight(0);
fill(255);
ellipse(glintx, glinty, 10, 10); fill(255);
ellipse(width - glintx, glinty, 10, 10);
}
function mousePressed() {
nosesi = random (20, 130); noseco = random (0, 250); noseco2 = random (110, 130); glintx = random (180, 220); glinty = random (180, 200);}