EasingAnimation

An animation for easing transitions between two points.

  • EasingAnimation(start: Vec2, end: Vec2, duration: float, ease_func: Callable[[float], float])

Properties


NameDescriptionType
is_doneIndicates if the animation is completebool

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.