This sample project demonstrates a simple way to programmatically render fire. No pre-built images or palettes are used, making the code extremely lightweight and portable. Both flame coloring and generation can be performed using simple math.
Download the sample app and source code from GitHub