/ Published in: ActionScript 3
Here are a simple method for seprate and combine RGB color.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
To seprate the color channels: * R = 0xFC3343 >> 16 * G = (0xFC3343 >> 8 ) & 0xFF * B = 0xFC3343 & 0xFF To combine them: * RGB = (0xFC << 16) + (0×33 << 8 ) + 0×43
URL: http://blog.activetofocus.com/2009/10/18/rgb-color-channelseprate-and-combine/