Skip to main content

linear_gradient_stops

Function linear_gradient_stops 

Source
pub fn linear_gradient_stops(
    angle: f32,
    stops: &[LinearColorStop],
) -> Background
Expand description

A linear gradient with up to GRADIENT_STOPS stops. Extra stops are dropped from the middle rather than the ends, so the ramp always starts and finishes on the colours the caller asked for.