Timers - Stop

This example starts a timer that draws circles, then stops the timer when the mouse is clicked.

setTimer and stopTimer have a few different options, which you can read about here.