domhofmann / PRTween

Lightweight tween library for iOS
BSD 2-Clause "Simplified" License
459 stars 63 forks source link

Add support of multiple timing functions for lerps #32

Closed tonqa closed 2 years ago

tonqa commented 11 years ago

There are a lot use cases, where you want to animate the lerps multiple dimensions (for example points with x and y values) each with a different timing function. E.g. the x-dimension should have a linear timing function and the y-dimension a bounce timing function within the same animation.

I suggest to hand over the timing functions to the custom PRLerpPeriod to let the period decide which timing function it uses for which of its dimensions. I really like your library, which is a breakthrough for making the application more responsive, please carry on.