let x=0; //x坐标
let y=120; //y坐标
let body=480; //身高
let eye=220; //眼睛大小
function setup(){
createCanvas(400,700);
background(200);
}
function draw(){
//两条腿
noStroke();
ellipse(x+500,y+body+550,500,500);
ellipse(x+500,y+body+550,500,500);
//身体
strokeWeight(300);
line(x+200,y+265,x+200,y+380);
//眼睛和肚皮
fill(255);
noStroke();
ellipse(x+130,y+270,eye,eye);
ellipse(x+270,y+270,eye,eye);
ellipse(x+200,y+445,200,200);
//眼球
fill(0);
ellipse(x+130,y+270,eye/5,eye/5);
ellipse(x+270,y+270,eye/5,eye/5);
//嘴巴
noStroke();
fill(255,160,45);
triangle(x+185,y+300,x+215,y+300,x+200,y+325);
}
console