GPU Particles

self:set_color

Client

Sets the base color of the particles

Syntax

local status = self:set_color(
    color
)

Parameters

TypeNameDescription
colorcolorParticle color as {r, g, b, a}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Tint particles orange
local entity = particle.gpu.create()

entity:set_color({1, 0.5, 0, 1})

On this page