xxxxxxxxxx
24
function setup() {
createCanvas(600, 600);
}
function draw() {
background(255, 225, 255);
noStroke();
fill(255, 255, 100);
ellipse(300, 300, 400, 400);
eye(200, 280, 48, 30, 11, 100); // left eye
eye(400, 280, 0, 56, 200, 80); // right eye
eye(300, 200, 0, 217, 108, 40); // third eye
}
function eye(x, y, r, g, b, size) {
strokeWeight(1);
fill(255);
ellipse(x, y, size, size);
fill(r,g,b);
ellipse(x, y+5, size * .67, size * .67);
fill(0);
ellipse(x, y+5, size/2, size/2);
}