Add TKinter Visualizer Emulator(Slow but works)
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
from lib.Program import Program
|
||||
from lib.Litsimaja import Litsimaja
|
||||
from rpi_ws281x import Color
|
||||
|
||||
|
||||
def Color(red, green, blue):
|
||||
"""Convert the provided red, green, blue color to a 24-bit color value.
|
||||
Each color component should be a value 0-255 where 0 is the lowest intensity
|
||||
and 255 is the highest intensity.
|
||||
"""
|
||||
return (red << 16) | (green << 8) | blue
|
||||
|
||||
|
||||
def name():
|
||||
|
||||
Reference in New Issue
Block a user