Fill a grid with rock, paper and scissors at random, and let each square be taken over by its neighbors, by the usual rules. Nobody wins for good, so the colors chase each other around forever, and the chase winds itself into spinning spirals.
Each square of the grid (a cell) holds one color, which I'll call a species. With three species it's the game you know: rock smashes scissors, scissors cut paper, paper covers rock. With more, the species sit around a circle, and each one beats exactly one other: the next one clockwise. Every species beats one and loses to one. Species that aren't next to each other on the circle ignore each other, so a cell can only ever be taken over by the one species that beats it.
Every step, every cell counts how many of its neighbors are the species that beats it. If at least a threshold of them are, the cell is taken over and becomes that species. Here a cell looks at its 8 touching neighbors, and 3 of them have to beat it.
Start small. Below, the grid begins as three wedges, rock, paper and scissors, meeting at one point in the middle (the white dot). Walk a small loop around that point and you pass all three in order. Each step, every cell with a neighbor that beats it flips to that color. Here the cells flip one at a time, slowed down, starting next to the center and working outward. In the real thing they all flip at once.
Right next to the center, each cell is taken over by the one beside it, which is then taken over by the next one, so the colors there go around in a circle forever. Every lap pushes a new band of color outward, and the bands wind up into a spiral.
Any point like that, where a small loop passes every species in order, becomes a spiral center. The dots below mark every such point in a random start, computed live. A random start has thousands of them; they crowd each other out until a few big spirals own the space.
The threshold is what decides whether spirals appear at all. A random cell has about 8 ÷ 3 ≈ 2.7 neighbors that beat it. Set the threshold below that and nearly every cell gets taken over every step: the whole grid flips together and stays static (the first grid below is slowed down so you can see it). Set it well above and almost nothing can be taken over, so the noise freezes. Just above the average, lone specks can't win but solid fronts can, and the fronts curl into spirals.
With a threshold of 1, a single neighbor that beats a cell is enough to take it over. Started from random noise, that only flickers, so the diagram below starts from smooth patches of color instead. A front then moves one cell in every direction each step, and "one cell in every direction" on the 8 touching cells is a square, so the waves grow as squares. The bigger squares swallow the smaller ones until one color fills the grid, so it starts over every few seconds.
The shape of the area a cell looks at becomes the shape of the waves. Below, each grid starts as one species with a tiny pinwheel of all three in the middle, and a single enemy is enough. Each step a front moves to every cell its neighborhood reaches, so a square neighborhood grows a square spiral, a diamond grows a diamond, and a circle grows a round one.
Move the mouse (or drag a finger) over the field to spray fresh randomness and seed new
spirals. More species put more bands of color in every arm. The soft rule
makes each change happen only some of the time, which gives it fuzzy edges.