GPU Particles
self:set_color
ClientSets the base color of the particles
Syntax
local status = self:set_color(
color
)Parameters
| Type | Name | Description |
|---|---|---|
color | color | Particle color as {r, g, b, a} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_color({1, 0.5, 0, 1})