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
| Type | Name | Description |
|---|---|---|
float | kelvin | Current color temperature in Kelvin |
Examples
local entity = light.area.create()
core.engine.print("info", "Area light temperature:", entity:get_temperature())