A Pen by 0gust1

This awesome code was written by 0gust1, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 0gust1 ©
  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>A Pen by  0gust1</title>
      <link rel="stylesheet" href="css/style.css">



  <img id="planes" src="http://i42.tinypic.com/1zz48sn.jpg">
<canvas id="cnvs"></canvas>

    <script  src="js/index.js"></script>



/*Downloaded from https://www.codeseek.co/0gust1/a-pen-by-0gust1-LGjbzX */

/*Downloaded from https://www.codeseek.co/0gust1/a-pen-by-0gust1-LGjbzX */
var image = document.getElementById('planes');

function draw() {
    var ctx = document.getElementById('cnvs').getContext('2d');
    var img = new Image(image);
    ctx.drawImage(image, 0, 0, 500, 500);