RGB color code
#2

pawn Код:
CreateRGB(r, g, b)
{  
    return ( ((r & 0xff) << 16) + ((g & 0xff) << 8) + (b & 0xff) );
}
Now you can -

pawn Код:
printf("%x", CreateRGB(255, 255, 255));
Prints FFFFFF
Reply


Messages In This Thread
RGB color code - by SyntaxQ - 13.03.2014, 06:17
Re: RGB color code - by RajatPawar - 13.03.2014, 06:27
Re: RGB color code - by SyntaxQ - 13.03.2014, 06:52
Re: RGB color code - by ColeMiner - 13.03.2014, 07:11

Forum Jump:


Users browsing this thread: 2 Guest(s)