Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 379 Bytes
<canvas width=100 height=100></canvas>
<script src="build/build.js"></script>
<script>
var canvas = document.querySelector('canvas');
var autoscale = require('autoscale-canvas');
var ctx = canvas.getContext('2d');
autoscale(canvas);
ctx.strokeRect(0, 0, 100, 100);
ctx.arc(50, 50, 25, 0, Math.PI * 2, false);
ctx.stroke();
ctx.fillText('50%', 40, 55);
</script>