From 025f6d95244e7f8d00488c3abe04f883db9d89eb Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 5 Feb 2020 14:44:35 -0800 Subject: [PATCH] Tiny stylistic change to rgb_to_hex --- manimlib/utils/color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/color.py b/manimlib/utils/color.py index 1a5a229b..16fa95b2 100644 --- a/manimlib/utils/color.py +++ b/manimlib/utils/color.py @@ -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):