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...
Which audience is typically interested in the analysis report recommendations as to whether or not the allegations were correct?
A. Upper management B. Forensic experts C. Attorneys D. Auditors
Outflows of cash are represented by positive numbers
Indicate whether the statement is true or false.
____ is the ability to use the same expression to denote different operations.
A. Inheritance B. Encapsulation C. Polymorphism D. Composition
Linked lists cannot be used to implement an adjacency list.
Answer the following statement true (T) or false (F)