/// Calculate the distance between this color and another by squaring
/// and adding the component colors.
Calculate the distance between this color and another by squaring
and adding the component colors.
Calculate the distance between this color and another by squaring and adding the component colors .
fn distance_squared(&self, color: ColorTrue) -> u32 {
        ((self.r as i32 - color.r as i32) * (self.r as i32 - color.r as i32)
            + (self.g as i32 - color.g as i32) * (self.g as i32 - color.g as i32)
            + (self.b as i32 - color.b as i32) * (self.b as i32 - color.b as i32)) as u32
    }
fn distance_squared ( & self , color : ColorTrue ) -> u32 { ( ( self . r as i32 - color . r as i32 ) * ( self . r as i32 - color . r as i32 ) + ( self . g as i32 - color . g as i32 ) * ( self . g as i32 - color . g as i32 ) + ( self . b as i32 - color . b as i32 ) * ( self . b as i32 - color . b as i32 ) ) as u32 }
Calculate the distance between this color and another by squaring
and adding the component colors.
Calculate the distance between this color and another by squaring and adding the component colors .
&self
color
ColorTrue