Lenia

Continuous Cellular Automata

Click to seed · drag to paint
0.186
0.021
13
0.10
1
Gen: 0   Mass: 0
Phase space

What is Lenia?

Lenia is a continuous generalization of Conway's Game of Life, developed by Bert Chan in 2018. Where the Game of Life operates on a binary grid with discrete time steps and a fixed 8-cell neighborhood, Lenia replaces every one of these constraints with a smooth analog. Cells hold real values between 0 and 1 instead of being simply alive or dead. The neighborhood becomes a smooth ring-shaped kernel that can extend dozens of cells outward — a sensory field rather than a fixed count. The birth-and-death rules become a continuous growth function, a bell curve that maps the sensed neighborhood density to a rate of change. Time itself becomes continuous, with an adjustable step size dt.

The result is something that looks less like a cellular automaton and more like soft biology. Lenia creatures are smooth, self-organizing forms that glide, rotate, pulse, and divide. They maintain coherent structure through a balance between self-reinforcing growth at the right density and decay everywhere else. The kernel convolution is computed via FFT — the same trick that makes audio processing fast — because direct convolution over a radius-13 kernel on a 128×128 grid would be far too slow per frame. The growth function G(u) takes the convolved field and returns a value between −1 and +1: grow where density matches μ, shrink everywhere else.

The most striking feature of Lenia is the narrow life band. In the two-dimensional parameter space of μ (growth center) and σ (growth width), life exists in roughly 1% of the area — a thin crescent wedged between death and explosion. Shift μ by 0.01 and your creature dissolves into nothing. Shift σ down by the same amount and the field detonates into uniform chaos. The phase diagram to the right gives an approximate map. Every living Lenia creature exists on this knife-edge, maintained there by the precise interaction of its kernel shape and growth response.

This narrow viability zone is a manifestation of the edge of chaos — the same principle observed in Wolfram's discrete automata (Class IV rules), in reaction-diffusion chemistry, and in real biological systems. Life, whether carbon or computational, requires enough order to maintain structure and enough disorder to compute. Lenia makes this visible: you can watch a creature exist, then drag a slider by one tick and watch the edge give way.