Skip to content

thibauts/canvas-from-ndarray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Updates a canvas RGBA pixels from an ndarray

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published