Home › Companion pages › Layered Cellular Automata

Layered Cellular Automata

Langton's ants write a colored substrate that gates where Conway's Life is allowed to live. Three feedback layers — ants → substrate → life → substrate → ants — produce highways, colonies, and fractal boundaries. For a playable take on Conway's Life and 50+ other rulesets, see the sister site The Arcade of Life ↗.

Open the interactive lab → Watch the video →

Binary Coded Layered Autonoma

A single, interactive playground where three of my favorite cellular automata — Langton's Ant, a multi-color substrate, and Conway's Game of Life — all run at once, layered on top of one another and quietly influencing each other's behavior.

A Little Background

Cellular automata are among the most delightful ideas in computing: you write down a handful of almost trivially simple rules, apply them uniformly to a grid of cells, and — it turns out — startling complexity emerges with no further intervention. Two of them are famous enough to have escaped the lab.

What this project does is ask a simple question: what happens if you let these systems share a world? The ants don't just wander a two-color grid — they wander a substrate of up to eight colors, encoding their own turning rules in binary. And the Game of Life doesn't evolve everywhere; it only comes alive on the trails the ants leave behind, and only where the colors they paint are "activated" to permit it.

What You're Looking At

The system layers three interacting subsystems, and once you know what each contributes, the on-screen behavior becomes much easier to read:

  1. The colored substrate — a grid of colored cells (you choose between 2 and 8 colors) that the ants continuously repaint as they travel. This is the shared canvas; think of it as the terrain.
  2. The binary-coded ants — Langton-style ants (up to eight of them) whose "turn left or turn right" decision is read from a binary rule, indexed by the color they're standing on. The classic Langton ant is just one special case of this more general family.
  3. The selective life layer — a Game of Life that evolves only on cells the ants have visited, and only where the underlying color has been switched on by an activation mask. Some colors encourage life; others actively suppress it, creating "inhibition zones" that slowly heal over time.

Out of that interplay you get highways, fractal-looking boundaries, and little colonies of life that bloom and compete in regions tuned to particular color patterns. It's the kind of thing you can watch far longer than you'd expect.

The Controls, in Plain Terms

You don't need to understand every knob to enjoy the simulation, but a few are worth knowing:

Click the canvas to zoom to fullscreen; press Esc to come back. A stats panel keeps a running tally of generations, ant steps, live cells, inhibited cells, and the currently active mask, so you can watch the numbers breathe along with the picture.

A Few Patterns Worth Trying

Why I Find It Interesting

A few reasons, honestly. First, it's a compact demonstration of emergence — the principle that complex, lifelike behavior can arise from rules simple enough to fit on an index card. Second, it's generative art that you author rather than merely observe; small changes to a binary string produce dramatically different worlds, which makes exploration genuinely rewarding. And third, it's a nice illustration of what happens when you compose simple systems: the ants and the life layer are each well understood in isolation, but coupling them produces behavior neither exhibits alone. That last point — that composing well-understood simple systems yields behavior none of them shows alone — is a thread running through several of these experiments. The Symmetry Diffusion toy composes symmetry groups with heat flow; the Constrained Mesh lab composes geometric energies with an exact collision wall. If the idea of emergence-through-composition appeals to you, those are kindred pieces.

I should be candid that this is an aesthetic and exploratory tool rather than a research instrument; I make no claims that the layered dynamics reveal anything new about the underlying automata. What it does offer is an unusually direct, tactile way to feel how these systems behave.

Who Might Enjoy It

That's the whole idea: a small world governed by a few honest rules, offered up for you to poke at. Open it, randomize a few times, and see where it goes — I'd genuinely love to hear which patterns you find. Enjoy!