15 lines
319 B
Python
15 lines
319 B
Python
|
|
from tree import RGBXmasTree
|
||
|
|
from colorzero import Color
|
||
|
|
|
||
|
|
tree = RGBXmasTree()
|
||
|
|
|
||
|
|
colors = [Color('red'), Color('green'), Color('blue')] # add more if you like
|
||
|
|
|
||
|
|
try:
|
||
|
|
while True:
|
||
|
|
for color in colors:
|
||
|
|
for pixel in tree:
|
||
|
|
pixel.color = color
|
||
|
|
except KeyboardInterrupt:
|
||
|
|
tree.close()
|