08.01.2014, 09:58
how I can convert this color 0xC2A2DAFF to hex
like {FFFFFF}
like {FFFFFF}
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;
}
how I can convert this color 0xC2A2DAFF to hex like {FFFFFF} |