fn smooth(mu: f64, c1: Pixel, c2: Pixel) -> Pixel {
    let t2 = mu - mu.trunc();
    let t1 = 1.0 - t2;

    Pixel {
        r: (c1.r as f64 * t1 + c2.r as f64 * t2) as u8,
        g: (c1.g as f64 * t1 + c2.g as f64 * t2) as u8,
        b: (c1.b as f64 * t1 + c2.b as f64 * t2) as u8,
    }
}
/// This func takes 2 pixels and a float in [0.0..1.0]
/// which represents how far to interpolate between the two
This func takes 2 pixels and a float in [0.0..1.0]
which represents how far to interpolate between the two
This func takes 2 pixels and a float in [ 0 . 0 .. 1 . 0 ] which represents how far to interpolate between the two
fn smooth(mu: f64, c1: Pixel, c2: Pixel) -> Pixel {
    let t2 = mu - mu.trunc();
    let t1 = 1.0 - t2;
    Pixel {
        r: (c1.r as f64 * t1 + c2.r as f64 * t2) as u8,
        g: (c1.g as f64 * t1 + c2.g as f64 * t2) as u8,
        b: (c1.b as f64 * t1 + c2.b as f64 * t2) as u8,
    }
}
fn smooth ( mu : f64 , c1 : Pixel , c2 : Pixel ) -> Pixel { let t2 = mu - mu . trunc ( ) ; let t1 = 1.0 - t2 ; Pixel { r : ( c1 . r as f64 * t1 + c2 . r as f64 * t2 ) as u8 , g : ( c1 . g as f64 * t1 + c2 . g as f64 * t2 ) as u8 , b : ( c1 . b as f64 * t1 + c2 . b as f64 * t2 ) as u8 , } }
This func takes 2 pixels and a float in [0.0..1.0]
which represents how far to interpolate between the two
This func takes 2 pixels and a float in [ 0 . 0 .. 1 . 0 ] which represents how far to interpolate between the two
mu
f64
c1
Pixel
c2
Pixel