code for canvas in html5 code example Example: html5 canvas I made a library for thr HTML5 canvas. https://jsfiddle.net/Catking/g0z6o1fb/