[Example: Constant Acceleration]

Suggestions: Modify this page to show two objects each having a different acceleration.


 

Embedding

Animator may be embedded within your web page using the following HTML tags:

<applet code="Animator.class" width=600 height=400>
	<PARAM NAME="dt" VALUE=0.1>
	<PARAM NAME="FPS" VALUE=10>
	<PARAM NAME="pixPerUnit" VALUE=10>
	<PARAM NAME="showControls" VALUE=false>
</APPLET>

where dt is the time step and FPS is the frames per second. These parameters may need to be adjusted to produce smooth animation on less powerful computers. GridUnit specifies the grid spacing. If gridPerUnit is set to zero the grid will not be drawn. The ShowControls parameter is designed to reduce the screen size of the Applet. This parameter allows the HTML programmer to hide the buttons displayed at the bottom of the applet. JavaScript can be used to add objects to the applet.


Script for Constant Acceleration

<script language="JavaScript">
function prob1()
{       document.Animator.setDefault();
        document.Animator.shiftPixOrigin(-100,0)
        document.Animator.setShapeCoord(1);
        document.Animator.setShapeRGB(255,0,0);
        document.Animator.addRectangle(50, 15,"10*t*t","0");
        document.Animator.setCaption("Constant Acceleration");
        document.Animator.setTimeInterval(0,2);
        document.Animator.forward();
}
</script>

You may wish to examine the following documentation to examine other methods that can be used with Animator.

ADDITONAL METHODS