draw-to-canvas
draw from one canvas to another with some sanity checks
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install draw-to-canvas --save
Usage
var moduleName = ; let canvas1 = documentlet canvas2 = document // draw from canvas1 to canvas2 // canvasTo // draw from canvas1 to canvas2 at different origin // canvasTo
API
drawToCanvas(from:canvas/image, to:canvas/ctx, pos:arr)
Arguments
- from - a canvas element or image
- to - a canvas element or canvas context
License
MIT