From 31a8d2ac110f8da3f96c276d0bae7e520bff9a38 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 10 Jun 2018 14:41:27 -0700 Subject: [PATCH] rgb2hex now allows lists as input --- svgpathtools/misctools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svgpathtools/misctools.py b/svgpathtools/misctools.py index 787d000..362d649 100644 --- a/svgpathtools/misctools.py +++ b/svgpathtools/misctools.py @@ -31,7 +31,7 @@ def rgb2hex(rgb): >>> rgb2hex((0,0,255)) '#0000FF' """ - return ('#%02x%02x%02x' % rgb).upper() + return ('#%02x%02x%02x' % tuple(rgb)).upper() def isclose(a, b, rtol=1e-5, atol=1e-8):