xxxxxxxxxx
function setup() {
createCanvas(600, 600);
}
function draw() {
background(0, 0, 0);
// Show the coordinates
text(mouseX + ", " + mouseY, 20, 20);
// Make the stroke lines black
stroke(0, 100, 0);
// Make the stroke lines thicker
strokeWeight(5);
ellipseMode(CENTER);
fill(255, 255, 255);
// Draw the face ellipse
ellipse(125, 125, 200, 200);
fill(255, 255, 255);
// Draw the first eye
ellipse(100, 90, 20, 16);
// Draw the second eye
ellipse(155, 90, 20, 16);
// Draw the pupils
point(100, 90);
point(155, 90);
fill(255, 255, 255);
// Draw the mouth
arc(125, 125, 100, 120, 0.2, PI - 0.2);
}