Last active
March 31, 2019 21:14
-
-
Save MAKIO135/ec761bad0f5e7bfb19f46d45ba0b3355 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
const hexToRgb = hex => { | |
hex = parseInt(hex[0] != '#' ? hex : hex.substring(1), 16) | |
return [ | |
hex >> 16 & 255, | |
hex >> 8 & 255, | |
hex & 255 | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment