zmooth
easing
zmooth | easing | |
---|---|---|
1 | 5 | |
1 | 106 | |
- | - | |
5.0 | 1.8 | |
4 months ago | about 1 year ago | |
TypeScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zmooth
-
Lerp
Neat, one of the best tricks in the creadev toolbox! ;)
Shameless plug: https://github.com/titoasty/zmooth
easing
-
Lerp
I wonder if I'm falling into the trap where a moderately interesting article with something clearly misleading about it makes me want to correct things. "Drives engagement" I suppose (:
But yeah, please don't call this lerping, as others have mentioned.
Real lerp is one of a a whole constellation of easing functions[1][2], and indeed playing with variations of "how does f(t) vary from 0–1 as t varies from 0–1" is super useful in all sorts of contexts.
But "get X% closer to the (moving) target every frame" is a more complicated thing. It is not just a f(t) easing function, even if the math overlaps.
In fact, this confusion has already had articles written about it[3] so I swear it's not just me!
[1] https://github.com/Michaelangel007/easing
[2] https://easings.net/ — that's just CSS stuff
[3] https://medium.com/swlh/youre-using-lerp-wrong-73579052a3c3
- Code Poetry: Easing Tutorial and Optimizations (2017)
-
Kudos for the Cheat Sheet
I didn't start JavaScript programming until 8 years ago. I use JavaScript for to augment HTML and for demos and graphics -- which I see the former is broken on GitHub.
-
My Diablo 2 Cheat Sheet
I played around with some easing functions but it didn't seem to make much difference -- probably due to me missing/misunderstanding the transitions in css.
-
Is it just me, or is it not totally obvious why most indie games just fail miserably??
As someone who has has shipped 12 games, that's not true at all IMO. Here is an example of beautiful code.
What are some alternatives?
easings.net - Easing Functions Cheat Sheet
d2_cheat_sheet - Diablo 2 Cheat Sheet for Runes and Runewords
apple2_hgr_font_tutorial - Apple ][ //e HGR Font Tutorial
d2-stash-organizer - Diablo 2 Collection manager
minutes-of-javascript - ⭐ Collection of Javascript snippets to make you discover new exciting features, useful tips or anything that will give you a better understanding of the subtleties of JS.