Mail Archives: djgpp/1997/10/24/19:04:30
Vic schrieb:
> Michal Mertl wrote:
> > On Wed, 15 Oct 1997, Simon Churchill wrote:
> > > Andreas Björk wrote:
> > > Have You remembered that the palette is only 18bit colour not 24bit
> > >
> > > ie rgb vals go from 0 - 0x63 and not 0 - 0xff ???????
> > >
> > Not to be pedantic but it's 0 - 63 (0x3f)
> Plus the palette is 8 bit. I never heard of 18 bit...
Never heard? I assume you haven't tried graphics programming yet...
Picture data is 8 bit per pixel because it's a reference to the 256 DAC palette
registers which are 18 bit wide (6 bit for red/green/blue values, which leads to
2^18 = 262144 different colors, but only 256 of them are displayable at the same
time) HiColor/TrueColor modes don't have a palette which makes fading a hard
task (I've heard something about 'color ramp' but I don't know what this really
is...)
- Raw text -