self:get_temperature

Client

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

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

On this page