Module animation

Class Tween

tove.newTween (graphics) Create new tween.
Tween:to (graphics, duration[, ease]) Add new tween step.

Class Flipbook

tove.newFlipbook (fps, tween) Create new flipbook.
Flipbook:draw (...) Draw.


Class Tween

A tween.
tove.newTween (graphics)
Create new tween.

Parameters:

Returns:

    Tween new empty tween
Tween:to (graphics, duration[, ease])
Add new tween step.

Parameters:

  • graphics Graphics Graphics which will be at the new step
  • duration number duration from current end of tween to step
  • ease function easing function (optional)

Returns:

    Tween the modified tween

Usage:

    tween = tove.newTween(svg1):to(svg2, 0.3):to(svg3, 0.1)

Class Flipbook

A flipbook.
tove.newFlipbook (fps, tween)
Create new flipbook. A flipbook consists of prerendered discrete frames. Performance will be high, but memory requirements might be high as well.

Parameters:

  • fps number playback rate as frames per second
  • tween Tween describes the animation to play
Flipbook:draw (...)
Draw.

Parameters:

  • ...
generated by LDoc 1.4.6 Last updated 2019-04-19 11:25:52