This program draws randomly generated lightning on the screen.
Controls:
SPACE or Click: create lightning at mouse cursor
r: create firework at random position
ESCAPE or q: quit
F12: take screenshot
Numpad number keys: create fireworks at coordinates corresponding to the positions of the numpad number keys. Nunmlock must be OFF.
Details
Find the source code in the links section on the left side.