home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / 10246 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.5 KB

  1. Path: sparky!uunet!mcsun!sun4nl!wtrlnd!oeinck.waterland.wlink.nl!ferdinan
  2. From: ferdinan@oeinck.waterland.wlink.nl (Ferdinand Oeinck)
  3. Newsgroups: comp.sys.acorn
  4. Subject: setting the 256 colour palette
  5. Message-ID: <Bo6uwB3w165w@oeinck.waterland.wlink.nl>
  6. Date: Fri, 08 Jan 93 21:41:46 CET
  7. Organization: My own node in Groningen, NL.
  8. Lines: 26
  9.  
  10. Suppose you have one of the modern graphics cards (either from CC
  11. or from State Machine) and you have tried to change the entries of the
  12. 256 colour palette.
  13.  
  14. You must have discovered that your card has surprisingly little
  15. software support for that purpose. Don't be afraid the other card's
  16. software isn't much better.
  17.  
  18. To change the 256 colour palette, I've written a small program that does
  19. the job. It is not a 'Palette utility'-like program, with which one can
  20. specify RGB, CMYK or whatever values for every palette entry.
  21.  
  22. The program works more like a 24-bit printerdriver. After one specifies
  23. an area of interest on the screen (which of course contains a Draw-
  24. or Artworks-document) the screen is redrawn three times, first with
  25. a red palette, then a green one, and finally with a blue palette. Now
  26. three sprites are available of the specified area, for every colour
  27. component one sprite (in theory one can combine these three sprites into
  28. a 24 bit image, wow!).
  29.  
  30. Finally a color quantization algorithm estimates the best 256 colours,
  31. and changes the palette to these values.
  32.  
  33. If there is any interest in this program, please mail me.
  34.  
  35. Ferdinand.
  36.