Removing alpha from hex colors.
#2

pawn Код:
stock RGBAToHex(r, g, b, a) //By Betamaster
{
    return (r<<24 | g<<16 | b<<8 | a);
}

stock HexToRGBA(colour, &r, &g, &b, &a) //By Betamaster
{
    r = (colour >> 24) & 0xFF;
    g = (colour >> 16) & 0xFF;
    b = (colour >> 8) & 0xFF;
    a = colour & 0xFF;
}
??

Or maybe ****** topic can help you.
https://sampforum.blast.hk/showthread.php?tid=200876
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: 2 Guest(s)