Demo First :)
A quick google search should be enough to understand what html5 canvas is
But you should consider reading the documentation of mdn regarding what canvas api is.
rest is written in vanilla javascript
Thanks to Franks Laboratory