Version 3.18.1
Show:

color-hsl Module

User Guide & Examples

Available since 3.8.0

Color provides static methods for color conversion to hsl values.

Y.Color.toHSL('f00'); // hsl(0, 100%, 50%)
            
            Y.Color.toHSLA('rgb(255, 255, 0'); // hsla(60, 100%, 50%, 1)

This module provides the following classes: