Afterglowscreensavers

Cyclic Automaton Screensaver

The Cyclic Automaton screensaver is a free, in-browser animation of a cyclic cellular automaton: a grid of cells that each hold a color-state and follow one simple rule until random noise self-organizes into interlocking spiral waves. Each cell advances to the next state in a fixed cycle when enough neighbors already hold that next state. It runs instantly with no download. Press ESC to exit.

Live preview

Press ESC to leave fullscreen. Settings are saved in your browser only.

How the Cyclic Automaton screensaver works

The screen is divided into a grid of square cells whose size is set by the Cell size control (2 to 12 px). Each cell starts with a random state, a number from 0 up to the States value (4 to 16). The states form a loop, so the state after the highest one wraps back to 0 — that cyclic ordering is what gives the automaton its name.

Every generation, each cell looks at its four orthogonal neighbors and counts how many of them are already showing the cell's next state in the cycle. If that count meets the Threshold you set (1 to 3), the cell advances to that next state; otherwise it stays put. The grid wraps around at the edges, so the left edge sees the right edge as neighbors.

From pure random static, this single rule causes domains to form, then curl into rotating spiral cores that grow and collide. The saver actually pre-runs 40 generations the instant it starts, so you see spirals already forming rather than a screen of noise. Each state is mapped to a color from the chosen Palette — Spectrum, Fire or Ocean.

The simulation advances on a fixed clock set by Generations / sec (2 to 30), stepping the grid and repainting only when a new generation is computed. A double-buffer swaps the current and next grids each step so the whole board updates at once, keeping the spiral waves crisp and synchronized.

A worked example

With the defaults — States: 8, Cell size: 4 px, Generations / sec: 14, Threshold: 1 and Palette: Spectrum — the grid fills with random values 0–7. Each step, a cell advances to its next state (for example 3 → 4) whenever at least one of its four neighbors already shows that next state. Because the threshold is just 1, waves spread aggressively; after the built-in 40-generation warm-up, spectrum-colored spiral cores are already rotating across the screen.

Settings & tips

Frequently asked questions

Is the Cyclic Automaton screensaver free?
Yes. It is free and runs in your browser with no download or sign-up. Open the page and the spirals form on their own.
What is a cyclic cellular automaton?
It is a grid of cells, each holding one of several states arranged in a cycle. A cell advances to the next state when enough neighbors already hold that next state, which makes random noise self-organize into spiral waves.
How do I exit the Cyclic Automaton screensaver?
Press the ESC key to exit at any time. Moving the mouse or pressing any key also brings back the controls.
Why does it start with spirals already forming?
The saver pre-runs 40 generations the moment it loads, so the random static has already begun organizing. This skips the dull noise phase and shows spirals right away.
What does the Threshold control do?
Threshold sets how many matching neighbors a cell needs before it advances. A value of 1 spreads waves quickly, while 2 or 3 slows them down and produces larger spiral structures.

← All Generative screensavers