Searched refs:givenColor (Results 1 – 1 of 1) sorted by relevance
156 int givenColor = given.getPixel(x, y); in calcError() local157 if (idealColor == givenColor) in calcError()159 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in calcError()160 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in calcError()161 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in calcError()162 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in calcError()