Let’s play around with the canvas! What a great API!

As usual, I don’t want to explain anything unnecessary. Just play with the demo. Clone my repo if you are interested.

I hope my hobby doesn’t conflict with yours. I don’t mind getting into fistfight to resolve it (kidding).

I hope the code explain itself. Thanks for reading.

Markup

<!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>HTML5 Canvas</title>
  </head>
  <body>
  <canvas id="draw" width="800" height="800"></canvas>
  <script src="canvas.js"></script>
  <style>
    html, body {
      cursor: url("/images/personal_life.png"), auto;
      margin:0;
    }
  </style>
  </body>

JavaScript