using hsl

This commit is contained in:
Clément Le Bihan
2021-12-10 15:59:30 +01:00
parent 08719f8f55
commit c7c0ec2bab
+2 -2
View File
@@ -39,12 +39,12 @@ def hsl_to_rgb(hue, sat, light):
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))
return [round(r), round(g), round(b)]
async def to_chroma_case(data):
global pixels
hsl_starting_color = (55, 1, 0)
hsl_starting_color = [55, 1, 0]
colored_pixels = notePixels[data["key"].lower()]
for i in range(11):