retrodev.info
Proudly wasting this domain name since 2001!Archive for source
Uniform palettes
An uniform palette is a palette designed to show many hicolor or truecolor images into a single palettized video mode. This rendered image loses colors obviously, but the trick works without altering the system palette. In fact, you have only to define the palette once in your setup.
I was working sometime ago about improving my own uniform palette, for those systems with a limited colour range display.
My current changes are:
- changing from a RGB 6×6x6 (216) colour cube (as seen in Websafe standard, or Macintosh palettes) to a RGB 8×8x4 (256) colour cube, which gives a full 256 colours spectrum range.
- adding three (full 256 ramp) gamma corrected tables for each R,G,B channel.
- balancing R,G,B values into better eye-looking values.
- compensating B component against R,G ones to give true grays.
truecolor, websafe, websafe dithered
truecolor, macintosh, macintosh dithered
truecolor, rgb332, rgb332 dithered
truecolor, my palette, my palette dithered











truecolor, websafe, websafe dithered
truecolor, macintosh, macintosh dithered
truecolor, rgb332, rgb332 dithered
truecolor, my palette, my palette dithered











truecolor, websafe, websafe dithered
truecolor, macintosh, macintosh dithered
truecolor, rgb332, rgb332 dithered
truecolor, my palette, my palette dithered











Download source code







