From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: HSB to RGB conversion Date: Fri, 26 Jun 1998 20:30:11 +0100 Organization: None Message-ID: 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 Precedence: bulk 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