FlyFlow

A moonlit 3D forest full of fireflies: press and hold to call the swarm, then keep holding as they slowly learn to flash together in sync.

A frontend app built by Ananda Rizki. More of them at Labs.

Labs — by Ananda Rizki

FlyFlow

Art · Simulator

A night clearing rendered in real time with Three.js: a full moon behind drifting cloud, wind rolling through 180,000 blades of grass, barked trees with moss and lichen, ground mist and fog. Nearly four hundred fireflies hover over the meadow, each flashing on its own rhythm and climbing as it lights, the way real males do, and their light falls on the grass, the leaf litter and the trunks around them. Press and hold and the swarm gathers into a swirl at your pointer while the lens racks focus onto it. Keep holding: every firefly is an oscillator nudging its timing toward the others (the Kuramoto model), and within seconds the whole swarm flashes as one, like the synchronous fireflies of the Great Smoky Mountains. A phase dial in the corner shows them falling into step. Night sounds of crickets and a breeze are synthesised on request.

Built with
  • react
  • tailwind
  • three
Related

Built by Ananda Rizki, a software engineer and designer, one of the small web apps he writes for fun.

Explore more apps on Labs