Create a movie of the robot (robot.jpg) moving across the moon (moon-surface.jpg).
What will be an ideal response?
```
/**
* Method to c r e a t e a movie where a ro bot c rawl s
* ac ros s the moon
* @param d i r e c t o r y the d i r e c t o r y to s t o r e the frames in
*/
public void makeRobotMovie ( St r ing d i r e c t o r y )
{
// g e t the p i c t u r e s to use
Pi c tur e p i c t 1 = new Pi c tur e ( Fi l eChoos e r . getMediaPath ( "moon¡s u r f a c e . jpg " ) ) ;
Pi c tur e p i c t 2 = new Pi c tur e ( Fi l eChoos e r . getMediaPath ( " robot . jpg " ) ) ;
Pi c tur e copyPict = nul l ;
// d e c l a r e o the r v a r i a b l e s
FrameSequencer f rameSequencer =
new FrameSequencer ( d i r e c t o r y ) ;
int f ramesPerSec = 3 0 ;
// loop c r e a t i n g the frames
for ( int i = 0 ; i < f ramesPerSec ; i++)
{
copyPict = new Pi c tur e ( p i c t 1 ) ;
copyPict . copy ( pi c t2 , i + 7 , 3 0 0 ) ;
f rameSequencer . addFrame ( copyPict ) ;
}
// p lay the movie
f rameSequencer . play ( f ramesPerSec ) ;
}
```
You might also like to view...
Sections of most commercial Web sites are off-limits except to subscribers and registered customers and have a(n) ____ Web page that users must go through to get to the off-limits area.
A. password-protected B. protected C. unprotected-entry D. password key
In public-key encryption, the two keys—one for coding and one for decoding—are known as ________
A) key tags B) code keys C) a key pair D) linked keys
A general path is ________.
a. a set of polylines that do not result in a closed shape b. a shape constructed from straight lines and complex curves c. the shape of the curve in a font’s characters d. represented by an object of class GraphicsPath
Describe one weakness of MAC address filtering.
What will be an ideal response?