// created in Processing 0124 Beta // http://www.processing.org/ // // by Jeffrey Melton, jmelton@nofi.org // visit http://www.nofi.org/ for more info // // Draws random greyscale circles before saving to a jpeg, clearing and looping // Load the images as a sequence into Quicktime Player or your favorite motion graphics app void setup() { size(360, 240); // window resolution frameRate(6); smooth(); //turns on anti-aliasing noFill(); } void draw() { background(random(78,178)); for(int i=0; i<10; i=i+1) { //lines per frame rand_circle(); } saveFrame("rand_circles-####.jpg"); } void rand_circle() { stroke(random(255), random(255)); strokeWeight(random(1,10)); float r1 = random(width); float r2 = random(height); float r3 = random(300); ellipse(r1, r2, r3, r3); } void mousePressed() { //quit on mouse click exit(); }