home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 6979 < prev    next >
Encoding:
Text File  |  1992-12-13  |  1.5 KB  |  32 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: 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
  3. From: sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan)
  4. Subject: Re: Palette question
  5. Message-ID: <Bz7FpL.EC7@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: bronze.ucs.indiana.edu
  8. Organization: Indiana University
  9. References: <dlcogswe.724228046@vela>
  10. Date: Sun, 13 Dec 1992 15:44:09 GMT
  11. Lines: 19
  12.  
  13. In article <dlcogswe.724228046@vela> dlcogswe@vela.acs.oakland.edu (Dan Cogswell) writes:
  14. >I'm a bit confused about the way palettes work with PM.  Can I define a
  15. >(near) 256 color palette and use all these distinct colors for my app?
  16. >I would like 256 shades of gray.  A code fragment would be appreciated!
  17. ------
  18. Run, do not walk, to Hobbes and get my SCALE.ZIP (which is probably
  19. still in the pub/uploads directory). This is a short program that
  20. draws a grayscale (or redscale, or bluescale, or ...). Full source
  21. code is included. Be sure to run the FOO.CMD file and tell me what you
  22. think! If you have any questions or comments, you can e-mail me at
  23. the address below.
  24.  
  25. Raja Thiagarajan
  26. (sthiagar@bronze.ucs.indiana.edu)
  27.  
  28. PS: You may also want to check out my PHYSCOLO, which can be found in
  29. the pub/os2/2.0/programming directory. Note: Both SCALE and PHYSCOLO
  30. require Palette Manager, so you should be using CSD 6055 and a
  31. 256-color driver for best results.
  32.