Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<body>
  <canvas id="myCanvas" width="200" height="200" style="border:1px solid #000000;"></canvas>
    <script> "use strict"
      var canvas = document.getElementById('myCanvas');
      var context = canvas.getContext('2d');
    context.beginPath();
    context.rect(50,50,100,100);
    context.fill();
  </script>
</body>
<head><meta name="description" content="E0 - first canvas"></head>
<!-- CS559 Tutorial by Michael Gleicher -->
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x