Closed marnec closed 4 years ago
Because you're passing RGB values to hsl.rgb()
which means convert hsl
to rgb
- the functions are structured so that require('color-convert').from_model.to_model(...)
.
You need to invert the function calls:
console.log(convert.hsl.rgb(...convert.rgb.hsl(r,g,b)))
input:
output: