The Canvas API provides a means for drawing graphics via JavaScript and the HTML element. Among other things, it can be used for animation, game graphics, data visualization, photo manipulation, and real-time video processing.| MDN Web Docs
Game Loop| gameprogrammingpatterns.com