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
```

Computer Science & Information Technology

You might also like to view...

In the following code, what is the output for list2?

``` public class Test { public static void main(String[] args) { int[] list1 = {1, 2, 3}; int[] list2 = {1, 2, 3}; list2 = list1; list1[0] = 0; list1[1] = 1; list2[2] = 2; for (int i = 0; i < list2.length; i++) System.out.print(list2[i] + " "); } }``` a. 1 2 3 b. 1 1 1 c. 0 1 2 d. 0 1 3

Computer Science & Information Technology

Most e-mail clients can be configured to automatically reply to e-mail messages, and this feature is always referred to as an out of office response.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following suites is an open-source set of utilities that is made available to the community at no charge?

a. FTK b. Encase c. Sleuthkit d. X-Ways

Computer Science & Information Technology

In the Windows Store, the ________ search tool groups a selection of apps with related functionality or themes to make it easy to select a set of apps

Fill in the blank(s) with correct word

Computer Science & Information Technology