Skip to content

$createGradient

Creates a gradient.

Usage

$createGradient[canvas;gradient;type;...options]

Parameters

FieldDescriptionTypeRequired
canvasThe canvas name.stringtrue
gradientThe gradient name.stringtrue
typeThe gradient type (0 = linear / 1 = radial / 2 = conic)0 | 1 | 2 |true
…optionsThe gradient options.numbertrue