diff --git a/data/scripts/colors.js b/data/scripts/colors.js index c74ddb61..31d7e1b6 100644 --- a/data/scripts/colors.js +++ b/data/scripts/colors.js @@ -1,15 +1,15 @@ //Cycles through a rainbow! setInterval(changeColor, 100) -var regularAdjust = 60 -var lightAdjust = 100 -var lightLead = 128 +var regularAdjust = 0//60 +var lightAdjust = 64//100 +var lightLead = 255 var currentColorIndex = 0 function changeColor() { var colors = indexToColor(currentColorIndex) 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 += 153 / 360 //The second number is how many seconds it takes to do a full loop + currentColorIndex += 153 / 60 //The second number is how many seconds it takes to do a full loop } function indexToColor(colorIndex) { var red = 0, green = 0, blue = 0 diff --git a/data/site/images/lowpoly.png b/data/site/images/lowpoly.png index c11295a8..2d6e1d17 100644 Binary files a/data/site/images/lowpoly.png and b/data/site/images/lowpoly.png differ