Package Exports
- float-rgb2hsl
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (float-rgb2hsl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
float-rgb2hsl
Converts [R,G,B] to [H,S,L].
var rgb2hsl = require('float-rgb2hsl')
var rgb = [0.375, 0.625, 0.625]
var hsl = rgb2hsl(rgb)
// -> [0.5, 0.25, 0.5]
All input/output uses the range [0 .. 1] for consistency and composition with other modules.
Usage
hsl = rgb2hsl(rgb)
Takes the rgb
float array [R, G, B]
and returns a [H, S, L]
float representation.
License
MIT, see LICENSE.md for details.