tropo://techno/java/colour explorer intro |
The Colour Explorer let's you see the relationship between the RGB and HSB color models. If you've gotten this far I'm sure you know the RGB model - HSB stands for Hue/Saturation/Brightness and it's another color model that is closer to the way artists use colors. Color models are covered in all text books (e.g. the classic Computer Graphics : Principles and Practice... by Foley et. al.). The typical color chooser widget only lets you use one of the models - what's unique about this one is that it shows both at the same time.
The applet make extensive use of
java.awt.Color
esp
getHSBColor()
,
HSBtoRGB()
and
RGBtoHSB()
.
So go ahead and try it out.