feat: smart animation mode

This commit is contained in:
Asaki Yuki 2026-01-26 15:35:55 +07:00
parent 7534a613cb
commit 1114828000
11 changed files with 207 additions and 44 deletions

View file

@ -1,10 +1,22 @@
import { Animation, AnimType } from ".."
import { AnimationSize } from ".."
const animation = new Animation(
AnimType.OFFSET,
const animation = AnimationSize(
"smooth_loop",
{
from: [0, 0],
to: [100, 100],
to: [10, 10],
duration: 1.5,
},
123,
).setLoop(false)
{
to: [1, 1],
},
1,
{
from: [10, 10],
to: [20, 20],
},
{
to: [1, 1],
},
).setLoop(true)
console.log(animation)