Skip to content
Snippets Groups Projects
Unverified Commit 6a871576 authored by Alex Saveau's avatar Alex Saveau Committed by GitHub
Browse files

Support running an animation N times (#19)

Remove `TweeningType` and split its functionalities between a new `RepeatCount`
controlling the number of repeats of an animation on one hand, and
`RepeatStrategy` controlling the way an animation restarts after a loop ended
on the other hand. This allows more granular control on the type of playback.

Remove the `tweening_type` parameter from `Tween<T>::new()` and replace it with
builder methods `with_repeat_count()` and `with_repeat_strategy()`.

Remove `is_looping()` from all tweenables, which was not implemented for most
of them anyway.
parent fd86ec51
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment