Presets
Playback
Rule
Pick the rule number or click the eight table entries.
Start and edges
Initial row and boundary condition.
Weaving
How fast generations are woven.
Look
Thread colours.
Camera
Layers
Quality
Model checks
The science
Elementary cellular automata on a loom
Every warp thread is one cell, every woven row one generation. A cell takes the three bits (left L, centre C, right R) of its neighbourhood as a number n = 4L + 2C + R and becomes the n-th bit of the rule number. The cloth shows spacetime: rows further down are later generations. This page runs exactly the same engine as the 2D page, so the numbers match.
si(t+1) = (Rule >> (4 si−1(t) + 2 si(t) + si+1(t))) & 1Rule 90 is linear (si(t+1) = si−1 XOR si+1) and draws Pascal's triangle modulo 2: generation n has 2popcount(n) live cells. Rule 30, si(t+1) = si−1 XOR (si OR si+1), is chaotic. Rule 110 is Turing-universal (Cook, 2004). Rule 184 is a traffic model that conserves the number of live cells.
Light cone and damage spreading
Because a cell only reads its two neighbours, a change can travel at most one cell per generation. Switch on the damage twin: a second copy of the cloth with one flipped cell runs alongside and cells that differ turn red. The widest damage can never exceed 2t + 1 cells after t generations; chaotic rules fill that cone, regular rules do not. The block entropy H = −∑ pk log2 pk over the eight 3-cell blocks of a row runs from 0 to 3 bits.
Honest simplifications
- The loom is a metaphor: raised cells show live cells and the roll-up onto the top beam is only the display window scrolling. Real weaving does not compute anything.
- The cloth is drawn as blocks with a thread texture rather than real interlaced yarn.
- On a ring the pattern eventually repeats (at most 2width states); dead or live edges change the pattern near the borders.
- The Wolfram class labels are textbook classes for a few famous rules only; for other rules the page guesses from the block entropy.
What to try
- Choose Rule 90 with one live cell: a Sierpinski relief grows from the top beam.
- Use Relief, grazing light and raise the relief height to see Rule 30 as a rough landscape.
- Turn on the damage twin under Layers and watch red cells spread inside the light cone.
- Run Rule 184 on a random soup: the traffic jams drift backwards through the cloth.
- Click the eight table buttons to design a rule and see the cloth change at once.