def setValue(value): light.stopAnim() light.setValue(value) light.update() return repr(light.getColor())
def off(): light.stopAnim() light.setValue(0) light.update() return repr(light.getColor())