Searched refs:idealColor (Results 1 – 1 of 1) sorted by relevance
173 int idealColor = expected.getPixel(x, y); in compareImages() local175 if (idealColor == givenColor) in compareImages()177 if (Color.alpha(idealColor) + Color.alpha(givenColor) == 0) { in compareImages()181 float idealAlpha = Color.alpha(idealColor) / 255.0f; in compareImages()186 totalError += Math.abs((idealAlpha * Color.red(idealColor)) in compareImages()188 totalError += Math.abs((idealAlpha * Color.green(idealColor)) in compareImages()190 totalError += Math.abs((idealAlpha * Color.blue(idealColor)) in compareImages()192 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()