What is the principle of time-based animation?

What will be an ideal response?


Time-based animation updates the location of various objects on the screen
at a regular interval based on time. This is unlike cell-based animation,
where the complete picture is flipped through in sequence.

Computer Science & Information Technology

You might also like to view...

A hotel is expanding and wants to install an elevator system in its building. You have been asked to create a simulation of this new elevator system. Create an application which simulates the buttons in the elevator and displays a simple picture of the elevator (a black rectangle) moving to the correct floor when a JButton is pressed (Fig. 20.34).


a) Copying the template to your working directory. Copy the C:Examples Tutorial20ExercisesElevator directory to your C:SimplyJava directory.
b) Opening the DrawJPanel template file. Open the template file DrawJPanel.java in your text editor.
c) Creating a new MyRectangle object. Inside the DrawJPanel no-argument construc- tor, create your new MyRectangle object buildingElevator (at line 47) after the creation of delayTimer. The template already declares buildingElevator as an instance variable. When calling the MyRectangle constructor, the x and y variables should be the first two parameters and be set to 57 and 400 respectively. The height, width and color variables should be set to 36, 50 and Color.BLACK and are the third, fourth and fifth parameters, respectively.
d) Adding code to the moveEelevator method. Find the moveElevator method, which immediately follows moveElevatorToFloor. Inside the moveElevator method, add an if…else statement that tests if currentPosition is

Computer Science & Information Technology

Password fields often use ____ to conceal data.

A. carets B. ampersands C. asterisks D. pound signs

Computer Science & Information Technology

The widths of the columns in a table may be adjusted by using the or ____________________ elements.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What type of advertising are you using if you receive a fee or share of profit generated when a user accesses your ad?

A. payola B. impression-based C. royalty D. pay-per-click

Computer Science & Information Technology