In this simulation, a fixed number of firefly moves on a grid. Each firefly lights up at regular intervals. Each firefly can detect the lights of other objects around it, and 80% will try to match its speed to other objects. The light changes with time, creating a maze.
keyboard controls: [s] - Get an image of 600 x 600 px. [d] - Get an image of 1200 x 1200 px. (2x magnification) [f] - Get an image of 1800 x 1800 px. (3x magnification)