Skip to content
GitHub repository
Function

horizontal

function horizontal(stops: StopInput[], options?: Omit<LinearGradientOptions, "stops" | "from" | "to">): LinearGradient;

Left-to-right linear gradient across the painted shape.

Parameters#

ParameterType
stopsStopInput[]
optionsOmit<LinearGradientOptions, "stops" | "from" | "to">

Returns#

LinearGradient