An applet that allows you to display animated sketches
(demo).
The sketch can be drawn using the SketchPad.
It is Java 1.1 compatible and will work in any brower with a 1.1
or higher version JVM.
Features:-
- Displays/ Animates a predefined color sketch
- Multiple sketches can be shown in order
- Multi-threaded to load sketches and images in the background
- Display a background/ reference image with each sketch
- Highly customzable
- Settings for ALL or one sketch possible
- Scale factor of the sketch
- Offset for the sketch
- Background Color
- Background Image
- Offset of the background image
- Interval time between sketches
- Loop the sketches
- Clear or drawn over for each subsequent sketch
- A set of Viewer controls
- Pause
- Control animation speed
- Go to next/ previous sketch
- Restart
- Compatible with JVM 1.1
Controls:-
- Bring the applet into focus before using the controls (click
on it)
- Ctrl + F : Faster animation
- Ctrl + S : Slower animation
- Ctrl + Z : Previous Sketch
- Ctrl + Y : Next Sketch
- Ctrl + R : Re-start from the beginning
- Ctrl + P : Pause (Toggle)
Usage:-
<applet code="com.mullassery.sketcher.Sketcher"
archive="sketcher.jar" width="480" height="500">
<!-- Input sketch Files, played in order -->
<!-- The ONLY required param is the "file1" -->
<!-- Suffix the params for the sketch file with
the order starting with "1", eg., "file1",
"image1", etc. All paths are relative
to the codebase (where the sketcher.jar is)-->
<param name="file1" value="sketches\abey.skt">
<!-- An image to be loaded in the background while
sketching the "1"st sketch. -->
<param name="image1" value="images\abey.gif">
<param name="file2" value="sketches\ashwin.skt">
<param name="image2" value="images\ashwin.gif">
<param name="file3" value="sketches\daisy.skt">
<param name="image3" value="images\daisy.gif">
<!-- A scale specific to this sketch. It overrides
the global scale if present -->
<param name="scale3" value="0.65">
<!-- An "x" offset (horizontal) specific to this sketch.
This will override the global "x" -->
<param name="x3" value="100">
<!-- An "ix" offset (horizontal) specific to this image.
This will override the global "ix" if specified -->
<param name="ix3" value="10">
<param name="iy3" value="2">
<param name="file4" value="sketches\bosco.skt">
<param name="image4" value="images\bosco.gif">
<!-- Interval between each sketches in
milliseconds --> <param name="interval" value="1000">
<!-- Delay in the sketching animation. "0" makes it
very fast -->
<param name="delay" value="1">
<!-- Loop the sketches once it reaches the end
of the list -->
<param name="loop" value="TRUE">
<!-- A global scale value -->
<param name="scale" value="0.8">
<!-- Background color specified as a number
(Hexadecimal) -->
<param name="bg" value="0xFFFFD7">
<!-- An offset for all sketches, default values
for x is "0" and y is "0". -->
<param name="x" value="50">
<!-- An offset for all images, default values
for ix is "0" and iy is "0". -->
<param name="ix" value="5">
<param name="iy" value="5">
<!-- Clear the screen after each sketch -->
<param name="clear" value="true">
</applet> |