A CHANCE for all you game fans to get a little rest, and at the same time learn a clever programming technique called palette switching. This involves changing the colours of adjacent sections, and so giving the impression of smooth, flicker-free animation. The program listed here shows a multi-coloured snake, winding its way around the screen and avoiding the randomly scattered blocks. The only part of the snake that moves is its head, with the segments that make up the body changing colour, and the last piece being blanked out. CWTA |