Hint: If your program runs out of time while it is running, it is probably because you are redrawing the window as you change each pixel. You should only draw the window one time!
This program should make a black-and-white image by setting the red and green values for each pixel to be the same as the pixelโs blue value. Write the missing code:
Write code to multiply the r, g, and b color of each pixel by 0.8. In other words, for each color channel (r, g, b), get its current value, multiply that by 0.8, and use the answer as the new value for the color. This should make the image darker.