Mail Archives: djgpp/1997/10/09/18:15:21
At 19.03 1997-10-09 GMT, you wrote:
>Hi!,
> I was wondering if theres any where or anybody that knows where i can
>get hold of the entire list of color codes for the Allegro unchanged
>pallete.
How about something like:
PALETTE p;
get_palette(p);
Then to get the red components of color 5 you would simply write
int r = p[5].r;
(Atleast I think this is how you do, if this doesn't work, (I haven't
tested it) please let me know)
-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --
*****************************************************
* A brief description of DJGPP: *
* NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! *
*****************************************************
- Raw text -