GPU Particles

self:reset_color_ramp

Client

Removes the color fade applied with `self:set_color_ramp`

Syntax

local status = self:reset_color_ramp()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Remove the color ramp
local entity = particle.gpu.create()

entity:set_color_ramp({1, 0.9, 0.3, 1}, {1, 0.2, 0, 0})
entity:reset_color_ramp()

On this page