From f96ae2ecdd38545054453feae2a6706fc5952cc6 Mon Sep 17 00:00:00 2001 From: Kotaro Hirakawa <23e1141@andrew.ac.jp> Date: Fri, 1 Nov 2024 09:38:00 +0900 Subject: [PATCH] dia --- sketch.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sketch.js b/sketch.js index b30c06c..2c2e862 100644 --- a/sketch.js +++ b/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); +} \ No newline at end of file