self:get_temperature

Client

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

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

On this page