Article View: comp.os.os2.programmer
Article #2810Re: Palette question
From: sivasailam thiagarajan
Date: Sun, 13 Dec 1992 15:44
Date: Sun, 13 Dec 1992 15:44
19 lines
1547 bytes
1547 bytes
In article <dlcogswe.724228046@vela> dlcogswe@vela.acs.oakland.edu (Dan Cogswell) writes: >I'm a bit confused about the way palettes work with PM. Can I define a >(near) 256 color palette and use all these distinct colors for my app? >I would like 256 shades of gray. A code fragment would be appreciated! ------ Run, do not walk, to Hobbes and get my SCALE.ZIP (which is probably still in the pub/uploads directory). This is a short program that draws a grayscale (or redscale, or bluescale, or ...). Full source code is included. Be sure to run the FOO.CMD file and tell me what you think! If you have any questions or comments, you can e-mail me at the address below. Raja Thiagarajan (sthiagar@bronze.ucs.indiana.edu) PS: You may also want to check out my PHYSCOLO, which can be found in the pub/os2/2.0/programming directory. Note: Both SCALE and PHYSCOLO require Palette Manager, so you should be using CSD 6055 and a 256-color driver for best results.
Technical Details
Message-ID:
<Bz7FpL.EC7@usenet.ucs.indiana.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!linac!att!news.cs.indiana.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!sthiagarReferences:
<dlcogswe.724228046@vela>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!linac!att!news.cs.indiana.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!sthiagar From: sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan) Subject: Re: Palette question Message-ID: <Bz7FpL.EC7@usenet.ucs.indiana.edu> Sender: news@usenet.ucs.indiana.edu (USENET News System) Nntp-Posting-Host: bronze.ucs.indiana.edu Organization: Indiana University References: <dlcogswe.724228046@vela> Date: Sun, 13 Dec 1992 15:44:09 GMT Lines: 19