You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you need to specify the individual frame duration, in order to specify the total duration some math is required to calculate based on the number of frames. We should support a convenient way of specifying a total duration.
Proposal
constanim=newex.Graphics.Animation({totalDuration: 2000,// in ms});
If totalDuration is specified, then frameDuration should be ignored.
The text was updated successfully, but these errors were encountered:
eonarheim
added
Hacktoberfest
Issues marked for the community Hacktoberfest event https://hacktoberfest.digitalocean.com/
and removed
stale
This issue or PR has not had any activity recently
labels
Oct 1, 2021
…on (#2065)
Closes#1892
## Changes:
- `ex.Animation` now support `totalDuration` that will calculate automatically each frame duration based on how many frames have.
- Added a Storybook to check the behavior visually of the `frameDuration` property
- Added a Storybook to check the behavior visually of the `totalDuration` property
- Included the test to validate this new functionality
Context
Currently you need to specify the individual frame duration, in order to specify the total duration some math is required to calculate based on the number of frames. We should support a convenient way of specifying a total duration.
Proposal
If
totalDuration
is specified, thenframeDuration
should be ignored.The text was updated successfully, but these errors were encountered: