Alexis Mabanza @ alexvolkihar.ovh

Snowflake

Snow crystals grown on a hexagonal cellular automaton

Every crystal starts as a single frozen cell in the middle of a hexagonal grid filled with water vapour. At each step the vapour spreads from cell to cell, and the cells that touch the ice catch a little of it, plus a constant trickle from the air above and below. Once a cell holds enough water it freezes, and its neighbours start catching vapour in turn. Three numbers set the shape: how humid the air is, how much vapour comes from the third dimension, and how fast the vapour spreads. Dry air grows fern-like dendrites. Damper air grows broad stellar plates. A falling snowflake passes through layers of air with different humidity, so the numbers can change while a crystal grows: a plate may sprout arms, or a dendrite may end in plates. A crystal grown from one cell keeps the twelve symmetries of the hexagon, so only one twelfth of it is computed and the rest is mirrored.

Each grown crystal is drawn in one of three ways. Ice shows clear ice that is brighter where it slopes, along the ridge of every branch and at the rim, as under dark-field lighting. Paper cut shows a folded paper cut-out with its twelve folds and a few inset cuts. Chronicle colours each cell by the moment it froze. A piece holds a single crystal, a trio or a whole flurry. Press New seed for a fresh hash, then share the URL to show someone that exact piece.

All series
0xaccd68e7…c55e
Habit Stellar dendriteFinish IcePalette CyanotypeLayout Single
0x0686c466…73be
Habit Stellar plateFinish ChroniclePalette LinenLayout Single
0x12a2b4da…ff41
Habit Stellar dendriteFinish Paper cutPalette LinenLayout Single
0xfaa568e9…700f
Habit LayeredFinish IcePalette Polar nightLayout Single
0xc4211a8e…9c80
Habit Stellar plateFinish Paper cutPalette LinenLayout Single
0x0a291da8…9962
Habit Plate & armsFinish IcePalette AuroraLayout Trio
0x5d60dd40…021d
Habit FernlikeFinish Paper cutPalette LinenLayout Single
0x7bd75af1…9261
Habit Stellar plateFinish IcePalette RoseLayout Single
0x17c1d895…48fc
Habit Plate & armsFinish ChroniclePalette Polar nightLayout Single
0x64d5d8cf…1862
Habit FernlikeFinish IcePalette CyanotypeLayout Trio
0x598c6b11…4f80
Habit Stellar dendriteFinish ChroniclePalette RoseLayout Trio
0xde4e3dc1…d4cb
Habit LayeredFinish ChroniclePalette Polar nightLayout Trio

Traits

The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.

TraitValues (weight)
HabitStellar dendrite 30 · Fernlike 15 · Stellar plate 20 · Plate & arms 20 · Layered 15
FinishIce 40 · Paper cut 30 · Chronicle 30
PalettePolar night 26 · Aurora 14 · Linen 18 · Cyanotype 18 · Ember 12 · Rose 12
LayoutSingle 50 · Trio 25 · Flurry 25

Credits

  • Growth: Clifford A. Reiter’s local cellular model, A local cellular model for snow crystal growth (Chaos, Solitons & Fractals 23, 2005), with its parameters alpha (diffusion), beta (background humidity) and gamma (vapour added from the third dimension). Reiter also studied what happens when the growth conditions change. Colouring each cell by the time it froze follows Janko Gravner and David Griffeath, who shade cellular snowflakes by the time each cell joins the crystal in "Modeling snow crystal growth I: rigorous results for Packard’s digital snowflakes" (Experimental Mathematics 15, 2006) and "Modeling snow crystal growth II: a mesoscopic lattice map with plausible dynamics" (Physica D 237, 2008).
  • The habit names (dendrites, fern-like crystals, stellar and sectored plates) come from the snow-crystal classification of Magono and Lee (1966), as surveyed in Kenneth G. Libbrecht’s "The physics of snow crystals" (Reports on Progress in Physics 68, 2005).
  • Rendering: the ice is interpolated over the triangles of the hexagonal lattice, and its relief comes from the distance to the crystal’s edge, so plates show the ridges that run to their corners.
  • Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
  • The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.

Artworks © Alexvolkihar, licensed CC BY-NC-ND 4.0. Code under the repository licence (MIT).


>