Question: The process we used to draw borders could actually be used to draw lines as well. For example, if you have a square picture, every
The process we used to draw borders could actually be used to draw lines as well. For example, if you have a square picture, every pixel whose x value equals its y value lies on the diagonal from upper-left to lower-right corners. Write a function that inputs a square picture (you can assume square) and an input color, and draws a diagonal line from upper-left to lower-right using the input color for the line color.
Step by Step Solution
3.33 Rating (153 Votes )
There are 3 Steps involved in it
def drawDiagonalpictu... View full answer
Get step-by-step solutions from verified subject matter experts
