-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Animation Handling in Rust Animation
- Extracted animation logic from Actor into a separate Animation struct. - Replaced direct animation methods in Actor with set_animation() to use the new Animation struct. - Updated examples (ani.rs, easing_functions.rs, flex_ui.rs, picture_viewer.rs) to use the new Animation struct instead of direct animation methods in Actor. - Removed animation-related fields and methods from Actor, simplifying its implementation. - Added a new animation module to encapsulate animation functionalities.
- Loading branch information
Showing
6 changed files
with
38 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.