delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/09/18:15:21

Message-Id: <3.0.16.19971010001300.4ca77178@hem1.passagen.se>
Date: Fri, 10 Oct 1997 00:13:14 -0400
To: djgpp AT delorie DOT com
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: Allegro Colors with normal unchanged pallete?
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019