All commands to the animator are in the form of simple text commands. The animator parses this input string and, if it understands the input, proceeds to lay out and animate the juggling pattern. Every animation parameter that is changeable can be set with one of the available commands. The applet includes some preferences panels for modifying things, but these are just for convenience and, again, don't add to the functionality of the animator input commands.
The input string is comprised of
a series of semicolon-separated settings in the form
variable=setting
.
There are just two required
settings: One indicating a mode, the other indicating the pattern to animate.
If you type mode=siteswap;pattern=552
into the animator, for
example, you will get the siteswap pattern 552
animated at full
speed. That's basically all there is to it.
Additional optional settings allow you to tailor the animation,
if you want. The available settings are described below.
"mode=siteswap;pattern="
as in the example above. Therefore
there is a shortcut: If your input string contains no '='
characters, the parser will assume you've only given a pattern. It then
decides whether to use siteswap
or syncsiteswap
mode, automatically generates the string
"mode=[sync]siteswap;pattern=[your input];slowdown=2.0"
, and then
sends this to the animator. Note that patterns inputted in this manner will
be displayed at half of normal speed.
mode
siteswap
or syncsiteswap
. No default.
pattern
border
slowdown
fps
startpaused
dbuffer
g
tps
throwx
rightthrowx
throwx
above. Default is 0.25. (optional)
leftthrowx
catchx
rightcatchx
catchx
above. Default is 0.5. (optional)
leftcatchx
balldiam
bouncefrac
handscoop
dwell
mat_HR
tps
setting above; ordinarily you should use tps
instead. No default. (optional)
mat_DR
dwell
setting above and should normally not be used. No default.
(optional)
mat_style
catchx
and throwx
parameters listed above are overridden (ignored). See below for a description of this
format. No default. (optional)
colors
The animator expects this setting to be in the generalized siteswap notation described in the
notation documentation page, with a few caveats:
This setting allows you to specify the coordinates of each catch and throw within
the plane of juggling. Imagine a coordinate system with the x axis going from
left to right in front of you (positive direction is to your right), and y axis
going up and down (positive is up). Ken uses the following units of measurement:
Each grid tick along the x axis is 2.5 centimeters, and each on the y axis
is 5 cm. The origin is at "normal" catching height, at the centerline of your body.
The setting consists of a string of coordinate pairs in the form
For example, Ken's standard style for the 3 ball cascade is
Each color is defined by its red, green, blue components on a 0-255 scale. Thus if this
setting is equal to
If you define several colors, they will be assigned to the balls in a cyclical manner. For example,
Colors can also be specified by name; for example the above color setting could
be replaced by The "pattern" Setting Format
syncsiteswap
mode.
B
F
The "mat_style" Setting Format
{catchx,catchy}{throwx,throwy}
where each pair is assigned to a throw in the siteswap pattern. If a pair corresponds
to a left-handed throw, the catchx
and throwx
values are
automatically negated. Also, the number of pairs specified need not be equal to the
number of throws in the siteswap -- it just loops back to the beginning when it gets to
the end of the pairs.
{13,0}{4,0}
, which means to catch at 13*2.5 = 32.5 cm from the centerline
(at no elevation) and throw at 4*2.5 = 10 cm from the centerline (also at no elevation).
His version of Mills Mess is {-1,0}{-12,0}{0,0}{12,0}{1,0}{-12,0}
if
you care to puzzle that one out.
The "colors" Setting Format
{255,0,0}
, the animator will use red balls.
{255,0,0}{0,255,0}
means that Ball 1 is red, ball 2 is green, ball 3 is red,
ball 4 is green, and so on.
{red}{green}
to get the same effect.
Recognized color names include:
black, blue, cyan, gray, green, magenta, orange, pink, red, white, yellow
.