mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-11 23:30:50 +01:00
processing-js 0.4 has been merged in some relevant parts basic and topic scripts added for test color handling fixed, more scripts show up now
20 lines
255 B
Plaintext
20 lines
255 B
Plaintext
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");
|
|
}
|
|
}
|