Trait bevy_color::ColorRange
source · pub trait ColorRange<T: Mix> {
// Required method
fn at(&self, factor: f32) -> T;
}Expand description
Represents a range of colors that can be linearly interpolated, defined by a start and
end point which must be in the same color space. It works for any color type that
implements Mix.
This is useful for defining gradients or animated color transitions.