Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <title>Home Page</title>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
  </head>
<body>
<div  ng-app="myapp" ng-controller="myctrl">
<canvas id="canvas" width="2100" height="900" 
    style="border: 1px solid #d3d3d3;">
</canvas>
</div>
<script>
  var $scope;
  var app = angular.module('myapp', []);
  app.controller("myctrl", function($scope){
    var c1 = document.getElementById("canvas");
    var ctx = c1.getContext("2d");
    ctx.beginPath();
    ctx.arc(500, 500, 50, 0, 2 * Math.PI, false);
    ctx.lineWidth = 0.2;
    ctx.stroke();
    ctx.fill();
  })
</script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers