object

GradientBasic

Describes the parameters of gradients in a more basic form.

Properties
PropertyTypeRequired
classconstRequired
gradientTypeintegerRequired
stopsArray<GradientStop>Required
invertbooleanRequired
geometryGradientBasicGeometryRequired
hilightGradientHilightOptional
overallMatrixMatrixOptional
perpendicularMatrixArray<{
flag: integer;matrix: Matrix;
}>
Optional

class

Required

Description

no description

Type

const

Value

constant: the value of this property must be equal to:

json
"gradientBasic"

gradientType

Required

Description

no description

Type

integer

Value

enum: the value of this property must be equal to one of the following values:

ValueExplanation
0linear gradient
1radial gradient

stops

Required

Description

no description

Type

Array<GradientStop>

Value

minimum number of items: the minimum number of items for this array is: 2

invert

Required

Description

Flag describing if gradient has been inverted.

Type

boolean

geometry

Required

Description

The meaning of the gradient vector is different for radial gradients than for linear gradients. The vector origin is the center of the circle containing the radial gradient; the vector length is the radius of the that circle. The vector angle is not used by radial blends, but is preserved and used if the user changes the gradient from radial to linear.

hilight

Optional

Description

Only exists in radial mode.

overallMatrix

Optional

Description

Its parameters are six floating point values, which describe the overall matrix applied to the gradient.

Type

Matrix

perpendicularMatrix

Optional

Description

no description

Type

Array<{
flag: integer;matrix: Matrix;
}>
Daruma Feedback