You are here

Constructing Mathlets Quickly using LiveGraphics3D - Animations

Author(s): 
Jonathan Rogness and Martin Kraus

Parametrized graphics can be very useful, but at times you might want certain graphics primitives to move in a prearranged fashion. LiveGraphics3D facilitates this by providing another format for its input. Instead of

 

we use the form

 

This is demonstrated in the following applet, which shows a very simple model of a solar system. The three points in the applet are located at  ,   and  ; these coordinates are automatically adjusted by LiveGraphics3D to create an animation. Look at the parameters for the independent and dependent variables to see if you can predict what will happen as  increases from 0 to  ; move the mouse pointer over the applet to start the animation. In some browsers it may be necessary to click on the applet before the motion begins.


Resulting Applet:

As you can verify, LiveGraphics3D still allows you to rotate or zoom in and out while the animation is running. It is also possible to combine animations and parametrized graphics. Notice that  ,   and   are independent variables in this example. If you double-click the applet to stop the animation, you can drag the orange point   anywhere in the bounding box; double-click the applet again to restart the system in its new location. If you wish to move through an animation frame-by-frame, click the picture with the right mouse button and drag the mouse horizontally. (In MacOS using a mouse with a single button, you can step through the animation frame-by-frame by holding down the Command or Apple key, clicking with the single button, and dragging horizontally.)

Jonathan Rogness and Martin Kraus, "Constructing Mathlets Quickly using LiveGraphics3D - Animations," Convergence (May 2006)