xxxxxxxxxx
function setup() {
createCanvas(500, 500);
background(200, 162, 200);
}
function draw() {
rectMode(CENTER);
var x = 500 / 2;
var y = 500 / 2;
// hair
stroke(50, 28, 32);
fill(50, 28, 32);
arc(100, y + 180, 400, 860, PI, TWO_PI);
// head
fill(238,206,179);
stroke(238,206,179);
ellipse(x, y, 260, 405);
// eyebrows
stroke(101, 67, 33);
fill(101, 67, 33);
rect(mouseX + 55, y - 40, 50, 10);
rect(x - 55, y - 40, 50, 10);
// eyes
fill(255);
stroke(101, 67, 33);
ellipse(x + 55, y + 10, 70, 35);
ellipse(x - 55, y + 10, 70, 35);
fill(101, 67, 33);
stroke(101, 67, 33);
ellipse(x + 55, y + 10, 35, 30);
ellipse(x - 55, y + 10, 35, 30);
fill(0);
noStroke();
ellipse(x + 55, y + 10, 20, 20);
ellipse(x - 55, y + 10, 20, 20);
// nose
stroke(230, 100, 129);
noFill();
arc(x, y + 53, 18, 15, PI, TWO_PI);
// mouth
stroke(238, 149, 161);
fill(255, 40,0);
curve(x - 50, y - 50, x - 30, y + 100, x + 30, y + 100, x + 50, y - 50);
line(x - 30, y + 100, x + 30, y + 100);
// forehead
stroke(50, 28, 32);
fill(50, 28, 32);
rotate(QUARTER_PI);
rotate(-HALF_PI-0.2);
ellipse(x - 190, y + 90, 130, 330);
}