A simple utility for canvas operations.
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);