Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is in Python Write a program wipeDoubleDiagonalAnimation(picture) which takes as input a picture and creates an animation of the provided picture being wiped (black)

This is in Python

Write a program wipeDoubleDiagonalAnimation(picture) which takes as input a picture and creates an animation of the provided picture being wiped (black) simultaneously top left to bottom right and bottom right to top left with 45 degree diagonals.

  • 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 two black diagonals (one representing the top left to bottom right animation, and the other representing the bottom right to top left animation) with a loop or addLine. Note that the latter accepts negative values for the coordinates, which will make this exercise easier. Since you will be drawing to diagonals inside your main loop, that outer loop only needs to run through half as many iterations as in Exercise #1. Repaint your picture after a diagonal has been drawn.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions