Facade

The Facade object is a simulator for performing animations with siteswaps. It has Animator and CalmGenerator as properties and uses them as needed.

Constructor

Facade()
Creates a new Facade object.

Properties

Facade.prototype.animator (read-only)
An instance of a Animator object that achieves animation.
Facade.prototype.generator
An instance of a CalmGenerator object that creates props and arms coordinates based on siteswap. It exists by default, but you can change it to another instance.

Methods

Facade.prototype.startJuggling()
Starts a juggling animation for the specified siteswap.
Facade.prototype.stopJuggling()
Stops the juggling animation.