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
It would be nice if you could supply own update method. In my use case I am using the accelerometer to govern progress (e.g. shaking phone increases velocity, and thus progress along line. progress is not tied to time or frames, but to user's shake movement).
By allowing users to supply their own update function, the lib gets more flexible and there's an opportunity to reduce code duplication between animate_frame and animate_duration.
You can provide some higher-order functions to replace the internal animate_frame/duration functions:
It would be nice if you could supply own update method. In my use case I am using the accelerometer to govern progress (e.g. shaking phone increases velocity, and thus progress along line. progress is not tied to time or frames, but to user's shake movement).
By allowing users to supply their own update function, the lib gets more flexible and there's an opportunity to reduce code duplication between animate_frame and animate_duration.
You can provide some higher-order functions to replace the internal animate_frame/duration functions:
then you could use metronome like so:
The text was updated successfully, but these errors were encountered: