Skip to content

Instantly share code, notes, and snippets.

@camb416
Created January 26, 2016 23:01
Show Gist options
  • Save camb416/17ac5823765fd22235de to your computer and use it in GitHub Desktop.
Save camb416/17ac5823765fd22235de to your computer and use it in GitHub Desktop.
int mod;
void setup(){
mod = 1;
size(600,600);
}
void draw(){
background(0);
stroke(255);
for(int i=0; i < (width * height); i+=mod){
point(i-((floor(i/width)*width)),floor(i/width));
}
}
void keyPressed(){
save(nf(mod,3,0)+".tif");
mod ++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment