Write a function to make a movie with text that starts out large near the bottom of the movie and then moves up toward the top and gets smaller each time it moves up. You can create a font style using makeStyle(family,type,size).
What will be an ideal response?
```
def shrinkText(directory):
for num in range (1 ,30): #29 frames
canvas = makeEmptyPicture(320, 240)
#Make the font and write the text
font = makeStyle(sansSerif, plain, 30-num)
addTextWithStyle(canvas,0, 200-num*4, "Hello World", font)
# Have to deal with single digit vs. double digit
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...
When a database is backed up, which of the following is appended to the file name?
A) The date B) "_append" C) "_backup" and the date D) "_2"
The purpose of restoring a window is to:
A) make it bigger. B) minimize it. C) zoom in. D) maximize it.