RainbowText: Creates HTML Rainbow Colored Text (v 1.04)

Category:
String Manipulation
Type:
Applications
Difficulty:
Intermediate
Author:
redbird77

Version Compatibility:

More information:
The "heart" of the program is a function called HSBtoLNG which takes a color in (H)ue, (S)aturation and (B)rightness terms and returns a web-ready hex string. When the hue is incremented in small (< 0.2) steps a rainbow effect is produced. One can create many nifty variations with the main function. Try varying the saturation or the lightness instead of the hue, or all of them at the same time. I also have created/hacked together a couple of other color related functions, plus I have translated many of them into JavaScript. If you would like any of these functions, email me.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download rainbowtext.zip