# canvas-from-ndarray

> Updates a canvas RGBA pixels from an ndarray

Latest version **1.0.0** (published 2015-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install canvas-from-ndarray
pnpm add canvas-from-ndarray
yarn add canvas-from-ndarray
bun add canvas-from-ndarray
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-09-27 |
| First published | 2015-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | thibauts |
| Maintainers | thibauts |
| Keywords | ndarray, canvas, pixels |

## Links

- npm: https://www.npmjs.com/package/canvas-from-ndarray
- Repository: https://github.com/thibauts/canvas-from-ndarray
- Issues: https://github.com/thibauts/canvas-from-ndarray/issues
- npm.io page: https://npm.io/package/canvas-from-ndarray

## Dependencies (1)

- [set-canvas-pixels](https://npm.io/package/set-canvas-pixels.md) ^1.0.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-09-27

## README

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
-------

```bash
$ npm install canvas-from-ndarray
```

Usage
-----

```javascript
var canvasFromNdarray = require('canvas-from-ndarray');

var canvas = canvasFromNdarray(arr/*, canvas */); // updates the provided canvas if available
```

---
_Source: https://npm.io/package/canvas-from-ndarray · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
