Set Color Key

I want to make ‘white’ my transparent pixel with SDL_SetColorKey but dont
know what the number of the color white is. I usually use black (color 0),
but my later graphics are very dark, and become corrupted with black. So I
was wondering where is a list of each of the colors followed by their
number, and if this doesn’t exist, what is the number for white?

thanx

– Uriah Liggett –
Anime Rave
http://www.animerave.com________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

“Uriah Liggett” <game_dev at hotmail.com> wrote in message
news:20000710212646.1181.qmail at hotmail.com

I want to make ‘white’ my transparent pixel with SDL_SetColorKey but dont
know what the number of the color white is. I usually use black (color
0),
but my later graphics are very dark, and become corrupted with black. So
I
was wondering where is a list of each of the colors followed by their
number, and if this doesn’t exist, what is the number for white?

Use SDL_MapRGB.–
Rainer Deyke (root at rainerdeyke.com)
Shareware action/role-playing games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

color_key = SDL_MapRGB(image->format, 0xFF,0xFF,0xFF);
SDL_SetColorKey() using the color key.

I believe colors are numbered in the order they are allocated, so there is
no guarantee that any particular color will be a specific color_key.–
Brian

On Mon, 10 Jul 2000, Uriah Liggett wrote:

I want to make ‘white’ my transparent pixel with SDL_SetColorKey but dont
know what the number of the color white is. I usually use black (color 0),
but my later graphics are very dark, and become corrupted with black. So I
was wondering where is a list of each of the colors followed by their
number, and if this doesn’t exist, what is the number for white?

thanx

– Uriah Liggett –
Anime Rave
http://www.animerave.com


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com