Created
January 16, 2014 19:18
-
-
Save drart/8461515 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TITLE: Rolling | |
| // Adam Tindale 2010 | |
| int count = 0; | |
| import gifAnimation.*; | |
| GifMaker gifExport; | |
| void setup(){ | |
| gifExport = new GifMaker(this, "blackorwhite.gif"); | |
| gifExport.setRepeat(0); | |
| frameRate(5); | |
| noStroke(); | |
| } | |
| void draw(){ | |
| background(0); | |
| rect(((count-10)/10.0) * width,0, width, height); | |
| gifExport.setDelay(5); | |
| gifExport.addFrame(); | |
| if (count == 19){ | |
| gifExport.finish(); | |
| exit(); | |
| } | |
| count = ++count % 20; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment