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