Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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