forked from GithubMirrors/cardconjurer
		
	style
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| //Cycles through a rainbow! | ||||
| setInterval(changeColor, 100) | ||||
| setInterval(changeColor, 250) | ||||
| var regularAdjust = 0//60 | ||||
| var lightAdjust = 64//100 | ||||
| var lightLead = 255 | ||||
| @@ -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 += 153 / 180 //The second number is how many seconds it takes to do a full loop | ||||
| 	currentColorIndex += 2.5 * 153 / 180 //The second number is how many seconds it takes to do a full loop | ||||
| } | ||||
| function indexToColor(colorIndex) { | ||||
| 	var red = 0, green = 0, blue = 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle