I currently trying to build an online random color generator with python and flask. I have created my function which generate a random hex color code and I struggle to pass it into the css background color.
def random_color():
def r():
return random.randint(0, 255)
return ('#%02X%02X%02X' % (r(), r(), r()))
BR
Edouard
Aucun commentaire:
Enregistrer un commentaire