zng::color::gradient

Function radial_gradient

source
pub fn radial_gradient<C, R, S>(
    center: C,
    radius: R,
    stops: S,
) -> RadialGradient<<S as IntoVar<GradientStops>>::Var, <C as IntoVar<Point>>::Var, <R as IntoVar<GradientRadius>>::Var, LocalVar<ExtendMode>>
Expand description

Starts building a radial gradient with the radius and color stops.

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