cont...256 colors in C...

michael k finegan mfinegan at uceng.UC.EDU
Sun Sep 2 02:22:56 AEST 1990


The 256 color mode uses a look up table (palette) to get 256 colors out of 2^6
possible colors. The turboC 'environment' probably changes the palette, maybe
making a range of LUT entries 0. Try saving the palette on entering your
program, setting default or desired palette, then restoring palette on exit.
That should be pretty portable :-).
						- Mike
						  mfinegan at uceng.uc.edu



More information about the Comp.lang.c mailing list