Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions Scales.pde
Original file line number Diff line number Diff line change
@@ -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;
}



}