Changeset - f913fc297b2d
[Not reviewed]
default
0 0 1
Drew Perttula - 19 years ago 2006-06-17 17:41:32
drewp@bigasterisk.com
add back_colors and zips light lists for chases
1 file changed with 24 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/Effects.py
Show inline comments
 
new file 100644
 
import random
 
import light9.Submaster as Submaster
 
from chase import chase as chase_logic
 

	
 
thirds = 'third-l', 'third-c', 'third-r'
 
thirds_bounce = 'third-l', 'third-c', 'third-r', 'third-c'
 
backs = ['back%d' % d for d in range(1, 11)]
 
rand_flutter = ['scoop-l', 'scoop-c', 'scoop-r', 'down-c', 'down-l', 'down-r', 'cyc', 'zip_blue', 'zip_red', 'zip_green', 'zip_orange'] + backs
 
rand_flutter *= 10
 
random.shuffle(rand_flutter)
 

	
 
# don't forget to update this!
 
__all__ = ['chase', 'thirds', 'thirds_bounce', 'rand_flutter', 'backs']
 

	
 
def chase(t, ontime=0.5, offset=0.2, onval=1.0, 
 
          offval=0.0, names=None, combiner=max):
 
    """names is list of sub or channel names"""
 
    sub_vals = {}
 
    chase_vals = chase_logic(t, ontime, offset, onval, offval, names, combiner)
 
    for name, value in chase_vals.items():
 
        sub = Submaster.get_sub_by_name(name)
 
        sub_vals[sub] = value
 

	
 
    return Submaster.combine_subdict(sub_vals)
0 comments (0 inline, 0 general)