Exemplo n.º 1
0
def anim(value):
    light.stopAnim()
    anim = None
    try:
        anim = anims[value]
        light.stopAnim()
        light.startAnim(anim)
    except KeyError:
        light.showDefaultColor
        light.update()

    return value
Exemplo n.º 2
0
def off():
    light.stopAnim()
    light.setValue(0)
    light.update()
    return repr(light.getColor())
Exemplo n.º 3
0
def setValue(value):
    light.stopAnim()
    light.setValue(value)
    light.update()
    return repr(light.getColor())
Exemplo n.º 4
0
def showDefaultColor():
    light.stopAnim()
    light.showDefaultColor()
    light.update()
    return repr(light.getColor())