LinearGradientOptions
Defined in: renderer/src/gradient.ts:26
Options for linearGradient.
Properties
Section titled “Properties”
optionalaxis?:"horizontal"|"vertical"
Defined in: renderer/src/gradient.ts:32
Shorthand for common orientations. Ignored if start / end
are provided. Default: "vertical".
optionalend?:object
Defined in: renderer/src/gradient.ts:36
Explicit end point. Overrides axis.
x:
number
y:
number
space?
Section titled “space?”
optionalspace?:GradientSpace
Defined in: renderer/src/gradient.ts:38
Coordinate space for start/end. Default: "local".
start?
Section titled “start?”
optionalstart?: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