Created
July 20, 2011 17:39
-
-
Save sspencer/1095458 to your computer and use it in GitHub Desktop.
RGB Conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int rgb = ((r&0x0ff)<<16)|((g&0x0ff)<<8)|(b&0x0ff); | |
int red = (rgb>>16)&0x0ff; | |
int green=(rgb>>8) &0x0ff; | |
int blue= (rgb) &0x0ff; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment