fn compare(first_color: Color, second_color: Color, thresold: u8) -> bool {
        let r_check = first_color.r() - second_color.r();
        let g_check = first_color.g() - second_color.g();
        let b_check = first_color.b() - second_color.b();
        //let a_check = first_color.a() - second_color.a();
        //Do not check for alpha
        r_check < thresold && g_check < thresold && b_check < thresold
    }
/// Compare between two colors, return Bool indicating if they are similar considering thresold value
Compare between two colors, return Bool indicating if they are similar considering thresold value
Compare between two colors return Bool indicating if they are similar considering thresold value
fn compare(first_color: Color, second_color: Color, thresold: u8) -> bool {
        let r_check = first_color.r() - second_color.r();
        let g_check = first_color.g() - second_color.g();
        let b_check = first_color.b() - second_color.b();
        //let a_check = first_color.a() - second_color.a();
        //Do not check for alpha
        r_check < thresold && g_check < thresold && b_check < thresold
    }
fn compare ( first_color : Color , second_color : Color , thresold : u8 ) -> bool { let r_check = first_color . r ( ) - second_color . r ( ) ; let g_check = first_color . g ( ) - second_color . g ( ) ; let b_check = first_color . b ( ) - second_color . b ( ) ; //let a_check = first_color.a() - second_color.a(); //Do not check for alpha r_check < thresold && g_check < thresold && b_check < thresold }
Compare between two colors, return Bool indicating if they are similar considering thresold value
Compare between two colors return Bool indicating if they are similar considering thresold value
first_color
Color
second_color
Color
thresold
u8
first_color
Color
second_color
Color
thresold
u8