Trail
self:get_color
ClientRetrieves the start and end colors of the trail
Syntax
local from, to = self:get_color()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
color | from | Color at the start of the trail as {r, g, b, a} |
color | to | Color at the end of the trail as {r, g, b, a} |
Examples
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))