mosaic-4-canvas
v1.0.0
Published
mosaic for canvas
Downloads
1
Readme
Install
$ npm install mosaic-4-canvas
Usage
import mosaic4Canvas from 'mosaic-4-canvas';
const context = canvas.getContext('2d');
const sourceImageData = context.getImageData(0, 0, canvas.width, canvas.height);
const mosaicImageData = mosaic4Canvas(sourceImageData);
context.putImageData(mosaicImageData, 0, 0);