Skip to content

Commit 24fe82e

Browse files
committed
Add sleep to RGB example
1 parent 028d5a8 commit 24fe82e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/rgb.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from tree import RGBXmasTree
22
from colorzero import Color
3+
from time import sleep
34

45
tree = RGBXmasTree()
56

@@ -9,5 +10,6 @@
910
while True:
1011
for color in colors:
1112
tree.color = color
13+
sleep(1)
1214
except KeyboardInterrupt:
1315
tree.close()

0 commit comments

Comments
 (0)