pub fn lerp(self, other: Color, t: f32) -> Color {
        Color {
            r: self.r*(1.0 - t) + other.r*t,
            g: self.g*(1.0 - t) + other.g*t,
            b: self.b*(1.0 - t) + other.b*t,
            a: self.a*(1.0 - t) + other.a*t,
        }
    }
/// Linearly interpolates between this color and the given other color. `t` should be between
/// 0 and 1. Values outside of this range will lead to extrapolation.
Linearly interpolates between this color and the given other color. `t` should be between
0 and 1. Values outside of this range will lead to extrapolation.
Linearly interpolates between this color and the given other color . ` t ` should be between 0 and 1 . Values outside of this range will lead to extrapolation .
pub fn lerp(self, other: Color, t: f32) -> Color {
        Color {
            r: self.r*(1.0 - t) + other.r*t,
            g: self.g*(1.0 - t) + other.g*t,
            b: self.b*(1.0 - t) + other.b*t,
            a: self.a*(1.0 - t) + other.a*t,
        }
    }
pub fn lerp ( self , other : Color , t : f32 ) -> Color { Color { r : self . r * ( 1.0 - t ) + other . r * t , g : self . g * ( 1.0 - t ) + other . g * t , b : self . b * ( 1.0 - t ) + other . b * t , a : self . a * ( 1.0 - t ) + other . a * t , } }
Linearly interpolates between this color and the given other color.
Linearly interpolates between this color and the given other color .
self
other
Color
t
f32
self
other
Color
t
f32