Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<canvas id="canvas">;
</body>
</html>
 
#canvas {
  width: 200px
    height: 100px;
}
 
var ctx = document.getElementById("canvas").getContext("2d");  
    ctx.globalAlpha = 0.2;
    ctx.beginPath();
    ctx.arc(50, 50, 25, 0, 2*Math.PI, false);
    ctx.fill();
    ctx.closePath();
    ctx.beginPath();
    ctx.arc(65, 65, 20, 0, 2*Math.PI, false);
    ctx.fill();
    ctx.closePath();
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers