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 ) ;
}
```
You might also like to view...
Write a for statement to compute the sum 1 + 22 + 32 + 42 + 52 + ... + n2.
What will be an ideal response?
Which of the following do you define as the feeling of equilibrium that is experienced when looking at a composition as a whole?
a. unity b. balance c. rhythm d. graphic style
A computer with a 32?bit address architecture has a memory management system with single?level 4 KB page tables. How much memory space must be devoted to the page tables?
What will be an ideal response?
The first high-level programming language that could perform complex mathematical calculations was __________.
a. COBOL b. Ada c. C++ d. FORTRAN