From 569b2ea313f76e9b8c33f632f84b4c42781db30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E5=88=86=E3=81=AE=E5=90=8D=E5=89=8D=28=E3=82=A2?= =?UTF-8?q?=E3=83=AB=E3=83=95=E3=82=A1=E3=83=99=E3=83=83=E3=83=88=29?= <23e1370@andrew.ac.jp> Date: Fri, 15 Nov 2024 10:04:46 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=89=E6=95=B0=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sketch.js | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/sketch.js b/sketch.js index 2207640..a86e55d 100644 --- a/sketch.js +++ b/sketch.js @@ -1,8 +1,18 @@ +let dia=40; +let y=80; function setup() { - createCanvas(400, 400); -} + createCanvas(400, 200); + background(220); + noLoop(); + } + + function draw() { + fill(128, 128, 0); + noStroke(); -function draw() { - background(254,0,254); - ellipse(200,295,190,200); -} \ No newline at end of file + circle(100,y,dia) + + y=150; + circle(200, y,dia); + circle(300, y,dia); + } \ No newline at end of file