The <canvas> element is an HTML element that renders graphics created with JavaScript’s Canvas API.
Utilizing the Canvas API behind the scenes, the p5.js library provides many built-in drawing functions that simplify drawing to the HTML <canvas> on the fly using JavaScript.