Skip to content

Instantly share code, notes, and snippets.

View krapjost's full-sized avatar
🐢
...

Gidoong Park krapjost

🐢
...
View GitHub Profile
@krapjost
krapjost / easing.ts
Created April 23, 2023 02:39
easing function
type EaseFunc = (t: number) => number
interface Easing {
[key: string]: EaseFunc
}
export const easing: Easing = {
// no easing, no acceleration
linear: (t) => t,
// accelerating from zero velocity