self:set_color

Client

Sets the color of the spot light


Syntax

local status = self:set_color(
    color
)

Parameters

TypeNameDescription
colorcolorLight color to apply as {r, g, b}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply color on a spot light
local entity = light.spot.create()

entity:set_color({1, 1, 1})

On this page