Exemple #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
Exemple #2
0
def off():
    light.stopAnim()
    light.setValue(0)
    light.update()
    return repr(light.getColor())
Exemple #3
0
def setValue(value):
    light.stopAnim()
    light.setValue(value)
    light.update()
    return repr(light.getColor())
Exemple #4
0
def showDefaultColor():
    light.stopAnim()
    light.showDefaultColor()
    light.update()
    return repr(light.getColor())