QueueTip #005 - Color Channel Extraction : 24bit and 32bit Colors
Did you know…
You can extract the alpha, red, blue, and green channels of a hexadecimal color with simple bit shift and logical AND operations? Below are the operations to extract these channels from RGB and ARGB color formats.
RGB Channel Extraction - 24 bits
// 24 bit color
var color : uint = 0xff0000;
var R : Number = [...]
