sketch
var eyeSize = 20;
var faceWidth = 60;
var faceHeight = 150;
var pupilSize = 5;
var randomColor = color(random(255),random(255),random(255));
function setup() {
createCanvas(300, 300);
}
function draw() {
background(180);
fill(245, 245, 220)
ellipse(width / 2, height / 2, faceWidth, faceHeight);
var eyeLX = width / 2 - faceWidth * 0.25;
var eyeRX = width / 2 + faceWidth * 0.25;
var pupilLX = width / 2 - faceWidth * .25;
var pupilRX = width / 2 + faceWidth * .25;
ellipse(eyeLX, height / 2, eyeSize, eyeSize);
ellipse(eyeRX, height / 2, eyeSize, eyeSize); var randomColor = color(random(255),random(255),random(255));
fill(randomColor)
if (mouseY > 150)
fill(0)
ellipse(pupilLX, height / 2, pupilSize, pupilSize);
ellipse(pupilRX, height / 2, pupilSize, pupilSize);
}
function mousePressed() {
faceWidth = random(50, 100);
faceHeight = random(100, 200);
eyeSize = random(10, 30);
pupilSize = random(2, 8);
}