Message-ID: <35972021.AC242A12@post.comstar.ru> Date: Mon, 29 Jun 1998 09:03:29 +0400 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: Shawn Hargreaves CC: djgpp AT delorie DOT com Subject: Re: HSB to RGB conversion References: <35909C4D DOT 66578F21 AT post DOT comstar DOT ru> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk Shawn Hargreaves wrote: > 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. > Thank you for infomation. I already *hacked* Allegro's hsv functions. It works well for me. -- ____ ____ | \ / Dim Zegebart ____/____ Moscow Russia WWW - http://www.geocities.com/siliconvalley/pines/7817 DZcomm - comm library for Allegro Palantir - multitasking kernel for Allegro (based on PDMLWP)