This commit is contained in:
Kyle
2019-11-29 17:29:26 -08:00
parent 8b0611b6f8
commit 5bbe1ead04
7 changed files with 158 additions and 499 deletions

View File

@@ -9,7 +9,7 @@ function changeColor() {
document.documentElement.style.setProperty("--shifting-color-1", "rgb(" + parseInt(colors[0] + regularAdjust) + "," + parseInt(colors[1] + regularAdjust) + "," + parseInt(colors[2] + regularAdjust) + ")")
var lightColors = indexToColor(currentColorIndex + lightLead)
document.documentElement.style.setProperty("--shifting-color-1-light", "rgb(" + parseInt(lightColors[0] + lightAdjust) + "," + parseInt(lightColors[1] + lightAdjust) + "," + parseInt(lightColors[2] + lightAdjust) + ")")
currentColorIndex += colorJumpSize = 153 / 120 //The second number is how many seconds it takes to do a full loop
currentColorIndex += 153 / 360 //The second number is how many seconds it takes to do a full loop
}
function indexToColor(colorIndex) {
var red = 0, green = 0, blue = 0