1.0.0 • Published 9 years ago
canvas-from-ndarray v1.0.0
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 = require('canvas-from-ndarray');
var canvas = canvasFromNdarray(arr/*, canvas */); // updates the provided canvas if available
1.0.0
9 years ago