# float-hsl2rgb

> converts [H,S,L] to [R,G,B]

Latest version **1.0.2** (published 2015-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install float-hsl2rgb
pnpm add float-hsl2rgb
yarn add float-hsl2rgb
bun add float-hsl2rgb
```

## 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.2 |
| Published | 2015-04-22 |
| First published | 2015-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | hsl, rgb, hue, sat, saturation, lightness, light, brightness, hsb, rgba, color, red, blue, green, convert, conversion, conversions, colors |

## Links

- npm: https://www.npmjs.com/package/float-hsl2rgb
- Repository: https://github.com/mattdesl/float-hsl2rgb
- Issues: https://github.com/mattdesl/float-hsl2rgb/issues
- npm.io page: https://npm.io/package/float-hsl2rgb

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-04-22
- 1.0.1 — 2015-04-20
- 1.0.0 — 2015-04-20

## README

# float-hsl2rgb

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

Converts [H,S,L] to [R,G,B]. 

```js
var hsl2rgb = require('float-hsl2rgb')

var hsl = [180/360, 0.25, 0.50]

var rgb = hsl2rgb(hsl)
// -> [0.375, 0.625, 0.625]
```

All input/output uses the range [0 .. 1] for consistency and composition with other modules.

## Usage

[![NPM](https://nodei.co/npm/float-hsl2rgb.png)](https://www.npmjs.com/package/float-hsl2rgb)

#### `rgb = hsl2rgb(hsl)`

Takes the `hsl` float array `[H, S, L]` and returns an `[R, G, B]` float representation.

## Motivation

This was adapted from @harthur's wonderful [color-convert](https://github.com/harthur/color-convert) module. Often I found myself only needing one function rather than all of them, and consistent input/output lends well to composition with other modules and WebGL. 

## License

MIT, see [LICENSE.md](http://github.com/mattdesl/float-hsl2rgb/blob/master/LICENSE.md) for details.

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