HTML Canvas

The HTML Canvas element creates an area in which you can draw and manipulate pixels individually to create custom shapes and complex animations. You interact with the canvas using a number of JavaScript methods. Source.

Creating a canvas-based drawing is really quite simple, you create the canvas element in an HTML document <canvas id = “canvas” height = “200px” width = “200px”></canvas> and then you target it with JS like so: let canvas — document.querySelector(“#canvas”)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store