Create a movie where an input picture becomes more cropped with successive frames. Paste the whole picture into the first frame. In the second frame, copy the whole picture, but make the 5 columns of pixels on the left and 5 columns on the right all white. In the second frame, make it 10 frames.
What will be an ideal response?
```
def cropMovie(directory, picture):
#if each frame has 10 changed, max frame is width/10
width = getWidth(picture)
height = getHeight(picture)
for num in range (1 ,width/10):
canvas = makeEmptyPicture (width,height)
croppedPicture = clip(picture, 5*num, 0, width-num*5, height)
copy(croppedPicture, canvas, 0, 0)
numStr=str(num)
if num < 10:
writePictureTo ( canvas , directory +"//frame0"+ numStr +".jpg")
elif num >= 10:
writePictureTo ( canvas , directory +"//frame"+ numStr +".jpg")
movie = makeMovieFromInitialFile(directory+"/frame00.jpg");
return movie
```
You might also like to view...
Word Online includes an option to Open in Word, which opens the document in the Word desktop application if it is installed on your computer
Indicate whether the statement is true or false
A custom file property called a ________ can be used to add keywords to files to categorize and organize them
A) snip B) shake C) tag D) file