Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 285 Bytes

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