xxxxxxxxxx
50
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
// Draw the cat's body
fill(255);
stroke(0);
ellipse(200, 240, 200, 240);
// Draw the cat's head
fill(255);
stroke(0);
ellipse(200, 150, 150, 150);
// Draw the cat's ears
fill(255);
stroke(0);
triangle(150, 120, 180, 60, 210, 120);
triangle(270, 120, 300, 60, 330, 120);
// Draw the cat's eyes
fill(0);
stroke(0);
ellipse(180, 140, 30, 30);
ellipse(220, 140, 30, 30);
// Draw the cat's nose
fill(255, 115, 0);
stroke(0);
triangle(200, 160, 190, 180, 210, 180);
// Draw the cat's mouth
fill(255);
stroke(0);
ellipse(200, 200, 60, 30);
// Draw the cat's whiskers
stroke(0);
line(170, 200, 110, 190);
line(170, 200, 110, 200);
line(170, 200, 110, 210);
line(230, 200, 290, 190);
line(230, 200, 290, 200);
line(230, 200, 290, 210);
}