Grab the pixels from a canvas' context, be it 2D or 3D, and return them in an array.
npm install canvas-pixelsGrab the pixels from a canvas' context, be it 2D or 3D, and return them in
an array.

Returns context's pixels in an array – with a 2D context, this will be aUint8ClampedArray, and a webgl context will return a Uint8Array.
Same as above, but without the auto-detection.
MIT. See LICENSE.md for details.