Article View: comp.os.os2.programmer
Article #135Re: How do I iterate through Physical Screen Colors?
From: sivasailam thiagarajan
Date: Tue, 03 Nov 1992 13:09
Date: Tue, 03 Nov 1992 13:09
22 lines
1637 bytes
1637 bytes
>In article <Bx3H05.L0s@usenet.ucs.indiana.edu> sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan), I wrote: >>.... But how do I simply iterate through >>the physical [screen] colors from #0 to #255? In article <1992Nov2.182223.9326@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes: >Just do a GpiSetColor(hps, colorIndex); The GpiSetColor function sets >drawing to the color specified at the given palette index. The >constants like CLR_BLACK, CLR_RED, etc simply map to the numbers 0 >through 15, which are the colors that you shouldn't remap unless you >run out of spare palette entries. ------ I wish it were that easy, but this doesn't seem to work. The rectangles corresponding to numbers larger than the CLR_* indices all seem to map to white. And nothing changes, even when I run WinGIF seamlessly to change the physical palette. Surely there must be *some* way to iterate through the physical screen colors in PM!! Raja Thiagarajan (sthiagar@bronze.ucs.indiana.edu)
Technical Details
Message-ID:
<Bx55v3.Dww@usenet.ucs.indiana.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!sthiagarReferences:
<Bx3H05.L0s@usenet.ucs.indiana.edu> <1992Nov2.182223.9326@njitgw.njit.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!sthiagar From: sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan) Subject: Re: How do I iterate through Physical Screen Colors? Message-ID: <Bx55v3.Dww@usenet.ucs.indiana.edu> Sender: news@usenet.ucs.indiana.edu (USENET News System) Nntp-Posting-Host: bronze.ucs.indiana.edu Organization: Indiana University References: <Bx3H05.L0s@usenet.ucs.indiana.edu> <1992Nov2.182223.9326@njitgw.njit.edu> Distribution: na Date: Tue, 3 Nov 1992 13:09:03 GMT Lines: 22