From f93c9cefaac3caad9bfc944e2d57a7ee118a8992 Mon Sep 17 00:00:00 2001 From: MylesLinden Date: Wed, 18 Sep 2024 11:18:24 -0700 Subject: [PATCH] Update Scales.pde --- Scales.pde | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/Scales.pde b/Scales.pde index 42795d2..1ce5569 100644 --- a/Scales.pde +++ b/Scales.pde @@ -1,11 +1,28 @@ -void setup() { - size(500, 500); //feel free to change the size - noLoop(); //stops the draw() function from repeating -} -void draw() { - //your code here -} -void scale(int x, int y) { - //your code here + void setup(){ + size(500,500); + } + void draw(){ + for (int y = -40; y < 1000; y += 50) + for (int x = -40; x < 1000; x += 50) + scale(x,y); + } + + void scale(int x, int y){ + stroke(1); + fill(50,00,100); + +rect(x-75,y-75,50,20); +noStroke(); +int diam = 0; +float r = 350; +while(diam < 50){ + stroke(50,r,100); + noFill(); + ellipse(x-50,y-50,diam,diam); + diam++; + r-=255/30.0; } + + + }