hex to rgba.
#2

You need to extract the channels with bitwise operations.

pawn Код:
new value = 0xFFFFFFFF; // value to extract channels from

new red = (value & 0xFF000000) >> 24;
new green = (value & 0x00FF0000) >> 16;
new blue = (value & 0x0000FF00) >> 8;
Reply


Messages In This Thread
hex to rgba. - by audriuxxx - 02.07.2013, 11:53
Re: hex to rgba. - by Bakr - 02.07.2013, 12:01
Re: hex to rgba. - by audriuxxx - 02.07.2013, 13:58
Re: hex to rgba. - by Bakr - 02.07.2013, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)