This commit is contained in:
Clément Le Bihan
2021-12-10 16:06:02 +01:00
parent 0254c26d20
commit c751ce81fd
+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.001
await asyncio.sleep(0.001)
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)