Artificial smoke

A physicist could come up with an elaborate model for simulating smoke that produces results indistinguishable from real smoke. We are interested in simple models, with successive refinement.

Our first version of smoke introduces the idea of gradual fading by painting the screen with a translucent black. We do this by painting the screen with a call to rect using a fill color of black, but with a low alpha value to provide transparency.