Tiny stylistic change to rgb_to_hex

This commit is contained in:
Grant Sanderson
2020-02-05 14:44:35 -08:00
parent c34bb7912c
commit 025f6d9524

View File

@ -35,7 +35,7 @@ def rgba_to_color(rgba):
def rgb_to_hex(rgb):
return "#" + "".join('%02x' % int(255 * x) for x in rgb)
return "#" + "".join(hex(int(255 * x))[2:] for x in rgb)
def hex_to_rgb(hex_code):