fix hue differ

This commit is contained in:
Denis Lehmann 2020-05-09 00:01:43 +02:00
parent f6a914a9bd
commit 523e7caf0b

View File

@ -41,7 +41,7 @@ def create_colors(base_color):
# Create four random colors similar to the given base_color # Create four random colors similar to the given base_color
for i in range(0, 4): 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: if tmp_hue > 1.0:
tmp_hue -= 1 tmp_hue -= 1