1.1Count attached ice
For every cell, count how many of its six neighbors are already ice. That integer steers attachment later.
Each cell on a hexagonal lattice holds an ice flag , quasi-liquid , crystal mass , and vapor . Seven local rules, applied in turn, grow a single frozen seed into a six-fold crystal. Changing a handful of parameters moves the result from fern-like dendrites to faceted plates. All crystals on this page are computed live in the browser and rendered with Three.js.
One update cycles through the following rules for every cell. Ice cells never melt; growth happens only at the boundary, where vapor diffuses in, freezes and eventually attaches [1].
For every cell, count how many of its six neighbors are already ice. That integer steers attachment later.
Boundary cells are not ice, but touch ice:
Diffusive mass averages across non-ice neighbors. Ice acts as a wall — vapor reflects instead of entering solid cells. The initial density sets how much vapor is available to diffuse in.
On the boundary, vapor splits into quasi-liquid and crystal by :
A boundary cell attaches when neighbor count and quasi-liquid cross thresholds , , :
Fractions of and of melt back into on the boundary, softening sharp fronts.
With the flake stays perfectly six-fold.
| Initial vapor density | |
| Freezing split | |
| Attachment thresholds | |
| Melting rates | |
| Noise amplitude |
Drag to tilt and turn. Each preset is a parameter set from Gravner and Griffeath — from fern-like dendrites to faceted plates. Dense vapor with a high threshold grows plates; lower and larger let arms race ahead and branch. Drift lets the parameters wander while the crystal grows, like a flake falling through changing air.
Every crystal below grew from a single seed with its own drifting parameters. Hover to turn one, click to regrow it.