self:get_color
Client
Retrieves the color of the directional 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.directional.create()
core.engine.print("info", "Directional light color:", entity:get_color())