Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/autoscale-canvas

Retina-enable an HTML Canvas element
https://github.com/component/autoscale-canvas

Last synced: 12 days ago
JSON representation

Retina-enable an HTML Canvas element

Awesome Lists containing this project

README

        

# Autoscale-canvas

Retina-enable an HTML canvas according to `devicePixelRatio`.

## Installation

```
$ component install component/autoscale-canvas
```

## API

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

## License

MIT