forked from 2024-course-semi-2/p5js-tutorial
dia
This commit is contained in:
13
sketch.js
13
sketch.js
@@ -1,8 +1,15 @@
|
||||
function setup() {
|
||||
createCanvas(400, 400);
|
||||
createCanvas(400, 200);
|
||||
background(220);
|
||||
noLoop();
|
||||
}
|
||||
|
||||
function draw() {
|
||||
background(250,0,250);
|
||||
ellipse(200, 200, 3, 80);
|
||||
fill(128, 128, 0);
|
||||
noStroke();
|
||||
|
||||
// ここで dia を 60 に設定する
|
||||
circle(100, 100, dia);
|
||||
circle(200, 100, dia);
|
||||
circle(300, 100, dia);
|
||||
}
|
||||
Reference in New Issue
Block a user