delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/28/08:10:47

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HSB to RGB conversion
Date: Fri, 26 Jun 1998 20:30:11 +0100
Organization: None
Message-ID: <biWhyBADb$k1EwdC@talula.demon.co.uk>
References: <35909C4D DOT 66578F21 AT post DOT comstar DOT ru>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019