Animator()
The Animator() constructor creates a new Animator object.
Syntax
new Animator(core)
Parameters
- core
- A Core object, that will be set to Animator.prototype.core as is. Animator.prototype.props and Animator.prototype.arms are initialized as empty arrays.
Examples
const core = new jmotion.Core("#board");
const animator = new jmotion.Animator(core);
// animator = {
// "arms": [],
// "core": {
// "back": g#board_back,
// "defs": defs#board_definition,
// "front": g#board_front,
// "middle": g#board_middle,
// "svg": svg#board,
// },
// "props": [],
// }