Licence
MIT
Version
1.0.4
Deps
0
Size
57 kB
Vulns
0
Weekly
0
js-webcam
A simple utility for canvas operations.
Using
install from npm
nmp -i js-canvas
you can create a canvas in the document:
import Canvas from 'js-canvas';
here you can create a canvas for any operation.
const width = 800;
const height = 600;
const canvas = Canvas.create(width, height);
also you can put a image data in the create method
const imageData = new ImageData();
const canvas = Canvas.create(width, height, imageData);