canvas-from-ndarray
Updates a canvas RGBA pixels from an ndarray
Updates a canvas RGBA pixels from a ndarray with shape [width, height, 4]
and with underlying array structure ordered as [R, G, B, A, R, G, B, A, ...]
. If no canvas is provided one is created internally.
Install
$ npm install canvas-from-ndarray
Usage
var canvasFromNdarray = ; var canvas = ; // updates the provided canvas if available