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

TypeNameDescription
colorcolorCurrent light color as {r, g, b}

Examples

Get color of a directional light
local entity = light.directional.create()

core.engine.print("info", "Directional light color:", entity:get_color())

On this page