www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/29/04:41:26

Message-ID: <35972021.AC242A12@post.comstar.ru>
Date: Mon, 29 Jun 1998 09:03:29 +0400
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
CC: djgpp AT delorie DOT com
Subject: Re: HSB to RGB conversion
References: <35909C4D DOT 66578F21 AT post DOT comstar DOT ru> <biWhyBADb$k1EwdC AT talula DOT demon DOT co DOT uk>


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)


- Raw text -


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