Skip to content

Commit

Permalink
[css-color-4] <hue> is already normalized at parse time
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoublev authored and svgeesus committed Jun 18, 2024
1 parent 02ecea2 commit 814cd8a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions css-color-4/hslToRgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
* @return {number[]} Array of sRGB components; in-gamut colors in range [0..1]
*/
function hslToRgb(hue, sat, light) {
hue = hue % 360;

if (hue < 0) {
hue += 360;
}

sat /= 100;
light /= 100;
Expand Down

0 comments on commit 814cd8a

Please sign in to comment.