Trail

self:get_color

Client

Retrieves the start and end colors of the trail

Syntax

local from, to = self:get_color()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
colorfromColor at the start of the trail as {r, g, b, a}
colortoColor at the end of the trail as {r, g, b, a}

Examples

Get the trail colors
local entity = particle.trail.create()

local from, to = entity:get_color()

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

On this page