Skip to content

Commit ba76304

Browse files
authored
Merge pull request #43 from IPdotSetAF/42-bug-firefox-rainbow
fixed color hue bug on firefox
2 parents 7e8316f + 6de312e commit ba76304

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,7 @@ window.onload = function () {
907907
break;
908908
}
909909
}
910-
911-
return "hsl(" + hue + ", 100%, " + lightness + "%)";;
910+
return "hsl(" + hue%360 + ", 100%, " + lightness + "%)";
912911
}
913912

914913
function calculateFpsInterval(fps) {

0 commit comments

Comments
 (0)