Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 751 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 751 Bytes

SparkTween

A tiny teeny tween function for SparkAR

https://pl.ai

Doesn't add any new functionality to SparkAR, instead it just wraps the Animation, TimeDriver and Samplers into (I think) an easier to read format, so if you are used to TweenMax / TweenLite or DoTween in Unity etc then the syntax below should be pretty readable to you.

Tween(startValue, endValue, duration, loopCount, mirror, easeType, completeCallback)

e.g.

sceneObject.transform.x = Tween(-100, 100, 5, 10000, true, Ease.BOUNCE_OUT, OnAnimationCompleteCallback);

ToDo
create some real docs
look at adding support for sequences
moar testing
add infinite loops for loop count