Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add elapsed time to Animation #23

Merged
merged 1 commit into from
Oct 19, 2018
Merged

Conversation

ianliu
Copy link
Contributor

@ianliu ianliu commented Oct 19, 2018

Disclaimer: Hello! This is my first PR to this repository, hope it is useful.

I was implementing flame-example with the latest release of Flame (0.9.4), and the Animation.lifeTime property doesn't exists anymore. I tried swapping with the .clock property, but I think it changed semantics to count the elapsed time since last frame, so I ended up creating another property, .ellapsed, to indicate how long (in seconds) an animation has been running. This allows flame-example to work again.

@luanpotter
Copy link
Member

That's a great addition, thanks a lot! Makes perfect sense to have that property.

Also, if you have any progress on updating flame-example to the latest version, please let me know or open a PR there, it's long overdue to update that repository :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants