Firefly Synchronization: Mirollo–Strogatz Pulse-Coupled Oscillators (2D)
2D pulse-coupled oscillator lab: each firefly charges toward a flash threshold and, when a neighbor fires, gets pulled forward — the Mirollo-Strogatz mechanism that drives a scattered swarm into one synchronized flash without any central clock.
This 2D companion trades the 3D forest scene for a plain canvas view built to make the underlying mechanism legible: each of N fireflies carries a phase that charges toward a flash threshold along a concave curve, and firing pulls every other firefly's charge forward by a tunable amount ε — the Mirollo–Strogatz pulse-coupled-oscillator model, the mathematically proven explanation for how real Pteroptyx firefly swarms lock into a single synchronized flash with no leader. A running Kuramoto order-parameter trace and a live phase-circle plot make the moment synchrony emerges — or fails to, at zero coupling — directly visible instead of implied.
2D pulse-coupled oscillator lab: each firefly charges toward a flash threshold and, when a neighbor fires, gets pulled forward — the Mirollo-Strogatz mechanism that drives a scattered swarm into one synchronized flash without any central clock.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install