Create a movie where an input picture becomes wider and wider with successive frames. For example, the first frame of the movie might just have the middle 5 columns of pixels, then the second frame might have the middle 10 columns of pixels, then 15 columns, and so on.

What will be an ideal response?


```
def wipeIn(directory, picture):
#if each frame has 5 pixels changed, max frame is width/5
width = getWidth(picture)
height = getHeight(picture)
for num in range (1 ,width/5):
canvas = makeEmptyPicture (width,height)
column = num*5
clippedPicture = clip(picture, (width/2)-column/2, 0, column, height)
copy(clippedPicture, 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...

The ReDim statement causes an array to lose its current contents unless the word ReDim is followed by the keyword

(A) CInt (B) MyBase (C) Preserve (D) Add

Computer Science & Information Technology

Which statement below initializes array items to contain 3 rows and 2 columns?

a. int[][] items = {{2, 4}, {6, 8}, {10, 12}}; b. int[][] items = {{2, 6, 10}, {4, 8, 12}}; c. int[][] items = {2, 4}, {6, 8}, {10, 12}; d. int[][] items = {2, 6, 10}, {4, 8, 12};

Computer Science & Information Technology

Each record in a table is represented by a ________

A) row B) legend C) data set D) column

Computer Science & Information Technology

You should try to limit your font usage on a Web page to five font faces per design to avoid visual overload.

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

Computer Science & Information Technology