1.1.1 • Published 3 years ago

hsl-to-rgb-for-reals v1.1.1

Weekly downloads
35,596
License
ISC
Repository
github
Last release
3 years ago

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

@guischafer/hsl-to-hex@kysthos/hsl-to-hex@luanyat/hsl-to-hex@yekki/hsl-to-hex@elsbury13/hsl-to-hex@usmchessler/hsl-to-hex@viveklakhanpal/hsl-to-hex@vivekraman/hsl-to-hex@vcostin/hls-to-hex@vanessapr85/hsl-to-hex@vitor-dias-94/hsl-to-hex@wangbaolong/hsl-to-hexconvert-color-js@sateeshnpm/hsl-to-hex@smzota/hsl-to-hex@sricarde/hsl-to-hexd3-fgcolor-factoryklonghsl-to-hexhsl-to-hex-simplehsl-to-hex-v2@tomas.tomecek/hsl-to-hex@said.ouarrich/hsl-to-hex@rafaelferreiraxgeeks/hsl-to-hex@rajkumarmurthy/hsl-to-hex@react-18-pdf/root@supegui/hsl-to-hex@sunwinsmile/hsl-to-hex@talimavale/hsl-to-hex@teejsh/hsl-to-hex@testingonlive/hsl-to-hex@sunilsamuel/hsl-to-hex-simple@sukka/0xmyfirstprojectbhageerathmoola@aeciolevy/hsl-to-hex@adimvicky/hsl-to-hex@aguiarfrancisco/hsl-to-hex@akademskig/hsl-to-hex@arunkumar87/hsl-to-hex@andyrunciman/hsl-to-hex@alexniallmalin/hsl-to-hex0xpixel-mask-generator@jewella/hsl-to-hex@jhonalino/hsl-to-hex@icarotav/hsl-to-hex@ialixandroae/hsl-to-hex@harshavs/hsl-to-hex@jrvldam/hls-to-hex@jrvldam/hsl-to-hex@joce344/hsl-to-hex@kamran.zigron/hsl-to-hex@jtgreene/hsl-to-hex@mmusa/hsl-to-hex@lenodeoliveira/hsl-to-hex@lehilds/hsl-to-hex@maximiliano.oliveira.furtado/hsl-to-hex@nightrider__001/hsl-to-hex@nearform/0x@btmango18/hsl-to-hex@c350156378/hsl-to-hex@brunobck/hsl-to-hex@closrks/hsl-to-hex@cliffwang/hls-to-hex-test@codedbypaul/hsl-to-hex@garfieldchou/hsl-to-hex@conada7/hsl-to-hex@d85/hsl-to-hex@davidmarkclements/hsl-to-hex@imhilla/hsl-to-hex@karpov_nick/hsl-to-hex@lukaszewczak/hsl-to-hex@macfrankie/hsl-to-hex@madjava/hsl-to-hex@kronosgr/hsl-to-hex@lark31/hsl-to-hex@nythyatdora/hsl-to-hex@nomercy235/hsl-to-hex@paulobontempo/hsl-to-hex@pilaas/hsl-to-hex@dfarlow/hsl-to-hex@djesu/hsl-to-hex@douismyheart/hsl-to-hex
1.1.1

3 years ago

1.1.0

7 years ago

1.0.0

7 years ago