A class for animating values over time using easing functions.
Tween(ease_func: Callable[[float], float], duration: float) → TweenTween(ease_func: Callable[[float], float], duration: float) → Tween
A class for animating values over time using easing functions.
| Name | Description | Type |
|---|---|---|
current_pos | Get the current interpolated position snapshot. | Vec2 |
end_pos | The ending position of the animation. | Vec2 |
is_done | Check whether the animation has finished. | bool |
start_pos | The starting position of the animation. | Vec2 |
pause() → Nonepause() → NonePause the animation's progression.
restart() → Nonerestart() → NoneRestart the animation from the beginning.
resume() → Noneresume() → NoneResume the animation from its current state.
reverse() → Nonereverse() → NoneReverse the direction of the animation.