Click anywhere on the screen to spawn a firework rocket. Watch it fly and explode into colours, then fade away. Press [P] to toggle pause. [F] to advance 1 frame. How it works: Particles are stored in a list. Every frame, the particles are drawn on to the screen. There are two kinds of particles - the firework rocket, and the explosion. Both have different physics, and once the firework rocket has reached a certain point in its life, it converts to a bunch of explosion particles.