Method to replace the pixel colors in the current picture object that have a color distance less than the passed amount to white or black with the passed replacement color. public void highlight(double amount, Color replace) { Pixel pixel = null; // loop through all the pixels in the x direction for (int x =