Snowblind
/* http://www.openprocessing.org/sketch/200449
THIS IS A PROCESSING SKETCH
change file suffix from .java to .pde before running
*/
int frames = 240, num = 300;
float theta;
long rs;
void setup() {
size(540, 540);
noStroke();
rs = (long) random(12345);
}
void draw() {
randomSeed(rs);
background(20);
for (int i=0; i<num; i++) {
float offSet = TWO_PI/num*i;
int dir = i%2==0?1:-1;
float d = random(width/10,width/2);
float x = random(width) + cos(theta+offSet)*d*dir;
float y = random(height) + sin(theta)*d*dir;
float sz = map(sin(theta), -1, 1, 3, 100);
ellipse(x, y, sz, sz);
}
theta += TWO_PI/frames;
//if (frameCount<=frames) saveFrame("image-###.gif");
}
void mouseReleased() {
rs = (long) random(10000);
}