minutes-of-javascript
easing
minutes-of-javascript | easing | |
---|---|---|
2 | 5 | |
335 | 106 | |
- | - | |
0.0 | 1.8 | |
about 3 years ago | about 1 year ago | |
JavaScript | 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.
minutes-of-javascript
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?
30-seconds-of-interviews - A curated collection of common interview questions to help you prepare for your next interview.
d2_cheat_sheet - Diablo 2 Cheat Sheet for Runes and Runewords
snipsnap - Speed up your development with a powerful set of tools
apple2_hgr_font_tutorial - Apple ][ //e HGR Font Tutorial
carbonara - API for carbon
d2-stash-organizer - Diablo 2 Collection manager
intersectionObserverApi - Basic examples created in React using the intersection observer API
zmooth - smoothly interpolate values
embidify - A Discord embed builder with Svelte and tailwind css
screenshot-workflow - This workflow will run a local server in a GitHub action, take screenshots using Playwright, upload those screenshots to Imgur, and post them as a comment on an issue or pull request.