Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get random bright hex color python

import random
import colorsys
h,s,l = random.random(), 0.5 + random.random()/2.0, 0.4 + random.random()/5.0
r,g,b = [int(256*i) for i in colorsys.hls_to_rgb(h,l,s)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #bright #hex #color #python
ADD COMMENT
Topic
Name
9+3 =