This commit is contained in:
Clément Le Bihan
2021-12-10 16:05:14 +01:00
parent 8557e3af64
commit 0254c26d20
+2 -2
View File
@@ -50,8 +50,8 @@ async def to_chroma_case(data):
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.1
await asyncio.sleep(0.1)
hsl_starting_color[2] += 0.001
await asyncio.sleep(0.001)
for pixelId in colored_pixels:
pixels[pixelId] = data["color"]
await asyncio.sleep(data['duration'] / 1000)