Skip to main content

▸ tap the pond

Vibe Lab·FOREST FIRE

Trees grow, lightning strikes, fires spread

A 64x64 patch of forest. Every couple seconds a lightning bolt sparks somewhere in the canopy and a wave of red-orange-yellow flame eats its way through neighboring trees, leaving a trail of dark-purple ash that fades back to dirt in a few seconds. Empty dirt slowly grows new saplings, the saplings grow into trees, and the cycle starts over. Tap or drag anywhere to call down your own lightning bolt. Drag a slow trail and you can paint a whole row of fires racing toward each other. The same four-rule cellular automaton complexity scientists use to teach phase transitions and the same equation epidemiologists use to model disease spread — just a forest, on fire, on a tiny screen.

What it does

Each cell is empty, a tree, or burning. Every generation: burning cells turn to ash, trees with a burning 4-neighbor catch fire, empty dirt sprouts new trees with probability ~1.2%, and any tree spontaneously ignites from lightning with probability ~0.01%. Burning cells visibly cool through red → orange → yellow over three frames so each flame flickers hot to cool, and a cell stays as dark-purple ash for four frames after the fire passes before fading back to dirt — so the path of a finished burn is still readable a moment later.

In the real world

Drossel and Schwabl wrote down this CA in 1992. The same four-rule equation models real wildfires (why a forest that never burns is more dangerous than one that burns small fires often), disease spread through a population (drop the regrowth and you have the SIR epidemic model), and percolation theory (water seeping through soil, electricity through random networks). At one specific tree-density it shows a phase transition — below it fires die out fast, above it the canopy stays nearly full — the same critical-point math that governs how iron magnetises and how cracks propagate in glass.

Painted with these colors

Every VibeBoy lab paints with these 16 colors — the same palette PICO-8 made famous. Constraints are what make pixel art feel like pixel art.

15 of 15