Flux Bugs – v3

About Flux Bugs

Flux Bugs is an interactive cellular automaton inspired by Langton's Ant. It simulates agents—called "bugs"—with different personalities moving on a grid and modifying cell states as they go. The simulation emphasizes emergent behavior from simple rules, with support for real-time interaction and visual aging of the environment.

Bug Personalities

Interface Controls

Mouse Interaction

Behavior Overview

Bugs begin at the center and move one cell at a time. At each step, they:

  1. Observe the cell's state (color and age).
  2. Decide how to turn based on their personality logic.
  3. Update the cell's color and increment its age.
  4. Move forward and repeat.

Over time, patterns emerge from the interaction of bug rules and the changing grid. Cell aging creates a fading visual trail, and different bug types can interact in complex ways—either cooperating or disrupting each other's structures.

Educational Use

This simulation is ideal for demonstrating complex systems, self-organization, and emergent behavior. It offers a hands-on way to understand how simple rules can create rich, unpredictable dynamics.

Audio Feedback

Each bug type produces a distinct audible tone when it takes a step:

The audio feedback can be disabled using the "Mute" checkbox. When unmuted, the soft tones create an algorithmic soundscape that corresponds to the bugs' movements.