public static double getDelta ( ColorRgba a , ColorRgba b ) { Check . notNull ( a ) ; Check . notNull ( b ) ; final int dr = a . getRed ( ) - b . getRed ( ) ; final int dg = a . getGreen ( ) - b . getGreen ( ) ; final int db = a . getBlue ( ) - b . getBlue ( ) ; return Math . sqrt ( dr * dr + dg * dg + db * db ) ; }
Return the delta between two colors .