removing useless stuff

This commit is contained in:
Clément Le Bihan
2022-01-24 15:43:33 +01:00
parent f336b47bd4
commit ef35b25610

View File

@@ -61,11 +61,6 @@ async def to_chroma_case(data):
hsl_starting_color = [190, 1, 0]
colored_pixels = notePixels[data["key"].lower()]
""" for i in range(11):
for pixelId in colored_pixels:
pixels[pixelId] = hsl_to_rgb(hsl_starting_color[0], hsl_starting_color[1], hsl_starting_color[2])
hsl_starting_color[2] += 0.01
await asyncio.sleep(0.01) """
for pixelId in colored_pixels:
pixels[pixelId] = data["color"]
await asyncio.sleep(data['duration'] / 1000)