This version
Random bottom row, four-neighbour average, cooling by one per row, a 256-colour black-red-yellow-white palette.
How this version works
A 320-pixel-wide byte buffer stores heat, with two extra rows seeded with either 255 or 40. Each cell takes three samples from the row below and one from two rows below, multiplies their sum by 0.985, then divides by four with an integer shift. The buffer is updated in place from top to bottom, twice per displayed frame, after an initial warm-up. A 256-entry VGA-quantised palette maps the heat from black through red and yellow to white.
The trick in this version
The simulation operates on palette indices rather than RGB colours, keeping heat storage to one byte per cell. This code uses a separate heat buffer and colour lookup, rather than writing directly into VGA screen memory.
Historical context · PC
1993 · Javier ‘Jare’ Arévalo / VangeliSTeam
FIREDEMO
Coded 9–10 May 1993 and released with source: the first famous fire effect, months before Iguana's Inconexia. Hans Wennborg's walkthrough quotes Jare on how it works.
1993 · Iguana · Inconexia
Fire in a full demo
Shown at Assembly 1993: the fire as part of a complete production, beyond a stand-alone experiment.
1995 · PlayStation Doom team
The Doom fire
The title-screen fire moves palette-indexed heat upward with random decay and sideways displacement, not the four-neighbour average.
- Platform
- PC · VGA mode 13h
- Era
- PC
- Rendered on
- CPU
- Tags
- heat buffer · 256 colours