Answer the question
In order to leave comments, you need to log in
HTML5 animation in canvas with JavaScript
How to implement animation on canvas in HTML5?
Is it just to set a time interval after which each time the function will be called, which in turn will re-draw the contents of the canvas, or is there a better way?
Answer the question
In order to leave comments, you need to log in
Usually, you simply specify an interval and a drawing function that will be called according to the specified interval.
Here is a good tutorial on animation in canvas
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question