Question: To practice looping through pixels, write a program that creates a 5 0 by 5 0 black and white image. The image should be have
To practice looping through pixels, write a program that creates a by black and white image. The image should be have a black background with a white X stretching across the entire image from each of the corners. Your program should create this image and save it as 'output.png
A diagram of the expected output image is shown here:
Pixel grid
Challenge:
There are two white lines in this image, but can you find a way to draw them with only one loop?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
