Question: Write a program wipeDiagonalAnimation(picture) which takes as input a picture and creates an animation of the provided picture being wiped (black) top left to bottom

Write a program wipeDiagonalAnimation(picture) which takes as input a picture and creates an animation of the provided picture being wiped (black) top left to bottom right with 45 degree diagonals. See the video for the desired effect.

▪ Initialize all variables you may need.

▪ Create a loop counting the diagonals. Use the dimension of the picture to determine the number of diagonals you need. Inside the loop draw a black diagonal with a loop or addLine. Note that the latter accepts negative values for the coordinates, which will make this exercise easier. Repaint your picture after a diagonal has been drawn.

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import numpy as np import cv2 img cv2imreadimgjpg cv2imshow ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!