ppb / pursuedpybear

A python game engine.
https://ppb.dev/
Artistic License 2.0
258 stars 98 forks source link

Easing functions #414

Open AstraLuma opened 4 years ago

AstraLuma commented 4 years ago

PPB should provide some standard easing functions.

pathunstrom commented 4 years ago

Going to dump a pile of resources I've found useful over time:

Robert Penner's Easing Functions is my favorite site for experimenting with easing functions and how they feel, but unfortunately, requires Flash, making it less and less useful with time.

Easings.net is similar for showing the effects, but the non-sandbox aspect makes them less useful for getting a feel, but some of their examples are really clever.

Robert Penner again a list of articles. I find this one very interesting.

Improved Easing Functions suggests a form that would make a good set of utility functions as the basis of higher level helper functions. They'd be easy to implement and test, so would be a great foundation to get started on.

pathunstrom commented 4 years ago

Also, watched this talk, the way these can be combined and remixed I think is exactly the thing we want for this purpose. Seems to build on the Improved Easing Functions version: https://youtu.be/mr5xkf6zSzk?list=PLv4tdoIm9cSdpnBIH42le7Ks-o_VwnDJq