-
-
Save omkz/3968909 to your computer and use it in GitHub Desktop.
Converting hex color to RGB
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
| A hex value is just RGB numbers represented in hexadecimal. So you just have to take each pair of hex digits and convert them to decimal. | |
| Example: | |
| #FF6400 = RGB(0xFF, 0x64, 0x00) = RGB(255, 100, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment