self:set_color
Client
Sets the color of the area light
Syntax
local status = self:set_color(
color
)Parameters
| Type | Name | Description |
|---|---|---|
color | color | Light color to apply as {r, g, b} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_color({1, 1, 1})