Article View: comp.windows.x.pex
Article #32Re: PEX-SI color models
From: Rich Thomson
Date: Fri, 07 Aug 1992 23:19
Date: Fri, 07 Aug 1992 23:19
41 lines
2183 bytes
2183 bytes
In article <686@trwacs.fp.trw.com> george@trwacs.fp.trw.com (George Fletcher) writes: >I am having some significant problems trying to display application defined >colors in a PEX window. It seems that no matter what color models I use or >what colors I define I always end up with the same colors. My current >sequence of step follows. Any help would be greatly appreciated. > > Open Phigs > > Open Workstation (phigs_ws_type_x_drawable) > > Set Workstation color model to RGB > > Allocate (using pset_colr_rep) all colors currently > residing in the X colormap I don't know why you're doing this. The PHIGS pipeline uses floating point values for all colors until the last stage when it picks the appropriate pixel (X colormap index for pseudocolor windows) for that color. Picking the appropriate pixel value on an 8-bit PC system, usually involves having the colormap setup as a 3/3/2 bit RGB allocation along with dithering. Just specify the colors using RGB floats and the last stage of the rendering pipeline will select the appropriate X "pixel" value based on the colormap and the dithering involved (if any). > Set polyline list colors with RGB values > > Display the polyline > >The sets of lines do not show up in the colors specified. Check to make sure you're specifying the polyline colors properly. I can post a code example of how to do this if it would help. -- Rich -- Repeal the personal income tax; vote Libertarian in 1992. Disclaimer: I speak for myself, except as noted; Copyright 1992 Rich Thomson UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson Internet: rthomson@dsd.es.com IRC: _Rich_ PEXt Programmer
Technical Details
Message-ID:
<1992Aug7.231909.10798@dsd.es.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!orca!mesa!rthomsonReferences:
<686@trwacs.fp.trw.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.pex Path: arc1-ca.pugleaf.net!sparky!uunet!orca!mesa!rthomson From: rthomson@mesa.dsd.es.com (Rich Thomson) Subject: Re: PEX-SI color models Message-ID: <1992Aug7.231909.10798@dsd.es.com> Keywords: Colors, Visuals Sender: usenet@dsd.es.com Nntp-Posting-Host: 130.187.85.21 Reply-To: rthomson@dsd.es.com (Rich Thomson) Organization: Design Systems Division, Evans & Sutherland, SLC, UT References: <686@trwacs.fp.trw.com> Date: Fri, 7 Aug 92 23:19:09 GMT Lines: 41