Example #1
0
def randomInSet(lightNumbers, colourList, t):
    for lightNumber in lightNumbers:
        bridge_request.sendRequest(lightNumber, colourList[randint(0, len(colourList) - 1)])
Example #2
0
def randomInRangeAction(lightNumbers, t, minHue=0, maxHue=65535):
    for lightNumber in lightNumbers:
        bridge_request.sendRequest(lightNumber, colours.randomColourInRange(minHue, maxHue))