GPU Particles

self:get_color

Client

Retrieves the base color of the particles

Syntax

local color = self:get_color()

Parameters

No parameters are accepted by this function

Returns

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

Examples

Get the particle color
local entity = particle.gpu.create()

local color = entity:get_color()

core.engine.print("info", util.table.unpack(color))

On this page