// Fireflies // A simple firefly simulation // Press and hold a key to shed some light on the process // MARK ROLAND // Oct 18, 2005 firefly[] fly; int num_flies; int release; void setup(){ size(420,260); background(64); smooth(); framerate(20); num_flies = 12; fly = new firefly[num_flies]; for(int i=0; i 0){ fill(release); rect(0,0,width, height); release -= 10; } for(int j=0; j