Searched refs:color2 (Results 1 – 1 of 1) sorted by relevance
182 public boolean isSimilarColor(@NonNull Color color1, @NonNull Color color2) { in isSimilarColor() argument183 return color1.alpha() == color2.alpha() in isSimilarColor()184 && Math.abs(color1.red() - color2.red()) < COLOR_TOLERANCE in isSimilarColor()185 && Math.abs(color1.green() - color2.green()) < COLOR_TOLERANCE in isSimilarColor()186 && Math.abs(color1.blue() - color2.blue()) < COLOR_TOLERANCE; in isSimilarColor()