This is a forest fire simulation based on this Veritasium video. Run it and hit SPACE to start.
Tweak the constant values to alter the simulation.
Green Pixel represent Trees. They spawn over time at random locations. A lightning hits a random pixel every few frames and starts a fire. The fire spreads to surrounding, touching trees and burns them down.
The purpose is.. well better watch the video, it explains it better than i could ever do :D