Last active
January 16, 2020 19:10
-
-
Save andreyvolosyuk/af9983d1f41eacdc4bcb82423c684899 to your computer and use it in GitHub Desktop.
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
let color = parseInt('ff10fe', 16); | |
console.log(color); | |
console.log([ | |
color >> 16 & ((1 << 8) - 1), | |
color >> 8 & ((1 << 8) - 1), | |
color >> 0 & ((1 << 8) - 1), | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment