Skip to content

davidmarkclements/hsl_rgb_converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%