Log In  

Cart #44294 | 2017-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Update: Added more functions, including critically damped spring and cosine interpolation. Also added the "kaneda" easing function visualization for fun :-). Also removed even more code so its even easier to see how it all works and add your own functions.

PRs welcome!
Easing Gallery github page

Cart #41893 | 2017-06-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Update: added a few more functions and removed a ton of crap from the code to make it easier to find the actual math. The nice thing about this cart is that it is extremely easy to write a new easing function to test out. I'll keep adding to it as I need to try out different feels. Thanks!

Cart #41656 | 2017-06-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I made this cart because I wanted to visualize easing functions and make it easy to compare them. Is there a better version of this somewhere?

In any case, feedback welcome. I'll update it with more functions as I need them.

Made with @stevelavieties.

P#41657 2017-06-16 00:07 ( Edited 2017-09-18 01:37)

Very cool. Thanks for sharing...there are other easing carts but never hurts to have more. The data chart your have is really slick

Just looking at the code in the quick view, it looks like there's a lot of "extra" stuff in your cart...?? Lots of debug, something for the mouse, particles, grids, camera...is that all needed to get the easing functions to work?

Tough to tell what is needed for the easing and what is just extra stuff that goes into your visualization.

For example, if I just want to use easing style #4, what code do I need to add to my game?

P#41669 2017-06-16 12:36 ( Edited 2017-06-16 16:36)

Thanks for the comment! I whipped this up really quickly based on the base code that @stevelavieties and I have developed for Pico-8, so thats where all that stuff came from. I stripped it all out, however, so now the top of the cart is the math functions you're looking for, as well as the list to add to if you want to add more. I can also point you at the GitHub page if you're curious about following along there.

P#41895 2017-06-23 13:38 ( Edited 2017-06-23 17:38)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-05-15 01:47:10 | 0.058s | Q:19