Return to Snippet

Revision: 30762
at August 21, 2010 02:58 by activetofocus


Initial Code
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

Initial URL
http://blog.activetofocus.com/2009/10/18/rgb-color-channelseprate-and-combine/

Initial Description
Here are a simple method for seprate and combine RGB color.

Initial Title
RGB color channel/seprate and combine

Initial Tags

                                

Initial Language
ActionScript 3