added rgb mode with a 25% chance, changed random colour to be 25% chance

This commit is contained in:
Neko 2023-09-11 11:46:03 +02:00
parent 57cd3c5f83
commit c61dda6ed8

View File

@ -1,3 +1,15 @@
if(Math.random()>0.9){ color = 0
document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)" function colorRotate(){
color += 10
color = color%360
document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+color+"deg) saturate(7) brightness(100%)"
}
if( Math.random() > 0.5){
if( Math.random() > 0.9){
document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)"
} else {
setInterval(colorRotate, 50)
}
} }