Skip to content

component/autoscale-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Retina-enable an HTML Canvas element

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •