linear_color_stop

Function linear_color_stop 

Source
pub fn linear_color_stop(
    color: impl Into<Hsla>,
    percentage: f32,
) -> LinearColorStop
Expand description

Creates a new linear color stop.

The percentage of the gradient, in the range 0.0 to 1.0.