HTML5 Game - Canvas Shape Vertical arrow

Description

Vertical arrow

Demo

ResultView the demo in separate window

<!DOCTYPE html>
   <head>
      <style> 
         body {/*from   w  ww.  jav  a  2  s  . c  o  m*/
            background: #dddddd;
         }

         #canvas {
            position: absolute;
            left: 0px;
            top: 0px;
            margin: 20px;
            background: #ffffff;
            border: thin solid #aaaaaa;
         }
      </style>
   </head>

  <body>
    <canvas id='canvas' width='1500' height='1500'>
      Canvas not supported
    </canvas>

    <script>
let context = document.querySelector('#canvas').getContext('2d');

      context.beginPath(); 
      context.moveTo(60, 0); 
      context.lineTo(60, 153); 
      context.moveTo(60, 173);    
      context.lineTo(60, 375); 
      context.moveTo(65, 370); 
      context.lineTo(60, 375); 
      context.lineTo(55, 370); 
      context.strokeStyle = "#000"; 
      context.stroke(); 
       </script> 

      </script>
  </body>
</html>

Related Topic