Turns a flat array of RGBA pixels, like those in a Uint8ClampedArray
, into a new Canvas.
var rgbaToPixels = require('rgba-to-canvas')
var canvas = rgbaToPixels(pixels, [ 128, 128 ])
document.body.appendChild(canvas)
For the given flat array
of RGBA data (Uint8Array or Uint8ClampedArray), and the [width, height]
shape, returns a new canvas with the specified pixels.
MIT, see LICENSE.md for details.