using hsl
This commit is contained in:
8
main.py
8
main.py
@@ -3,9 +3,9 @@ from chroma_case.Note import Note
|
||||
import asyncio
|
||||
import sys
|
||||
|
||||
#import board, neopixel
|
||||
import board, neopixel
|
||||
|
||||
#pixels = neopixel.NeoPixel(board.D18, 20, brightness=0.1)
|
||||
pixels = neopixel.NeoPixel(board.D18, 20, brightness=0.1)
|
||||
|
||||
notePixels = { 'si': [0, 1],
|
||||
'la#': [2, 3],
|
||||
@@ -41,10 +41,6 @@ def hsl_to_rgb(hue, sat, light):
|
||||
b = hue_to_rgb(t1, t2, hue - 2) * 255
|
||||
return (round(r), round(g), round(b))
|
||||
|
||||
print(hsl_to_rgb())
|
||||
|
||||
pixels = {}
|
||||
|
||||
async def to_chroma_case(data):
|
||||
global pixels
|
||||
|
||||
|
||||
Reference in New Issue
Block a user