xxxxxxxxxx
27
function setup() {
createCanvas(400, 400);
background(255);
}
function draw() {
// 顔
fill(255, 224, 189); // 肌の色
ellipse(200, 200, 150, 150); // 顔の形
// 目
fill(255); // 白目の色
ellipse(170, 190, 40, 20); // 左の白目
ellipse(230, 190, 40, 20); // 右の白目
fill(0); // 瞳の色
ellipse(170, 190, 10, 10); // 左の瞳
ellipse(230, 190, 10, 10); // 右の瞳
// 口
fill(255, 105, 180); // 口の色
arc(200, 220, 50, 20, 0, PI); // 笑顔
// 体
fill(255, 192, 203); // 体の色
rect(150, 250, 100, 150, 20); // 体の形
}