posted 21 years ago
You can also define more colors than already defined (black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, & yellow) by using RGB (or RGBA) values to construct new colors, like this :
The int values sent to the constructor must be in the range 0 - 255. There is also another constructor that takes float values in the range of 0.0 - 1.0 (to specify percentage of R, G, and B in the color).
HTH,
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.