home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19616 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.8 KB  |  37 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ncr-sd!ncrcae!hubcap!rsimms
  3. From: rsimms@hubcap.clemson.edu (Robert Simms)
  4. Subject: HLS,RGB conversion for VT340
  5. Message-ID: <1992Dec20.215736.21865@hubcap.clemson.edu>
  6. Summary: how does the VT340 convert from HLS to RGB (from Sixel color info)
  7. Keywords: color terminal programming
  8. Organization: Clemson University
  9. Date: Sun, 20 Dec 1992 21:57:36 GMT
  10. Lines: 25
  11.  
  12. I've been working (playing) on the side with sixel graphics for a few years.
  13. I've written Display <--> sixel programs for the IBM PC, and a graphics
  14. format conversion program in pascal for the VAX.  Now, I've stumbled onto
  15. a question that's been haunting me for quite some time.  It comes up
  16. because my program on the VAX stores colors in HLS form.  If a sixel
  17. has the colors defined using RGB values, I'd like to convert them to the
  18. matching HLS values.  The Hue is no problem.  But, Light and Saturation
  19. are still evading me.  Light, according the table of HLS and RGB values for
  20. the standard colors in volume 2 of the
  21. VT340 programmers reference, is not just a simple average of Red Green and
  22. Blue, I tried that already.  It does say that, for monochrome monitors, that
  23. Light = (2G+R)/3, but this is apparently not the case for color monitors.
  24.  
  25. I've checked in the Enc. Britannica, and two other color science books,
  26. but they're mostly concerned with the CIE standards for measuring light,
  27. not the application end.  I would have checked the Regis manual, but
  28. I can not find it at our site. 
  29.  
  30. Any clues?
  31.  
  32.                 - Rob (rsimms@gemini.clemson.edu)
  33. -- 
  34. Robert Simms                             |           rsimms@hubcap.clemson.edu
  35. Department of Math Sciences              |       or  rsimms@gemini.clemson.edu
  36. Clemson University, Clemson, SC 29634    |       or  rsimms@math.clemson.edu
  37.