self:get_temperature

Client

Retrieves the color temperature of the point light in Kelvin


Syntax

local kelvin = self:get_temperature()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatkelvinCurrent color temperature in Kelvin

Examples

Get temperature of a point light
local entity = light.point.create()

core.engine.print("info", "Point light temperature:", entity:get_temperature())

On this page