[comp.graphics] RBG ==> HLS

gefuchs@skolem.uucp (Gill E. Fuchs) (05/08/89)

does anybody know what is the translation from RGB to HLS?
where RGB ranges from 0 to 255 and
      HLS is 0-360, 0-100, 0-100 respectively

thanks
gill

oh, what the hell, while we're at it, what would the inverse of the above
stansformation be?