将hsl()颜色字符串转换为具有每种颜色值的对象
hsl()
hsl 字符串 e.g. hsl(50, 10%, 10%)
e.g. hsl(50, 10%, 10%)
具有每种颜色值的对象
https://www.30secondsofcode.org/js/s/to-hsl-object
toHSLObject('hsl(50, 10%, 10%)'); // { hue: 50, saturation: 10, lightness: 10 } Copy
toHSLObject('hsl(50, 10%, 10%)'); // { hue: 50, saturation: 10, lightness: 10 }
将
hsl()颜色字符串转换为具有每种颜色值的对象