Exemplo n.º 1
0
    l.update_rgb()
    l.bell_mode = True
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    simple.elements.append(l)


simple.start_pos = 12
# p.left_width = p.right_width = 10
simple.speed = .5
simple.moveto = simple.end_pos = 65
# simple.continuation_mode = 'loop'
# simple.trigger_toggle = True
simple.sweep = False
simple.width = 3

show.add_element(simple)
# set the input interface to trigger the element
# midi code 70 is the "V" key on the qwerty keyboard for the midikeys app
dispatcher.add_observer((0, 65), simple)  # J


p = Chase(name="bluechase")
elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
            start_channel=i,
            name="pulse_%s" % elementid,
            attack_duration=.3,
Exemplo n.º 2
0
    l.saturation = 1
    l.update_rgb()
    l.bell_mode = True
    # l.simple = True
    # add the light to the network
    dmx3.add_element(l)
    simple.elements.append(l)

simple.start_pos = 12
# p.left_width = p.right_width = 10
simple.speed = .5
simple.moveto = simple.end_pos = 65
# simple.continuation_mode = 'loop'
# simple.trigger_toggle = True
simple.sweep = False
simple.width = 3

show.add_element(simple)
# set the input interface to trigger the element
# midi code 70 is the "V" key on the qwerty keyboard for the midikeys app
dispatcher.add_observer((0, 65), simple)  # J

p = Chase(name="bluechase")
elementid = 0
for i in range(1, 360, 3):
    elementid += 1
    l = RGBLight(
        start_channel=i,
        name="pulse_%s" % elementid,
        attack_duration=.3,
        decay_duration=0,