This commit is contained in:
Clément Le Bihan
2021-12-10 16:04:14 +01:00
parent c7c0ec2bab
commit 8557e3af64
+2 -2
View File
@@ -36,8 +36,8 @@ def hsl_to_rgb(hue, sat, light):
t2 = light + sat - (light * sat)
t1 = light * 2 - t2
r = hue_to_rgb(t1, t2, hue + 2) * 255,
g = hue_to_rgb(t1, t2, hue) * 255,
r = hue_to_rgb(t1, t2, hue + 2) * 255
g = hue_to_rgb(t1, t2, hue) * 255
b = hue_to_rgb(t1, t2, hue - 2) * 255
return [round(r), round(g), round(b)]