JuggleAnim is a program to animate juggling patterns. It is designed to animate in as physically realistic a manner as possible. By this I mean that, while a pattern is of course scaled down in size to fit on the screen, the physical aspect ratio of the pattern as well as the timing of the throws is realistic. (Actually the timing can be globally scaled to slow down or speed up the pattern -- this is discussed below.)
The operation of the program centers around four different elements:
Click here to
launch the applet into its own window. When the applet comes up you will see the
animator to the left (currently no animation running), and the pattern input box
below it. Type "5"
(no quotes) into the pattern input box and hit return --
after a while an animation of a 5-ball cascade should appear in the animation panel. Click
on the animation to pause it; click again to unpause.
Turning your attention to the right half of the window, you can see the generator control buttons at the top, and the pattern list below. Click on the button labelled "Generate!", and after a short pause a message from the generator will appear below the buttons: "22 patterns found". The pattern list below has the 22 generated patterns listed. Double-click on one of them to animate it. (When there is a pattern input box on the screen, a single click of a pattern in the pattern list will only copy the pattern to the pattern input box. Otherwise it only takes a single click to animate.)
Now click on the "Show Controls" button, to get the generator controls window. This window
contains all of the settings which tell the siteswap generator what to do. For a detailed
description of everything, read the generator documentation.
For now, notice the numbers across the top: 5 7 5
. Change the last
'5'
to a '4'
and then select the "synchronous" mode below. Close
the controls window and then hit the "Generate!" button again -- now you will see a list
of synchronous 5-ball siteswaps. Try animating the fifth one down,
(6x,4)(4,6x)
.
When the applet is launched into its own window (not embedded in a web page), it has its own menus. Options for the File menu are:
.class
files in order to load them properly when the
HTML is browsed.
Saves an animated GIF of the currently-running animation. The "double buffer" option must be set in the animator preferences for this menu option to become available.
Note: this feature is disabled by default. Because the LZW compression algorithm (the basis of GIF) is patented, the relevant code cannot be included directly since JuggleAnim is open source software. You must install a separate JAR file on your system to be able to save animated GIFs; see the JuggleAnim home page for details.
The format of the pattern list files is very simple: Each line is a separate pattern, and consists of an arbitrary-length label followed by one or more TAB characters, followed by instructions to be sent to the animator when the item is clicked. If there is no second field (after the tab), then the label still shows up in the listing but it is inactive.