Drag to paint fire · drop, paste or choose a picture · click the empty quote to change it
What you are looking at
The fire is a fluid simulation of burning fuel, run on the GPU. Each cell holds air velocity, temperature, unburnt fuel and smoke. Every step:
Fuel comes in from the chosen source: a burning floor, separate pools, a wall of fire that climbs the frame, fuel you paint, or the bright parts of the picture.
Wherever the gas is above the ignition temperature, fuel burns at the burn rate. Burning releases heat and smoke, and makes the gas expand, which pushes air outward.
Hot gas is lighter than the air around it, so buoyancy lifts it (measured against a blurred, local temperature, so a wide fire still draws its air in from beside and between the flames). Swirl (vorticity confinement) keeps small eddies alive, turbulence stirs them, and wind and gusts lean the flames over.
The air is kept incompressible by a pressure solve, apart from the expansion. Temperature, fuel and smoke ride on the moving air, using MacCormack advection so that thin licks of flame stay sharp.
Gas cools faster the hotter it is, roughly as radiation would. The visible flame is the gas that is still hot, which is why the tips break off and fade.
The look is a separate pass. Temperature becomes colour through a palette: a warm film stock, the yellow of the poster, true blackbody, blue gas, green chemical, or a stepped retro ramp. The flame is see-through, by an amount you set, so the picture shows behind it. Hot air above the fire bends the picture (heat shimmer). The flames light the picture with their own colour, and bloom, grain, vignette and an optional 2.39:1 film frame finish it. Turn up Picture chars and the hottest places scorch the picture black, with glowing edges.
Things to try
Pick Brush → Fuel source and write a word on the stage. It keeps burning until you clear it.
Load a portrait, turn Picture burns up, and the bright parts of the face catch fire.
Take Scorching wind and push Wind both ways; the picture chars where the flames lick it.
Keys: space pause, R reset, Q new quote, S save PNG, H hide controls.
The settings are kept in the address bar, so a link reproduces your fire (not the picture).