Created
July 2, 2018 16:21
-
-
Save sajjadyousefnia/d4479fe3ef491ffb1729307201f754c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val color = 0x123456 | |
val red = (color and 0xff0000) shr 16 | |
val green = (color and 0x00ff00) shr 8 | |
val blue = (color and 0x0000ff) shr 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment