Struggling to implement a pause/delay within my for-loop

in theory, you can let your sketch run in a secondary thread. The thread would update an image with the output.

The primary Sketch would then display this image. With this (and some timers) you can achieve an animation with for-loops too. But I think the way above (using that draw() is looping) is much easier.

Chrisir

cf. Update screen during draw() without thread? (for recursion though)

1 Like