Created
November 16, 2019 01:09
-
-
Save richardnfag/5db190232f883d5be3762a89390d6fc8 to your computer and use it in GitHub Desktop.
Python Hex Code to RGB Value
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
def hex_to_rgb(hex): | |
return ','.join(list( | |
map( | |
lambda x: str(int(hex[x:x+2], 16)), | |
range(0, len(hex), 2) | |
) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment