# ndpixels-convert

> convert ndpixels between color spaces

Latest version **1.1.0** (published 2016-02-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install ndpixels-convert
pnpm add ndpixels-convert
yarn add ndpixels-convert
bun add ndpixels-convert
```

## 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.1.0 |
| Published | 2016-02-28 |
| First published | 2015-07-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ahdinosaur |
| Maintainers | ahdinosaur |
| Keywords | ndpixels, rgb, hsl, hsv, rgba, convert, pixel, ndarray |

## Links

- npm: https://www.npmjs.com/package/ndpixels-convert
- Repository: https://github.com/livejs/ndpixels-convert
- Homepage: https://github.com/livejs/ndpixels-convert#readme
- Issues: https://github.com/livejs/ndpixels-convert/issues
- npm.io page: https://npm.io/package/ndpixels-convert

## Dependencies (2)

- [cwise](https://npm.io/package/cwise.md) ^1.0.5
- [color-space](https://npm.io/package/color-space.md) ^1.14.3

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-02-28
- 1.0.6 — 2015-07-05
- 1.0.5 — 2015-07-05
- 1.0.4 — 2015-07-05
- 1.0.3 — 2015-07-04

## README

# ndpixels-convert

convert ndpixels between color spaces.

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

## install

with [npm](http://npmjs.org), do:

```
npm i --save ndpixels-convert
```

## usage

```
var ndarray = require('ndarray')
var convert = require('ndpixels-convert');
var hslToRgb = convert('hsl', 'rgb')

var hsl = Ndarray([0, 100, 100], [1, 3])
var rgb = Ndarray([255, 0, 0], [1, 3])
t.deepEqual(hslToRgb(hsl).data, rgb.data)
```

check out [tests](https://github.com/livejs/ndpixels-convert/blob/master/test.js)

## license

ISC

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