@clef/canvas-tools
v1.0.0
Published
Tools for working with a DOM canvas
Downloads
17
Readme
canvas-tools
Tools for working with a DOM canvas
Getting Started
Install it via npm:
npm install @clef/canvas-tools
And include in your project:
import canvasTools from '@clef/canvas-tools'
Usage
canvasTools.createHiDPICanvas(width, height)
Creates a HiDPI canvas compatible with both retina and non-retina devices.
Development
To start development, run:
git clone [email protected]:clef/canvas-tools.git canvas-tools
cd canvas-tools
npm install
npm run test
License
MIT