-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for AnimationTimer #7
Comments
Cool, thanks! My goal was to build sth like https://github.com/Dierk/groovyfx/blob/master/groovyfx/src/demo/groovy/AnimationDemo.groovy But so we have sth to start with. Thanks a lot sent from:mobile
|
I am wondering why this works. Probably because the forced value is not used and hence no cast is actually done. Certainly, the cast to |
You are right. No idea what I was thinking. |
In order to use
javafx.animation.AnimationTimer
you have to subclass it and override its handle method. This is not an option if you want to use it directly from frege. So I implemented a 'builder' where you can just pass the function you want to be called on every frame:Now you can use it like this:
If you could add something similar to your fx utils module, I could drop my version.
The text was updated successfully, but these errors were encountered: