Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Scales.pde #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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;
}



}