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 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

What are frequently the weakest link in information security?

A. wireless networks B. passwords C. unmanaged switches D. malfunctioning routers

Computer Science & Information Technology

The given definition describes which of the following terms?

A graph without self-loop and parallel edges in it. a. A simple graph b. A directed graph c. An undirected graph d. A weighted graph

Computer Science & Information Technology

Let x be a node in a binary tree, then we say that the node x violates the ____ if |xh - x1| > 1, that is, the heights of the left and right subtrees of x differ by more than 1.

A. balance criteria B. balance factor C. rebalance criteria D. rebalance factor

Computer Science & Information Technology

Structured types can be decomposed into simpler types that are related within a defined structure.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology