Applet Tag Documentation
The above applet was accomplished with the following tag:
<APPLET WIDTH=373 HEIGHT=210 ALIGN="center"
CODEBASE="./classes" CODE="Sine.class" >
<PARAM name="IMAGENAME" value="../bizcard.gif">
<PARAM name="SINE_MULT" value="4">
<PARAM name="SINE_RESOL" value="720">
<PARAM name="SINE_INCR" value="8">
<PARAM name="PHASE_INC" value="3">
</APPLET>
Explanation of parameters
- IMAGENAME
- filename of a background image to use [default: none]
- SINE_MULT
- Integer number of sine cycles in each (SINE_RESOL) width
[default: 6]
- SINE_RESOL
- How many pixels a complete (2*pi) sine cycle covers. Determines
the granularity of the computed sine wave as well as the default
width. [default: 720]
- SINE_INCR
- Number of pixels between each drawn vertical line on the
sine wave. [default: 6]
- PHASE_INC
- Number of pixels to move the sine wave between frames (NOTE:
PHASE_INC must be less than SINE_MULT due to some unique code)
[default: 3]
- SLEEP_PERIOD
- Milliseconds to sleep between each drawn animation frame.
[default: 50]