256 Color in 'char Image' array
Posted on 2004-03-22
i have a sprite (4 x 4 pixels) defined in a char array "char Image" as given below for example, having colors Red (Value 12) and Yellow (Value 14). I am writing directly to VGA memory in Mode 13h which can support upto 256 colors. I know the colors having values from 1 to 16 which can be used in this array. The question is if i want to choose any other color (other than 16 colours) from the range of 256 colors, then what value should i give it in the array so that i can get that displayed on the screen. any lookup table? or something. pls. note that all of my sprites are defined using char arrays. I am using Turbo C 3.0 DOS complier.
char Image =
T. P. Pramod Kumar