autoscale-canvas

Retina-enable an HTML canvas

npm install autoscale-canvas
8 downloads in the last week
32 downloads in the last month

Autoscale-canvas

Retina-enable an HTML canvas according to devicePixelRatio.

Installation

$ component install component/autoscale-canvas

API

var autoscale = require('autoscale-canvas');
autoscale(document.querySelector('canvas'));

License

MIT

npm loves you