[comp.graphics] HSB <-> RGB

11TSTARK@GALLUA.BITNET (Timothy Stark) (09/12/88)

Dear users:

  Does anyone know about alogrithms to convert from Hue/Situartion/Lightness
to Red/Green/Blue and reverse? I looked information in all graphics
books but I cannot find any. :( if so, please send me in e-mail directly,
don't post on this newsgroup because I don't have subscribe to comp.graphics.

Thank!

-- Tim Stark

P.S. Please spell my userid, 1 1 T S T A R K, Not 11STARK, Not LLSTARK!

+=============================================================================+
| Timothy Stark          | BitNet:   11TSTARK@GALLUA.BITNET                   |
| Gallaudet University   | Internet: 11TSTARK%GALLUA.BITNET@CUNYVM.CUNY.EDU   |
| P.O. Box 1453          | UUCP:     ...!psuvax1!gallua.bitnet!11tstark       |
| Washington, DC. 20002  | CSNET:    11TSTARK%GALLUA.BITNET@RELAY.CS.NET      |
| USA                    | QLink:    TimS18                                   |
+=============================================================================+

      "The deaf people called the only university for the deaf."

ktidwell@hpfcdq.HP.COM (Ken Tidwell) (09/14/88)

Have you looked in "Fundamentals of Interactive Computer Graphics" by
J.D. Foley and A. Van Dam?  On pages 618 and 619 are algorithms that I've
used to convert HLS to RGB and vice versa.

-Ken Tidwell

Hewlett-Packard Graphics Technology Division
3404 E. Harmony Road
Ft. Collins C0. 80525
ktidwell@hppizazz.hp.com
(303) 229-6099