home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!munnari.oz.au!metro!ipso!fawlty!johnmac
- From: johnmac@fawlty.towers.oz.au (John MacLean)
- Subject: Simulated Dithering
- Organization: Tower Technology, Sydney
- Date: Sun, 6 Sep 1992 22:49:46 GMT
- Message-ID: <1992Sep6.224946.9203@fawlty.towers.oz.au>
- Sender: johnmac@fawlty.towers.oz.au (John MacLean)
- Lines: 28
-
- This is the sort of question people usually ask me, but unfortunately
- my answer is not as good as it should be - so maybe someone knows better:
-
- What algorithm should be used to simulate the 640 mode SHR dithering in
- software?
- ie: Given two RGB values, what is the closest RGB value to the color that
- will appear on the screen, if these two colors are placed side by side in
- 640 mode?
-
- This is needed to display GIFs, etc, in 640 mode dithered format.
- I seem to have a really good routine for selecting an appropriate palette,
- but I am having trouble mapping the colors onto this palette, so I need
- to improve my dithering routine.
-
- BTW: R3 = (R1 + R2) / 2, ... etc does not work very well.
-
- Any ideas, pointers, etc.
- Maybe its even in a tech note I have not seen?
-
- John MacLean.
-
-
-
- --
- This net: johnmac@fawlty.towers.oz.au Phone: +61 2 427 2999
- That net: uunet!fawlty.towers.oz.au!johnmac Fax: +61 2 427 7072
- Snail: Tower Technology, 1 Apollo Pl, Home: +61 2 449 5930
- Lane Cove, NSW 2066, Australia.
-