Created
June 28, 2023 20:00
-
-
Save Tolsi/a158ecf2f9f1a0879530ba64d2ff6f5f to your computer and use it in GitHub Desktop.
HEX to RGB floats for TouchDesigner
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
h = input('Enter hex: ').lstrip('#') | |
print('RGB =', tuple(int(h[i:i+2], 16)/255 for i in (0, 2, 4))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment