Searched refs:idealColor (Results 1 – 1 of 1) sorted by relevance
184 int idealColor = expected.getPixel(x, y); in compareImages() local186 if (idealColor == givenColor) in compareImages()188 if (Color.alpha(idealColor) + Color.alpha(givenColor) == 0) { in compareImages()192 float idealAlpha = Color.alpha(idealColor) / 255.0f; in compareImages()197 pixelError += Math.abs((idealAlpha * Color.red(idealColor)) in compareImages()199 pixelError += Math.abs((idealAlpha * Color.green(idealColor)) in compareImages()201 pixelError += Math.abs((idealAlpha * Color.blue(idealColor)) in compareImages()203 pixelError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()