craftyjs/Crafty — pull request #848 by starwed (2014-12-22 01:32:06+00:00)
Title: Allow alternate easing functions

This allows you to specify alternate easing functions, either by giving the name of a built-in function (such as "smoothStep" or "easeInOutQuad"), or by directly passing a function. Omitting the function defaults to linear behavior.

Currently there's a very limited selection of built-in functions, but it's trivial to add more!

The base functionality is implemented in Crafty.easing. The "Tween" component, `viewport.zoom()`, and `viewport.pan()` all now support these variant easings.

This patch also adds a couple of simple tests.