Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python rgb to hex

# Convert RGB to HEX
rgb = (255,255,255) # ---------> pure white
print("#%02x%02x%02x" % rgb) # -----> #ffffff

#													- sabz
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #rgb #hex
ADD COMMENT
Topic
Name
7+1 =