Create a movie of a turtle (turtle.jpg) crawling across the beach (beach.jpg).

What will be an ideal response?


```
/**
* Method to c r e a t e a movie where a t u r t l e c rawl s
* ac ros s the beach
* @param d i r e c t o r y the d i r e c t o r y to s t o r e the frames in
*/
public void makeTurtleMovie ( St r ing d i r e c t o r y )
{
// g e t the p i c t u r e s to use
Pi c tur e p i c t 1 = new Pi c tur e ( Fi l eChoos e r . getMediaPath ( "beach . jpg " ) ) ;
Pi c tur e p i c t 2 = new Pi c tur e ( Fi l eChoos e r . getMediaPath ( " t u r t l e . jpg " ) ) ;
Pi c tur e copyPict = nul l ;
// 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 ; i++)
{
copyPict = new Pi c tur e ( p i c t 1 ) ;
copyPict . copy ( pi c t2 , i + 7 , 3 0 0 ) ;
f rameSequencer . addFrame ( copyPict ) ;
}
// p lay the movie
f rameSequencer . play ( f ramesPerSec ) ;
```

Computer Science & Information Technology

You might also like to view...

A throw statement can throw

a. an integer exception b. a float exception c. a bool exception d. an exception of any data type e. all of the above f. none of the above

Computer Science & Information Technology

Critical Thinking QuestionsCase G-2Charles is creating a flag for his social studies class. Charles has three classmates working on the project with him and they are all providing input into the design of the flag. Charles applies a pattern fill to a star shape and wants the pattern artwork to be smaller without changing the size of the star shape so he ____.

A. double-clicks the Pattern swatch B. double-clicks the Scale tool C. double-clicks the Pattern effect on the Appearance panel D. double-clicks the Scale tool on the Tools panel

Computer Science & Information Technology

A(n) check box control is used for field values that have the Yes/No data type. _________________________

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

Computer Science & Information Technology

What virtualization product supports the use of 4-KB disk sectors within virtual drives, allowing the virtual machine to take advantage of increased storage capacity?

A. VMware vSphere B. Oracle VirtualBox C. XenWorks D. Microsoft Hyper-V

Computer Science & Information Technology