Open gwhitney opened 2 years ago
It's worth checking whether p5 has any standard facilities for this sort of thing. There are of course functions noloop() and loop() that stop and resume the drawing loop. If we have play/pause indicators, then those visualizers that "draw all at once" should end up automatically showing in the play/pause indicator that the "action has stopped" -- and maybe play is grayed out because there's nothing more to play.
Planned for finalizing by beta.
For many visualizers, when they are running, there's a clear notion of pausing/resuming the visualization, and of resetting it to start from the beginning. So we could display standard (music) player controls in the corner, say, so that when you hit the ||/|> play/pause button it would stop or resume, and when you hit the |<< big rewind button it would go back to the start. (Some visualizers might have a use for a fast-forward button as well, to speed up the action; is there a standard "player" button for slowing down the action?) I suppose some visualizers could even run backward, i.e., support a little rewind <| button.
Such controls could be useful in light of #68; if the visualizer didn't restart when the user wanted it to, it would be easy to make it do that.