Changeset - f8ef5bf54f67
[Not reviewed]
default
0 1 0
David McClosky - 15 years ago 2010-06-20 05:02:52
dmcc@bigasterisk.com
Effects: fix typo
Ignore-this: 22ad833166515095cecf717adb2be81c
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/Effects.py
Show inline comments
 
@@ -30,25 +30,25 @@ def chase(t, ontime=0.5, offset=0.2, onv
 
    return Submaster.Submaster(leveldict=lev, temporary=True)
 

	
 
def stack(t, names=None):
 
    """names is list of URIs. returns a submaster that stacks the the inputs"""
 
    frac = 1.0 / (len(names) + 1)
 
    threshold = frac
 

	
 
    lev = {}
 
    for uri in names:
 
        try:
 
            dmx = Patch.dmx_from_uri(uri)
 
        except KeyError:
 
            print ("chase includes %r, which doesn't resolve to a dmx chan" %
 
            print ("stack includes %r, which doesn't resolve to a dmx chan" %
 
                   uri)
 
            continue
 
        lev[dmx] = 1
 

	
 
        threshold += frac
 
        if threshold > t:
 
            break
 

	
 
    return Submaster.Submaster(leveldict=lev, temporary=True)
 

	
 
def configExprGlobals():
 
    graph = showconfig.getGraph()
0 comments (0 inline, 0 general)