Create a new movie that has the kids crawling on the beach.

What will be an ideal response?

```
/**
* Method to make a movie of the k i d s c r awl ing on the beach
* @param d i r the d i r e c t o r y to wr i t e the frames to
*/
public void makeKidsOnBeachMovie ( St r ing d i r )
{
St r ing kidsDi r = Fi l eChoos e r . getMediaPath ( " kids¡blue /" ) ;
St r ing beachF = Fi l eChoos e r . getMediaPath ( "beach . jpg " ) ;
Pi c tur e beachP = new Pi c tur e ( beachF ) ;
FrameSequencer f rameSequencer = new FrameSequencer ( d i r ) ;
Pi c tur e currP = nul l ;
// g e t the ar ray o f f i l e s in the d i r e c t o r y
Fi l e di rObj = new Fi l e ( kidsDi r ) ;
St r ing [ ] f i l eAr r a y = di rObj . l i s t ( ) ;
// loop through the ar ray o f f i l e s
for ( int i = 0 ; i < f i l eAr r a y . l eng th ; i++)
{
i f ( f i l eAr r a y [ i ] . indexOf ( " . jpg " ) >= 0)
{
currP = new Pi c tur e ( kidsDi r + f i l eAr r a y [ i ] ) ;
currP . chromakey ( beachP , Color . black , 1 0 0 . 0 ) ;
f rameSequencer . addFrame ( currP ) ;
}
}
// p lay the movie
f rameSequencer . play ( 3 0 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

What is Matrix?

What will be an ideal response?

Computer Science & Information Technology

The component of a digital computer that can compare data stored in its registers is the __________.

a. arithmetic logic unit b. logical comparison unit c. cable Internet access d. register bank e. central logic unit

Computer Science & Information Technology