Include timer.min.js wherever you need it. Call the timer.start(duration) function. Every seconds, a call to instance.callback will be made, with a boolean in parameter which indicates if the timer ...
This is an extra, optional lesson that is not officially a part of the p5.js curriculum. If you would like to teach this lesson, our recommendation would be: * **Earliest:** You could teach this ...