Create a movie with the turtle moving across the frames of a movie of a blowhole in directory mediasources/blowhole.
What will be an ideal response?
```
/**
* Method to make a movie a t u r t l e moving ac ros s the
* movie o f the b l owh o l e
* @param d i r the d i r e c t o r y to read from and wr i t e to
*/
public void makeTurtleBlowholeMovie ( St r ing d i r )
{
St r ing tur t l eF = Fi l eChoos e r . getMediaPath ( " t u r t l e . jpg " ) ;
St r ing blowholeDi r =
Fi l eChoos e r . getMediaPath ( " blowhole /" ) ;
Pi c tur e tur t l eP = new Pi c tur e ( tur t l eF ) ;
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 ( blowholeDi 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 ( blowholeDi r + f i l eAr r a y [ i ] ) ;
currP . copy ( tur t l eP , i , 1 5 0 ) ;
f rameSequencer . addFrame ( currP ) ;
}
}
```
You might also like to view...
A temporary storage area that holds text or an object that has been cut or copied is the ________
Fill in the blank(s) with correct word
When using Solver, the ________ cell contains the formula used to optimize the results
A) objective B) changing C) pivotal D) optimizing
The TODAY function requires no arguments. _________________________
Answer the following statement true (T) or false (F)
Any element in an XML document can contain no more than one attribute.?
Answer the following statement true (T) or false (F)