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