-
Notifications
You must be signed in to change notification settings - Fork 0
Light Scripting Help
Alex Cordonnier edited this page May 11, 2015
·
3 revisions
This page will provide simple instructions for using the scripting interface to control the lights.
This example script turns all lights red.
for light in lights:
lights[light].send_rgb(255, 0, 0)
NOTE: The API is currently in flux and may change drastically.
This function sets the light to the specified red, green, and blue values. These can vary from 0 (off) to 255 (on).
A tuple (x, y, z) that specifies the virtual coordinates of the light. The coordinates are based on the light number.
A tuple (r, g, b) of the current RGB value of the light.
A dictionary of currently connected lights. It maps light numbers to Light
objects.
This function turns on the red, green, and blue channels of each light for 1 second sequentially.
This function cycles the hue of all connected lights.