self:set_temperature
Client
Sets the color temperature of the point light in Kelvin
Syntax
local status = self:set_temperature(
kelvin
)Parameters
| Type | Name | Description |
|---|---|---|
float | kelvin | Color temperature in Kelvin to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.point.create()
entity:set_temperature(1.0)