Build an animation of at least three seconds in duration (30 frames at 10 fps, or 75 frames at 25 fps). You must have at least three things in motion during this sequence. You must use at least one composited image (a JPEG image that you scale (if necessary) and copy into the image) and one drawn image (a rectangle or line or text or oval or arc—anything that you draw). For at least one of the things in motion, change its velocity part way through the animation—change the direction or the speed.
Note: The important things to check here are that three different position values are changed for three different images, and that there is a check to change the velocity of one partway through the animation. An example is below:
```
def movingImages (directory, img):
imgX = 150
for num in range (1 ,30): #29 frames
canvas = makeEmptyPicture (300 ,250)
#add a filled rect moving linearly
addRectFilled(canvas,num*8,num*7,50,50,red)
addRectFilled(canvas,250-num*8 ,200-num*7,50,50,blue)
if num>15:
imgX +=num*3
else:
imgX -= -num*3
copy(img, canvas, imgX, 0)
# Now , write out the frame
# 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...
MC Operator LIKE is used for_________ .
a) creating queries. b) sorting result sets. c) pattern matching. d) None of the above.
What current trends could conceivably negate the usefulness of virtual memory?
What will be an ideal response?
A bubble sort is the most efficient way to sort an array.
Answer the following statement true (T) or false (F)
Identify the letter of the File tab option that best matches the task described.
A. Encrypt with password B. Change color scheme C. Open the Save As dialog box D. Save a database as a different file type E. Select a template option