> Can someone please explain to me how to fix the pallette
> change problem when I import a logo graphic into the icr2
> car.pcx. Why are my colors getting scrambled? Is there a .pal
> file that I need to work with.
> How about some of you expert car customizers helping me out
> here.Thanx.
> Sandman
Well, the palette is made up of 256 colors.
Each color has its own register on the video board.
The picture is made up of numbers and each number
refers to a register. If a register contains another
color than that defined in the palette that comes
with your imported picture the colors will be wrong.
The registers have been set by the paintkit so any
picture with a different palette will look bad.
Btw you can have two palettes containing the same
colors but for the palettes to be *equal* the colors
must be in similar order. This is because when a
palette is set it will be set sequentially starting
with register 0, then register 1, etc.
In 320x200x256 you have 256 registers but each register
consists of three bytes (R G B) where only the six least
significant bits are used in each byte, thus we can
choose colors from (6 bits/bytes * 3 bytes) = 18-bit
palette, ie 262144 different colors.
-- Terje Wold Johansen "I am your inferior superior." Speaking --
-- Dept. of Informatics, University of Oslo, Norway myself! --