Converts [H,S,L] to [R,G,B].
var hsl2rgb =var hsl = 180/360 025 050var rgb =// -> [0.375, 0.625, 0.625]
All input/output uses the range [0 .. 1] for consistency and composition with other modules.
rgb = hsl2rgb(hsl)
hsl float array
[H, S, L] and returns an
[R, G, B] float representation.
This was adapted from @harthur's wonderful 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.
MIT, see LICENSE.md for details.