Change the movie of the kid fading out. Instead of fading in the beach, fade in the original blank wall. The effect should be of the kid disappearing.
What will be an ideal response?
```
/? ?
? Method t o c r e a t e a movie t h a t f a d e s o u t t h e p e r s o n
? @param d i r e c t o r y t h e d i r e c t o r y t o w r i t e t o
?/
public void makeFadeOutMovie2 ( S t r i n g d i r e c t o r y )
{
// l o a d t h e p i c t u r e s
S t r i n g kidF = F i l e C h o o s e r . getMediaPath ( ” kid ?in?frame . j p g ” ) ;
P i c t u r e kidP = null ;
S t r i n g wallF = F i l e C h o o s e r . getMediaPath ( ” bgframe . j p g ” ) ;
P i c t u r e wallP = new P i c t u r e ( wallF ) ;
S t r i n g bgF = F i l e C h o o s e r . getMediaPath ( ” bgframe . j p g ” ) ;
P i c t u r e bgP = new P i c t u r e ( bgF ) ;
// d e c l a r e o t h e r v a r i a b l e s
FrameSequencer f r a m e S e q u e n c e r =
new FrameSequencer ( d i r e c t o r y ) ;
int framesPerSec = 3 0 ;
// l o o p c r e a t i n g t h e frames
f o r ( i n t i = 0 ; i < f r a m e s P e r S e c ? 2 ; i ++)
{
kidP = new P i c t u r e ( kidF ) ;
kidP . swapBackground ( wallP , bgP , i ) ;
f r a m e S e q u e n c e r . addFrame ( kidP ) ;
}
// p l a y t h e movie
frameSequencer . play ( framesPerSec ) ;
}
```
You might also like to view...
In a vector, which of the following statements is true?
a) Indexing vector access is range checked. b) The range of legal index values for a vector is 0 to the value of v.size()-1 c) To add a value use the member function v.push_front( ) d) To manage size of reserve use v.reserve(newReserve) e) To increase or decrease a vector’s size v.new_size(newSize);
Which of the following is true of a report in Microsoft Access 2016??
A. ?It has a graphic of the report in the upper-right corner. B. ?It defines the page area to be printed by solid lines. C. It shows field values for each record in a row.? D. ?It has a less visually appealing format than a datasheet.
What is the greatest common denominator of 105 and 35?
A. 5 B. 15 C. 25 D. 35
Software requirements document how the system is architected.
Answer the following statement true (T) or false (F)