Change the movie of the kid fading out. Instead of fading in the beach, fade in the original blank wall. The e®ect should be of the kid disappearing.
What will be an ideal response?
```
*
¤ Method to c r e a t e a movie t h a t f a d e s out the person
¤ @param d i r e c t o r y the d i r e c t o r y to wr i t e to
¤/
public void makeFadeOutMovie2 ( St r ing d i r e c t o r y )
{
// load the p i c t u r e s
St r ing kidF = Fi l eChoos e r . getMediaPath ( " kid¡in¡frame . jpg " ) ;
Pi c tur e kidP = nul l ;
St r ing wal lF = Fi l eChoos e r . getMediaPath ( "bgframe . jpg " ) ;
Pi c tur e wal lP = new Pi c tur e ( wal lF ) ;
St r ing bgF = Fi l eChoos e r . getMediaPath ( "bgframe . jpg " ) ;
Pi c tur e bgP = new Pi c tur e (bgF ) ;
// 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 ¤ 2 ; i++)
{
kidP = new Pi c tur e ( kidF ) ;
kidP . swapBackground ( wallP , bgP , i ) ;
f rameSequencer . addFrame ( kidP ) ;
}
// p lay the movie
f rameSequencer . play ( f ramesPerSec ) ;
}
```
You might also like to view...
Answer the following statements true (T) or false (F)
1. A recursive solution solves a problem by solving a smaller instance of the same problem. 2. An iterative solution involves loops. 3. A binary search starts at the beginning of the collection of items. 4. An iterative method always calls itself. 5. In practice, recursion should be used even when a problem has a simple iterative solution.
Identify the compiler errors and state what is needed to eliminate the error(s).
```
include