self:get_color

Client

Retrieves the color of the point 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 point light
local entity = light.point.create()

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

On this page