usage
var Path = var path = points: 100200 200123 200123 300200 duration: 4000 easing: 'easeInOutCubic' { var point = path; // drawPoint(point[0], point[1]) // point[0]:x, point[1]:y if!path }
api
path
demo
see the test.html in test folder.
performance
new Path()
don't hold any timer in it. so, if you donot use it, it will released by the GC, that's makes it easy-to-use, and plain to handle.
chage note
- v1.0.1 LinePath is available
- v1.1.0 QuadraticPath is available
- v1.1.1 BezPath is available
- v2.0.0 change api, only use Path.of to create path. deduce the complexity to use this library.