tween library
Based on Tween.js
@author sole / http://soledadpenades.com @author mrdoob / http://mrdoob.com @author Robert Eisele / http://www.xarg.org @author Philippe / http://philippe.elsass.me @author Robert Penner / http://www.robertpenner.com/easingtermsof_use.html @author Paul Lewis / http://www.aerotwist.com/ @author lechecacharro @author Josh Faul / http://jocafa.com/ @author egraether / http://egraether.com/
Ported to Dart by
@author nelson silva / http://www.inevo.pt
Functions
dynamic update({num time}) #
update( {num time} ) { if ( _tweens.isEmpty ) { return false; } var i = 0, l = _tweens.length; if (time == null) { time = new DateTime.now().millisecondsSinceEpoch; } while ( i < l ) { if ( _tweens[ i ].update( time ) ) { i ++; } else { _tweens.removeAt( i ); l--; } } return true; }
dynamic remove(tween) #
remove( tween ) => _tweens.removeAt(_tweens.indexOf(tween));
dynamic add(tween) #
add( tween ) => _tweens.add( tween );
dynamic removeAll() #
removeAll() => _tweens = [];