removing useless stuff
This commit is contained in:
5
main.py
5
main.py
@@ -61,11 +61,6 @@ async def to_chroma_case(data):
|
|||||||
hsl_starting_color = [190, 1, 0]
|
hsl_starting_color = [190, 1, 0]
|
||||||
|
|
||||||
colored_pixels = notePixels[data["key"].lower()]
|
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:
|
for pixelId in colored_pixels:
|
||||||
pixels[pixelId] = data["color"]
|
pixels[pixelId] = data["color"]
|
||||||
await asyncio.sleep(data['duration'] / 1000)
|
await asyncio.sleep(data['duration'] / 1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user