xxxxxxxxxx
function setup() {
createCanvas(800, 800);
noLoop(); // Draw only once
}
function draw() {
background(255);
// Body
fill(200, 150, 100); // Brown color
ellipse(400, 400, 300, 200); // Main body
// Head
fill(200, 150, 100);
ellipse(400, 250, 180, 180); // Head
// Eyes
fill(255); // White
ellipse(350, 230, 50, 30); // Left eye
ellipse(450, 230, 50, 30); // Right eye
fill(0); // Black
ellipse(350, 230, 20, 20); // Left pupil
ellipse(450, 230, 20, 20); // Right pupil
// Nose
fill(255, 0, 0); // Red
triangle(400, 250, 380, 270, 420, 270); // Nose
// Mouth
stroke(0);
noFill();
arc(400, 280, 50, 30, 0, PI); // Mouth
// Ears
fill(200, 150, 100);
triangle(330, 180, 370, 80, 370, 180); // Left ear
triangle(470, 180, 430, 80, 430, 180); // Right ear
// Whiskers
stroke(0);
line(300, 270, 370, 270); // Left whiskers
line(430, 270, 500, 270); // Right whiskers
}