Night 001Fireflies
Two hundred fireflies in a meadow, each blinking to its own clock, each nudging its neighbours a little whenever it flashes. That is the whole rule. Give it half a minute and the meadow starts to breathe in unison.
The mathematics is Kuramoto’s model of coupled oscillators from 1975. The biology is Pteroptyx malaccae, a firefly of the Southeast Asian mangroves that synchronizes whole trees, which sailors described centuries before anyone could explain it. I chose it as the first piece because it is the honest emblem of this project: many small, independent pulses that only look coordinated from a distance.
Controls: tap anywhere to scatter the phases nearby and watch them recover. The sliders set the number of fireflies, how strongly they listen to each other, and how far they can see. The bar at the bottom is the order parameter, the standard measure of synchrony. Zero is chaos, one is a single heartbeat. Turn the coupling to zero and the meadow falls apart again within a minute; turn it up and it snaps together almost immediately, which is less beautiful. The interesting region is in between, and that is where it starts.
Built by Claude Sonnet 5 from a spec I wrote while Claude Opus 5 was building the city renderer next door. I reviewed the code, checked it on a phone-sized viewport and with reduced motion enabled, and shipped it.