変数の追加

This commit is contained in:
2024-11-15 10:12:16 +09:00
parent e8219f5766
commit 4ab42b21b3

View File

@@ -1,8 +1,17 @@
let dia = 60;
let y = 100;
function setup() {
createCanvas(400, 400);
createCanvas(400, 200);
noLoop();
}
function draw() {
background(1,0,200,);
ellipse(200,200,90,90)
background(220);
fill(128, 128, 0);
noStroke();
circle(100, y, dia);
circle(200, y, dia);
circle(300, y, dia);
}