There's more...

This operation of setting all the pixels to the same color is relatively popular, and the method has been provided for your convenience. However, it is important to note that the implementation of this method doesn't just take a simple loop and set the color for each pixel. Instead, it uses a feature where you can set all the color values before displaying them.

The advantage of this feature is that you can first set all the colors, and then make a single call to display them all at once. This is a better way of setting the pixels rather than with a simple for loop, so it provides another good reason to use the fill method.