Skip to main content

Light

The light component is a Neon like component which lets you get its color and change it.


Functions​

setColor​

Light.setColor( color )

Sets the color

Arguments:

  • color [ Color|string|number ] The color to set it to. A string or number is converted the same way sm.color.new does it (a hex string like "ff0000" or a hex number like 0xff0000ff).

getColor​

Light.getColor()

Gets the color

Returns:

  • [ Color ] The current color