Skip to content
Retina-enable an HTML Canvas element
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.npmignore
History.md
Makefile
Readme.md
component.json
index.js
package.json
test.html

Readme.md

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

Something went wrong with that request. Please try again.