Facade.prototype.startJuggling()

The startJuggling() method starts a juggling animation for the specified siteswap.

Syntax

startJuggling()
startJuggling(text)

Parameters

text (Optional)
A string representing the siteswap. In addition to vanilla siteswap, you can specify multiplex and synchronous.
If this argument is omitted, the stopped animation will be resumed. Therefore, you must specify this argument at least once.

Return value

An error message if the animation fails to start, or an empty string if it succeeds.

Examples

const facade = new jmotion.Facade("#board");
const response = facade.startJuggling("12");

// response = "impossible to juggle"