Removing alpha from hex colors.
#1

Hello, I'm a bit stumped. Is there a function or easy way to remove alpha from an opaque color? I have a ganzone system and i think it looks very ugly on the map when a ganzone is an opaque color. So i need to do a calculation to remove alpha from the gangs color, and set the gangzone color based on that.

I'll give you an example of what i mean.
pawn Код:
//Is there a way to turn this;
0xFF6600FF
//To this;
0xFF660044
This is probably simple for someone who is good with hex numbers (unlike me).

Thanks in advance.
Reply


Messages In This Thread
Removing alpha from hex colors. - by iggy1 - 01.09.2011, 22:07
Re: Removing alpha from hex colors. - by =WoR=Varth - 03.09.2011, 02:58

Forum Jump:


Users browsing this thread: 1 Guest(s)