[comp.sys.sgi] hsbcolor to rgbcolor

raeker@tc4.chem.iastate.edu (Todd J. Raeker) (05/21/91)

  I don't know if I can phrase this correctly or not but here goes.

What I need is a formula of some sort that will convert a given set 
hsb  color values to the corresponding rgb color values.  I am trying
to write a gl program that uses hsb color values much like the PostScript
language does, however, I do not want to use PostScript to draw on the 
screen my graphics images.  Any help would be greatly appreciated as I am
out of ideas of my own.  Thanks in advance.



Todd Raeker
Ames Lab
Iowa State University

robert@texas.asd.sgi.com (Robert Skinner) (05/21/91)

In article <1991May21.025511.20124@news.iastate.edu>, raeker@tc4.chem.iastate.edu (Todd J. Raeker) writes:
|> 
|>   I don't know if I can phrase this correctly or not but here goes.
|> 
|> What I need is a formula of some sort that will convert a given set 
|> hsb  color values to the corresponding rgb color values.  I am trying
|> to write a gl program that uses hsb color values much like the PostScript
|> language does, however, I do not want to use PostScript to draw on the 
|> screen my graphics images.  Any help would be greatly appreciated as I am
|> out of ideas of my own.  Thanks in advance.
|> 

use the routine hsb_to_rgb in libutil.a.  There is a man page.

-- 
Robert Skinner

	RS-232 refers to a "standard" in about the same way that 
"Delaware" refers to a location - you know enough to find it and get lost.

msc@ramoth.esd.sgi.com (Mark Callow) (05/25/91)

In article <1991May21.152711.7657@fido.wpd.sgi.com>, robert@texas.asd.sgi.com (Robert Skinner) writes:
|> 
|> use the routine hsb_to_rgb in libutil.a.  There is a man page.
|> 

That's libgutil not libutil.

-- 
From the TARDIS of Mark Callow
msc@ramoth.sgi.com, ...{ames,decwrl}!sgi!msc
"Spirits of genius are always opposed by mediocre minds" - Albert Einstein