pub fn color_same(a: Color, b: Color, shift: i32, thres: i32) -> bool