EasingAnimation
An animation for easing transitions between two points.
-
EasingAnimation(start: Vec2, end: Vec2, duration: float, ease_func: Callable[[float], float])
Properties
Name | Description | Type |
---|---|---|
is_done | Indicates if the animation is complete | bool |
Methods
Step
step() → Vec2
Advance the animation by one step.
Returns
Vec2
: The current position of the animation.
Pause
pause() → None
Pause the animation.
Resume
resume() → None
Resume the animation.
Restart
restart() → None
Restart the animation.
Reverse
reverse() → None
Reverse the direction of the animation.