Create a movie with a ¯lled rectangle moving diagonally from the top right of the picture to the bottom left.
What will be an ideal response?
```
/**
* Method to make a movie t h a t has a r e c t a n g l e moving
* from top r i g h t to bot tom l e f t
* @param d i r e c t o r y the d i r e c t o r y to put the movie
* frames
*/
public void makeRectMovieTopRightToBotLeft ( St r ing d i r e c t o r y )
{
int f ramesPerSec = 3 0 ;
Pi c tur e p = nul l ;
Graphics g = nul l ;
FrameSequencer f rameSequencer =
new FrameSequencer ( d i r e c t o r y ) ;
f rameSequencer . setShown ( true ) ;
// loop through the f i r s t second
for ( int i = 0 ; i < f ramesPerSec ; i++)
{
// draw a f i l l e d r e c t a n g l e
p = new Pi c tur e ( 6 4 0 , 4 8 0 ) ;
g = p . ge tGraphi c s ( ) ;
g . s e tCo l o r ( Color .RED) ;
g . f i l lRe c t (590 ¡ ( i * 10) , i * 10 , 5 0 , 5 0 ) ;
// add frame to s e quenc e r
f rameSequencer . addFrame (p ) ;
}
// p lay the movie
f rameSequencer . play ( f ramesPerSec ) ;
}
```
You might also like to view...
When setting up an email account, you need to know basic information such as the email address and ____.
A. physical address B. nationality C. password D. credit card number
Match each item with a statement below.
A. can span more than one hard drive B. used to enhance the amount of RAM in a system C. rearranges files on the drive into as few segments as possible D. an extra copy of a data or software file that you can use if the original file becomes damaged or destroyed E. a volume that can be accessed by way of a folder on another volume so that the folder has more available space F. searches for bad sectors on a volume and recovers the data from them if possible G. a hidden file stored in the root directory of drive C H. can be partitioned and formatted as a stand-alone hard drive I. snapshots of the system and include Windows system files that have changed J. the overall structure an OS uses to name, store, and organize files on a drive
Unbound controls are controls that are tied to specific fields
Indicate whether the statement is true or false
Identify the letter of the choice that best matches the phrase or definition.
1. To line up selected objects along their centers or edges
2. The squares at each corner of a selection that let you change the shape and size of an object
3. Indicates where a layer begins and ends on a canvas
4. To spread objects out evenly across or down a canvas
5. Organizes related layers in a way that makes sense to you
6. A term to describe the currently selected laye
7. Shows the borders of a layer when you select certain layers in an image
8. A layer that cannot be moved or resized
9. An area of a layer that you can see through, as indicated by a checkerboard design
10. A mode in which you can change the font style and color, among other things
11. Another name for the origin
12. The relationship between the width and the height of an image