
Palette in QB45 Screen Mode 12 & 13
I am having trouble figuring out how to make the palette
statement work
in screen modes 12 & 13.
For instance:
I draw a circle on the screen and fill it in with attribute #2.
(green)
Now when I say PALETTE 2, variable& shouldn't it change all the
pixels on
the screen colored #2 to color variable&? All I get are shades of
red.
--
Clocker
There is a little formula that is needed for VGA modes... here it is:
variable&=65536*blue+256*green+red
Where blue, green, and red are numbers 0-63.
Hope that helps
Randy Hale