function setup(){
createCanvas(600,600);
background(200);
rectMode(CENTER);
}
function draw(){
//两条腿
noStroke();
fill(255,170,150);
ellipse(200,525,100,50);
ellipse(400,525,100,50);
//身体
fill(0,200,150);
ellipse(150,390,60,100);
ellipse(450,390,60,100);
rect(300,400,300,1);
stroke(0);
strokeWeight(300);
line(300,215,300,330);
//眼睛和肚皮
fill(255);
noStroke();
ellipse(230,220,120,50);
ellipse(370,220,120,1);
ellipse(300,395,200,220);
//眼球
fill(240,100,100);
ellipse(230,220,15,15);
ellipse(370,220,15,15);
//嘴巴
noStroke();
fill(255,160,150);
triangle(285,250,315,250,300,275);
}
console