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>
<link href="https://fonts.googleapis.com/css?family=Princess+Sofia" rel="stylesheet">
<script src="https://rawgit.com/kangax/fabric.js/master/dist/fabric.js"></script>
</head>
<div style="font-family:'Princess Sofia'">hi</div>
<body style="font-family:'Princess Sofia'">
 <div class="canvas-wrapper">
    <canvas id="canvas"></canvas>
  </div>
</body>
<button onclick="getBoundingBox(ctx, 0, 0, 850, 450)">Get Boudning Box</button>
<button onclick="console.log(bbox.width + ' x ' + bbox.height)">H*W</button>
<button onclick="drawBoundingBox(ctx, bbox)">Draw Boudning Box</button>
</html>
Output

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

Dismiss x
public
Bin info
ensabahonepro
0viewers