# rgba-to-canvas

> gets a new Canvas from the given RGBA pixel array

Latest version **1.0.1** (published 2015-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install rgba-to-canvas
pnpm add rgba-to-canvas
yarn add rgba-to-canvas
bun add rgba-to-canvas
```

## 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.1 |
| Published | 2015-07-07 |
| First published | 2015-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | rgba, pixels, pixel, rgb, data, uint8, uint8array, from, canvas, to, 2d, image, data, imagedata, putimagedata, context |

## Links

- npm: https://www.npmjs.com/package/rgba-to-canvas
- Repository: https://github.com/Jam3/rgba-to-canvas
- Issues: https://github.com/Jam3/rgba-to-canvas/issues
- npm.io page: https://npm.io/package/rgba-to-canvas

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-07-07
- 1.0.0 — 2015-07-07

## README

# rgba-to-canvas

[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

Turns a flat array of RGBA pixels, like those in a `Uint8ClampedArray`, into a new Canvas.

## Example

```js
var rgbaToPixels = require('rgba-to-canvas')

var canvas = rgbaToPixels(pixels, [ 128, 128 ])
document.body.appendChild(canvas)
```

## Usage

[![NPM](https://nodei.co/npm/rgba-to-canvas.png)](https://www.npmjs.com/package/rgba-to-canvas)

#### `canvas = rgbaToPixels(array, shape)`

For the given flat `array` of RGBA data (Uint8Array or Uint8ClampedArray), and the `[width, height]` shape, returns a new canvas with the specified pixels.

## License

MIT, see [LICENSE.md](http://github.com/Jam3/rgba-to-canvas/blob/master/LICENSE.md) for details.

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