Skip to content

Instantly share code, notes, and snippets.

@drart
Created January 16, 2014 18:54
Show Gist options
  • Save drart/8461032 to your computer and use it in GitHub Desktop.
Save drart/8461032 to your computer and use it in GitHub Desktop.
// TITLE: 4'33"
// Adam Tindale 2010
// http://www.emvergeoning.com/?p=1095
import gifAnimation.*;
GifMaker gifExport;
PImage mygif;
color[] c = new color [3];
int i = 0;
void setup(){
gifExport = new GifMaker(this, "export.gif");
gifExport.setRepeat(0);
c[0] = color(0);
c[1] = color(3);
c[2] = color(5);
}
void draw(){
background(c[i]);
gifExport.setDelay(1);
gifExport.addFrame();
if (i == 2){
gifExport.finish();
exit();
}
i = ++i % 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment