self:get_color
Client
Retrieves the color of the spot light
Syntax
local color = self:get_color()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
color | color | Current light color as {r, g, b} |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot light color:", entity:get_color())