In these chapters we build an analog clock using HTML Canvas.
To start the clock, call the drawClock function at intervals:
The only thing you have to do (to start the clock) is to call the drawClock function at intervals.
Substitute:
With:
![]() |
The interval is in milliseconds. drawClock will be called for each 1000 milliseconds. |
---|