X1016: Half an Image

This method below currently sets the color of all of the pixels in the given Picture to black. Modify the appropriate loop so that instead, it only sets the pixels on the left half of the image to black. In other words, all pixels with an x coordinate less than half the width should be set to black. Finish the for loops below so that the method.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.