Home▸Nature & Climate▸Firefly Synchronization: Mirollo–Strogatz Pulse-Coupled Oscillators (2D)

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.

Nature & Climate2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-firefly-synchronization-forest ↗ Open standalone

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.

⚙ Under the hood

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.

firefly synchronizationpulse-coupled oscillatorsmirollo-strogatz modelkuramoto order parameteremergent synchronycollective behavior

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)