Searched refs:givenColor (Results 1 – 1 of 1) sorted by relevance
174 int givenColor = actual.getPixel(x, y); in compareImages() local175 if (idealColor == givenColor) in compareImages()177 if (Color.alpha(idealColor) + Color.alpha(givenColor) == 0) { in compareImages()182 float givenAlpha = Color.alpha(givenColor) / 255.0f; in compareImages()187 - (givenAlpha * Color.red(givenColor))); in compareImages()189 - (givenAlpha * Color.green(givenColor))); in compareImages()191 - (givenAlpha * Color.blue(givenColor))); in compareImages()192 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()