autoscale-canvas

Retina-enable an HTML canvas

Autoscale-canvas

Retina-enable an HTML canvas according to devicePixelRatio.

$ component install component/autoscale-canvas
var autoscale = require('autoscale-canvas');
autoscale(document.querySelector('canvas'));

MIT