A simulation of the synchronisation of pulsating fireflies. Clicking the mouse adds new fireflies.
They move according to a flowfield based on Daniel Shiffman's book 'The Nature of Code'. Synchronisation algorithm is inspired by work done by Steven Strogatz.
By playing with the parameters you can change the time they need to sync up. I like the way they are now, because of the emerging waves.