This commit is contained in:
benfry
2011-01-26 19:22:19 +00:00
parent d3a18c7964
commit eb64b2d4fc
1234 changed files with 96518 additions and 0 deletions
@@ -0,0 +1,28 @@
/**
* Save Many Images.
*
* The saveFrame() function allows you to save images from
* a program while it is running. This example saves the first
* 50 frames of a program. These images can be imported into
* animation software or QuickTime and then saved as a movie.
*/
float x = 33;
float numFrames = 50;
void setup()
{
size(200, 200);
smooth();
noStroke();
}
void draw()
{
background(0);
x += random(-2, 2);
ellipse(x, 100, 80, 80);
if (frameCount <= numFrames) {
saveFrame("circles-####.tif");
}
}