comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: HSB to RGB?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: HSB to RGB? [message #5916] Wed, 13 March 1996 00:00 Go to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
lgao@aol.com (LGAO) wrote:

> Hi,

> Does anyone know the equation to convert the color in
> HSB(hue,satriration,brightness) model to the color in RGB(red, green blue)
> model?

If you translate HSB into HLS (Hue, Lightness, Saturation) or HSB
(Hue, Saturation, Brightness) you can use the IDL procedure
COLOR_CONVERT to convert to and from RGB.

Is the conversion 1 to 1?

That depends upon the implementation and the color coordinate system
used: RGB is a cube, HSB is a cone and HLS is a double cone (if I
don't intermix HSB and HLS).

> Thanks.

> Li
Norbert Hahn
[Message index]
 
Read Message
Read Message
Previous Topic: Re: hooking external 'C' functions to IDL
Next Topic: What's best?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:10:16 PDT 2025

Total time taken to generate the page: 0.80026 seconds