Skip to content

Commit 814cd8a

Browse files
cdoublevsvgeesus
authored andcommitted
[css-color-4] <hue> is already normalized at parse time
1 parent 02ecea2 commit 814cd8a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

css-color-4/hslToRgb.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
* @return {number[]} Array of sRGB components; in-gamut colors in range [0..1]
66
*/
77
function hslToRgb(hue, sat, light) {
8-
hue = hue % 360;
9-
10-
if (hue < 0) {
11-
hue += 360;
12-
}
138

149
sat /= 100;
1510
light /= 100;

0 commit comments

Comments
 (0)