Root definitions

LinearGradient

Permalink

Properties

gradient Required

string

The type of gradient. Use "linear" for a linear gradient.

id

string

stops Required

Array<GradientStop>

An array of gradient stops defining the gradient color sequence.

x1

number

The starting x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

x2

number

The ending x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 1

y1

number

The starting y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

y2

number

The ending y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

Loading...

Editor and Validator