hsl-to-rgb-for-reals
simple HSL to RGB converter
Last updated 7 years ago by davidmarkclements .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install hsl-to-rgb-for-reals 
SYNC missed versions from official npm registry.

hsl-to-rgb-for-reals

##HSL -> RGB Convert HSL values (hue, saturation, light) to RGB values (red, green, blue). Expected values: Hue: [0, 360[ Saturation: [0, 1] Lightness: [0, 1]

For Reals?

Author forgot to export their function in the hsl-to-rgb module, there's a PR that's been sitting for over a year (at time of writing). Let's use hsl-to-rgb-for-reals until original author merges. Huzzah!

Funny story - I forgot to module export in v1.0.0 too! Don't use 1.0.0.

Getting started:

npm install hsl-to-rgb-for-reals --save

Use:

var converter = require('hsl-to-rgb-for-reals');

var slateBlue = converter(223, 0.44, 0.56);

console.log(slateBlue);
// logs [93, 121, 192]

Problems

Bug the original author :D https://github.com/kayellpeee/hsl_rgb_converter/issues

Acknowledgements

Current Tags

  • 1.1.1                                ...           latest (7 years ago)

3 Versions

  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 19
Today 0
This Week 3
This Month 19
Last Day 3
Last Week 3
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE