Here's a simple effect suitable for adding a little pizazz to title screens or whatnot. The "lights" are nice and square and are, in fact, only a 1/2 pixel high. Too bad that anyone who recalls the TRS-80 is likely to think the pixels were that size. Oh well, I know there's a lot more going on here than meets the eye.
InstructionsThe light pixels are generated in a stream starting at the bottom left and moving clockwise. It starts at a spacing of 6 pixels which can be tightened up by holding the left arrow key and spread out by holding the right arrow key. Hold ENTER to suspend light production. Hold space bar to add lights.
It only checks if a key is held so a light touch is needed on the left and right arrow keys.
George Phillips, July 3, 2009. george -at- 48k.ca