<HTML>
<HEAD>
<TITLE> Examples of the AniS applet </TITLE>
</HEAD>
<BODY>
<P>
<h1><center> The Ani(mation)S applet </center>
</h1>
<p>
This page consists of a series of examples to demonstrate the
use of the AniS applet for making animations and overlays.
Subsequent pages deal with portals, and more complex
combinations.  
<p>
Each example illustrates one or more of the features of this
applet, and are designed to provide an example of the HTML
needed to obtain results.
<p>
The overall goal of this project was to give you, the web page
author, a toolkit for using combinations of several different
techniques that have been developed in support of projects using
satellite images.

<p>
<b>1a. The "almost" simplest form:  animate a series of images.</b>
Just allow the
users to stop and start the animation. (The "very simplist" form
would have no controls...but I thought that was too boring!)
The complete applet tag is:

<xmp>
<APPLET code="AniS.class" width=640 height=540>
<PARAM name="controls" value="startstop">
<PARAM name="filenames" value="fsd_rad_0,fsd_rad_1,fsd_rad_2">
</APPLET>
</xmp>

<APPLET code="AniS.class" width=640 height=540>
<param name="controls" value="startstop">
<PARAM name="filenames" value="fsd_rad_0,fsd_rad_1,fsd_rad_2">
<param name="rate" value="20">
</APPLET>
<hr>
<p>

<b>1b. The "other" simplest form:  fade between a series of images.  </b>
Just allow the users to alter the fading among the 3 images. 
The Applet's parameters are the same as 1b, except the for the
controls:
<xmp>
<PARAM name="controls" value="fader">
</xmp>

<APPLET code="AniS.class" width=640 height=540>
<param name="controls" value="fader">
<PARAM name="filenames" value="fsd_rad_0,fsd_rad_1,fsd_rad_2">
<param name="rate" value="20">
</APPLET>
<hr>
<p>


<b> 2. Now lets treat those same images as faded animations</b>
by adding a start/stop control.  We'll add the zoom
control, too.  We just need to add a "zoom" to the controls
parameter:
<xmp>
<PARAM name="controls" value="startstop,zoom">
</xmp>
and add a new parameter to indicate that the images should be
faded:
<xmp>
<PARAM name=fade value=true>
</xmp>
Finally, we will set two aspects of the animation; first, the rate at 5 
frames per second using:
<xmp>
<PARAM name="rate" value="50">
</xmp>
and then the mode to <i>rocking</i> (rather than <i> movie
looping</i>):
<xmp>
<PARAM name="rocking" value="true">
</xmp>

<APPLET code="AniS.class" width=640 height=540>
<param name="controls" value="startstop,zoom">
<PARAM name="filenames" value="fsd_rad_0,fsd_rad_1,fsd_rad_2">
<param name=fade value=true>
<param name=rate value=50>
<PARAM name="rocking" value="true">
</APPLET>
<hr>
<p>

<b>3. Now we want to give them controls for speed and stepping </b>
the frames (we'll go back to the un-faded 3 frames for this example,
though, by removing the PARAM for the "fade").  The new controls
PARAM looks like:
<xmp>
<PARAM name="controls" value="startstop, speed, step, zoom">
</xmp>

<APPLET code="AniS.class" width=640 height=540>
<param name="controls" value="startstop, speed, step, zoom">
<PARAM name="filenames" value="fsd_rad_0,fsd_rad_1,fsd_rad_2">
<param name=rate value=20>
</applet>
<hr>
<p>

<b>4. Using overlays.</b>  In order to use overlays, you
must provide four pieces of information:
<ul>
<li>The filename of the <i>background</i> image
<li>The labels for the overlaid fields
<li>The filename(s) for the overlay(s)
<li>The value of the color to use as <i>transparent</i>
</ul>
In our example, we will use the previously shown images as the
overlays, and will put a satellite image up as the
<i>background</i>.  The HTML for the applet looks like this:
<xmp>
<PARAM name="controls" value="overlay">
<PARAM name="overlay_labels" value="first,second,third">
<PARAM name="overlay_filenames" value="fsd_rad_0, fsd_rad_1, fsd_rad_2">
<PARAM name="filenames" value="wisgif0">
<PARAM name=transparency value="x00000000">
</xmp>

<APPLET code="AniS.class" width=640 height=540>
<param name="controls" value="overlay">
<param name="overlay_labels" value="first,second,third">
<param name="overlay_filenames" value="fsd_rad_0, fsd_rad_1, fsd_rad_2">
<PARAM name="filenames" value="wisgif0">
<param name=transparency value="x00000000">
</APPLET>
<hr>
<p>

<b>5. Now let's animate the background.</b>  You need only add more
filenames>
<xmp>
<PARAM name="filenames" value="wisgif0,wisgif1, wisgif2">
</xmp>

In this case, we will also specify that the first overlay is an
animation, but the second and third are not.  This is done
by using an ampersand between filenames that are to appear on
each frame:
<xmp>
<PARAM name="overlay_filenames" value="fsd_rad_0 & fsd_rad_1 & fsd_rad_2, fsd_rad_1, fsd_rad_2">
</xmp>
Of course, we also should add some controls for the animation
(although this is not necessary):
<xmp>
<PARAM name="controls" value="startstop, overlay">
</xmp>

<APPLET code="AniS.class" width=640 height=540>
<PARAM name="controls" value="startstop, overlay">
<param name="overlay_labels" value="first,second,third">
<PARAM name="overlay_filenames" value="fsd_rad_0 & fsd_rad_1 & fsd_rad_2, fsd_rad_1, fsd_rad_2">
<PARAM name="filenames" value="wisgif0,wisgif1, wisgif2">
<param name=transparency value="x00000000">
</APPLET>
<hr>
<p>

<b>6. You may also want to add <i>on - off</i> controls </b>so that the
user can remove frames if they want.  This is done by adding
the name <i>onoff</i> to the list of controls:
<xmp>
<PARAM name="controls" value="startstop, overlay, onoff">
</xmp>
Note that these on-off switches will always be put onto a
separate row in the User Interface, so you may need to adjust
the <i>height</i> of your applet to compensate. (Here, we added
30 to the value previously being used).
<br>

<APPLET code="AniS.class" width=640 height=570>
<PARAM name="controls" value="startstop, overlay, onoff">
<param name="overlay_labels" value="first,second,third">
<PARAM name="overlay_filenames" value="fsd_rad_0 & fsd_rad_1 & fsd_rad_2, fsd_rad_1, fsd_rad_2">
<PARAM name="filenames" value="wisgif0,wisgif1, wisgif2">
<param name=transparency value="x00000000">
</APPLET>
<p>

<hr>

<p>
If you would like more information, or have questions or
suggestions, please contact <mailto:tomw@ssec.wisc.edu>Tom Whittaker

</BODY>
</HTML>
