vanpelt@nvpna1.prl.philips.nl (bart van pelt) (05/03/89)
Is there a standard way to convert from the RGB color system to the HLS color system? Where do I find references? BBBBB t Bart van Pelt B B t Philips Natlab Eindhoven B B aaaaa rrrr tttt (031) 040-743868 B BB a r r t B B aaaaa r t B B a a r t t vanpelt@nvpna1.prl.philips.nl BBBBBBB aaaaaa r tt
jlg@hpfcdq.HP.COM (Jeff Gerckens) (05/05/89)
> Is there a standard way to convert from the RGB color system to the > HLS color system? Where do I find references? > > > BBBBB t Bart van Pelt > B B t Philips Natlab Eindhoven > B B aaaaa rrrr tttt (031) 040-743868 > B BB a r r t > B B aaaaa r t > B B a a r t t vanpelt@nvpna1.prl.philips.nl > BBBBBBB aaaaaa r tt Any reasonable text on Computer Graphics has the algorithm. In particular, you can try: Fundamentals of Interactive Computer Graphics by Foley and Van Dam (Addison Wesley) section 17.4.5 or Procedural elements for Computer Graphics by David F. Rogers (McGraw-Hill) ~pp403-406. (Make sure it is a new edition, the first edition contains a typo in the algorithm) -- Jeff Gerckens, Hewlett-Packard Graphics Technology Division (...!hplabs!hpfcrg!jlg or jlg%hpfcrg@hplabs.hp.com )
garyb@hcx1.SSD.HARRIS.COM (05/09/89)
Page 617-619 of Foley and Van Dam's "Fundamentals of Interactive Computer Graphics" contains a descriptions of HLS, and pascal-like code for coverting from RGB to HLS and HLS to RGB representations. It also has a couple more references describing HLS. -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | Gary Barton | Harris Computer Systems Division | | Software Development | 2101 W. Cypress Creek Rd. | | garyb@ssd.harris.com | Ft. Lauderdale. FL 33309 | | {uunet,mit-eddie,novavax}!hcx1!garyb | (305) 974-1700 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++