Seasons Greetings

This applet demonstrates the use of threads with graphics. The star atop the tree is flashed on/off within a separate thread, while the main "twinkle" method selects a random number of the lightbulbs and toggles them on/off. The bulb colors and positions are initialized and the bulbs are drawn/erased using simple fillOval methods with the masked bare tree image used for "cleanup" in transparency regions.

(by M. Gallant 11/29/96)

Go Home ET