add : documentation for TWEEN.Easing.generatePow()

This commit is contained in:
MasatoMakino 2021-05-04 22:25:10 +09:00
parent e99549bef1
commit efd849e286

View File

@ -277,6 +277,8 @@ There are a few existing easing functions provided with tween.js. They are group
Probably the names won't be saying anything to you unless you're familiar with these concepts already, so it is probably the time to check the [Graphs](../examples/03_graphs.html) example, which graphs all the curves in one page so you can compare how they look at a glance.
TWEEN.Easing also has a function called generatePow(). This function generates easing functions for different curves depending on arguments. You can check the relevance of the arguments to curves in the [example of pow easing](../examples/17_generate_pow.html) page.
_Credit where credit is due:_ these functions are derived from the original set of equations that Robert Penner graciously made available as free software a few years ago, but have been optimised to play nicely with JavaScript.
### Using a custom easing function