Animations

Animations

{Object} Animations Animations handler; for drawing multiple objects in one instance

Constructor

new Animations()

Description:
  • Creates an animation instance
Source:
Properties:
Name Type Description
objects Array.<clObject> CanvasLab objects
timings Array.<(string|function())> Timing functions
periods number Period of time
changes Array.<Object> Changes an object
options Object Options for this object

Methods

animate()

Description:
  • Initiates animation
Source:

cache(value)

Description:
  • Set cache
Source:
See:
Parameters:
Name Type Description
value boolean True || False

cache() → {boolean}

Description:
  • Get cache
Source:
See:
Returns:
True || False
Type
boolean

cancel()

Description:
  • Cancels animation
Source:
See:

changes(value)

Description:
  • Set changes
Source:
Parameters:
Name Type Description
value clChange Canvas Lab changes object

changes() → {clChange}

Description:
  • Get changes
Source:
Returns:
Canvas Lab changes object
Type
clChange

objects(value)

Description:
  • Set objects to animate
Source:
Parameters:
Name Type Description
value clObject Canvas Lab objects

objects() → {clObject}

Description:
  • Get objects
Source:
Returns:
Canvas Lab objects
Type
clObject

period(value)

Description:
  • Set period of animation
Source:
See:
Parameters:
Name Type Description
value number Period of animation-time

period() → {number}

Description:
  • Get period of animation
Source:
See:
Returns:
Period of animation-time
Type
number

queue(value)

Description:
  • Set queue
Source:
See:
Parameters:
Name Type Description
value Queue Queue object

queue() → {Queue}

Description:
  • Get queue
Source:
See:
Returns:
Queue object
Type
Queue

timings(value)

Description:
  • Set timings
Source:
Parameters:
Name Type Description
value string | function Timing function

timings() → {function}

Description:
  • Get timing
Source:
Returns:
Timing function
Type
function