From 523e7caf0beb613da5fb139416d6c8c9001b95a8 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Sat, 9 May 2020 00:01:43 +0200 Subject: [PATCH] fix hue differ --- huepaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huepaper.py b/huepaper.py index e2a3fff..efc270e 100755 --- a/huepaper.py +++ b/huepaper.py @@ -41,7 +41,7 @@ def create_colors(base_color): # Create four random colors similar to the given base_color for i in range(0, 4): - tmp_hue = base_color.hue + random.uniform(-max_hue, max_hue) + tmp_hue = base_color.hue + random.uniform(-max_hue / 2.0, max_hue / 2.0) if tmp_hue > 1.0: tmp_hue -= 1