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