Skip to content

LinearGradientOptions

Defined in: renderer/src/gradient.ts:26

Options for linearGradient.

optional axis?: "horizontal" | "vertical"

Defined in: renderer/src/gradient.ts:32

Shorthand for common orientations. Ignored if start / end are provided. Default: "vertical".


optional end?: object

Defined in: renderer/src/gradient.ts:36

Explicit end point. Overrides axis.

x: number

y: number


optional space?: GradientSpace

Defined in: renderer/src/gradient.ts:38

Coordinate space for start/end. Default: "local".


optional start?: object

Defined in: renderer/src/gradient.ts:34

Explicit start point. Overrides axis.

x: number

y: number


stops: readonly GradientStop[]

Defined in: renderer/src/gradient.ts:27