ltk::theme::gradient_lut

Function sample_stops

Source
pub fn sample_stops(stops: &[ColorStop], t: f32, space: GradientSpace) -> Color
Expand description

Sample the stops at position t using the requested interpolation space. Stops need not be sorted. t may fall outside [0, 1].