Function zng::color::gradient::linear_gradient

source ยท
pub fn linear_gradient<A, S>(
    axis: A,
    stops: S,
) -> LinearGradient<<S as IntoVar<GradientStops>>::Var, <A as IntoVar<LinearGradientAxis>>::Var, LocalVar<ExtendMode>>
Expand description

Starts building a linear gradient with the axis and color stops.

Returns a node that is also a builder that can be used to refine the gradient definition.