Skip to content

$addColorStop

Adds a new color stop, defined by an offset and a color, to a given canvas gradient.

Parameters

NameDescriptionEnforcedDefault Value
Gradient NameThe name for this gradient.YesNone
OffsetThe X0 coordinate.YesNone
ColorThe stop color.YesNone

Example

$addColorStop[gradientName;offset;color]