- Sets a single color for the whole string
color
argument must be a number
- Sets a color for a single LED of the specified index
index
argument must be a number and must be within the range of the led array in your Arduino sketchcolor
argument must be a number- Will throw a Lua error if the index is out of bounds
- Sets an HSV value for the whole string
hue
,saturation
, andvalue
arguments all must be a number from 0 to 255
- Sets an HSV value on the specified LED
index
argument must be a number and must be within the range of the led array in your Arduino sketchhue
,saturation
, andvalue
arguments all must be a number from 0 to 255- Will throw a Lua error if the index is out of bounds
- Used to apply colors changed with the
SetColor()
andSetColorHSV()
functions - Should only be called once per frame
- Does not need to be used with
SetSolidColor()
- Functions exactly the same as the Arduino function of the same name
ms
argument must be a number, in milliseconds
- Functions exactly the same as the Arduino function of the same name
- Returns a color based on a given temperature value
temp
argument must be a number from 1 to 255- 1 is the coldest (dark red), and 255 is the hottest (white)
- 0 is also valid and returns black
- Gradually fades LEDs to black by reducing their brightness by the specified amount
brightness
argument must be a number from 0 to 255- 0 doesn't reduce the brightness at all, at 255 reduces the brightness of an LED in a single frame
- Sets the brightness for the whole string
- Will not take effect until the next
SetSolidColor()
orPushColors()
call brightness
argument must be a whole number from 0 to 255- 0 is the darkest (black) and 255 is the brightest
- Fades a color to another color by a set amount
- Will not take effect until
PushColors()
is called index
argument must be a number and must be within the range of the led array in your Arduino sketchcolor1
andcolor2
arguments are the two colors to blend together; they must be a number- If
color1
argument is negative, it will take the color from the server's led array at the specified index frac
argument is the fraction of the blend to use; must be a number between 0 and 255
- Functions exactly the same as the beat8 FastLED function
- Functions exactly the same as the beatsin8 FastLED function