Chameleon Bar

Last updated: 08.05.2002


Files

Parameters

Test Applet


Files

Filename Description Java Class
ChameleonBar Implements color-changing separator bar. [Java File] [Class File]
ExtendedApplet Implements parameter parsing and other frequently-required applet functionality. [Java File] [Class File]
Project Archive (StuffIt) Sources and CodeWarrior project in StuffIt 5 format for Macintosh users. [StuffIt Archive]  
Project Archive (ZIP) Sources in ZIP format for PC users. [ZIP Archive]  

To download source or class files, click on the file icon with your right mouse button (Windows/UNIX) or click and hold (Macintosh) and choose "Save ..." or "Download ...". Archives containing the sources for this applet are provided in StuffIt 5 and Zip format.

Parameters

Parameter Type Values Default Notes
delay int 1+ 100 Time (in milliseconds) between color changes.
lower-bound int 0-255 0 Smallest possible color component value. Set to 0 to allow bars to darken to black.
upper-bound int 0-255 255 Largest possible color component value. Set to 255 to allow bars to lighten to white.
bar-color Color #rrggbb - Starting color for the bar. If not specified
seed int 0-65535 - Seed for random number generator. If you create several bars with the same seed

Test Applet

[raingod:resources:java] -- [up][links][home]