ChristmasTree/Examples/huecycle.py

12 lines
209 B
Python

from tree import RGBXmasTree
from colorzero import Color, Hue
tree = RGBXmasTree()
tree.color = Color('red')
try:
while True:
tree.color += Hue(deg=1)
except KeyboardInterrupt:
tree.close()