Skip to content

Commit df40f92

Browse files
committed
Dec 25 daily effect
1 parent 1bedeba commit df40f92

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.1.25'
1+
__version__ = '0.1.26'
22

33
_classifiers = [
44
'Development Status :: 4 - Beta',

xled_plus/samples/day23.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def __init__(self, ctr):
2020
shuffle(perm)
2121
self.nsparks = 0.02 * nleds
2222
self.white = hsl_color(0.0, 0.0, 1.0)
23-
self.preferred_fps = 12
2423
super(Crystal, self).__init__(ctr, pat, perm, step=2)
24+
self.preferred_fps = 12
2525

2626
def getnext(self):
2727
pat1 = super(Crystal, self).getnext()

xled_plus/samples/day25.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Day 25 - Random walk in color space
3+
4+
Solid color that slowly changes randomly.
5+
This is a continuous effect, not a movie, so when you stop the script
6+
the effect stops.
7+
"""
8+
9+
from xled_plus.samples.sample_setup import *
10+
11+
ctr = setup_control()
12+
oldmode = ctr.get_mode()["mode"]
13+
eff = ColorMeanderEffect(ctr, "solid")
14+
eff.launch_rt()
15+
print("Started continuous effect - press Return to stop it")
16+
input()
17+
eff.stop_rt()
18+
ctr.set_mode(oldmode)

0 commit comments

Comments
 (0)