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

Callbacks with AniSequence #17

Closed
narkai opened this issue Sep 21, 2016 · 1 comment
Closed

Callbacks with AniSequence #17

narkai opened this issue Sep 21, 2016 · 1 comment

Comments

@narkai
Copy link

narkai commented Sep 21, 2016

It would be very useful to have callbacks within sequences.

seq.setCallback("myFunction");

This would allow to inject logic inside animations.

Maybe it's already possible but I didn't catch it ?

Thanks for the library 👍

@narkai narkai closed this as completed Sep 21, 2016
@narkai narkai reopened this Sep 21, 2016
@b-g
Copy link
Owner

b-g commented Sep 21, 2016

Thanks! I'm afraid but this is not planned ...

However a workaround which should do the trick, is to add a callback to an animation of the sequence. Check e.g.:

https://github.com/b-g/Ani/blob/master/examples/Ani_Sequence_Loop/Ani_Sequence_Loop.pde#L48

Hope that helps! Best, Benedikt

@b-g b-g closed this as completed Sep 21, 2016
This issue was closed.
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

No branches or pull requests

2 participants