Ease property as a function?

Is it possible to set the ease property to be a function? Or, is there another per-tick tap I can use to manipulate the objet's state?

e.g., ease: (t) => Math.abs(0.5 - t) * 2

Which would be an OutIn rather than an InOut

I don't think so at the moment, was just seeing if that was built in to CreateJS Tween. We did some custom work with tween equations in ZIM Cat as mentioned - ZIM Cat - ZIM Ease - JavaScript Canvas Framework - Code Creativity!

ease:zimEase([1.956,0.4,0.6,-2.39])

But can't remember how we hooked into it. Will take a look and see if there is a way to provide a function like that. Just going out on a family walk and dinner.

1 Like

OK thanks for checking. I'll look into it myself after this project

1 Like