Mail Archives: djgpp/1998/06/28/08:10:47
Dim Zegebart writes:
>Does anybody know the way how to convert HSB color representation to RGB
>one ?
HSB color (hue, saturation, and brightness) is just another term for HSV
(hue, saturation, and value). Allegro contains functions for converting
between RGB and HSV formats.
You may also sometimes run into the HLS format (hue, lightness, and
saturation). This is a slightly deformed version of HSV color, where
zero lightness represents black, one represents white, and 0.5 is a
fully saturated chromatic color.
Check out Foley & Van Dam, "Computer Graphics, Principles and Practice"
for a good discussion of the various color spaces.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Miracles are nothing if you've got the wrong intentions" - Mike Keneally
- Raw text -