linear_gradient_stops

Function linear_gradient_stops 

Source
pub fn linear_gradient_stops<I, S>(angle: f32, stops: I) -> Background
where I: IntoIterator<Item = S>, S: Into<LinearColorStop>,
Expand description

Creates a LinearGradient background color with up to MAX_LINEAR_GRADIENT_STOPS.

Callers should provide stops sorted by percentage (ascending) and clamped to [0, 1].