From 57cd3c5f8317ed037f248945503568f9a3c2349a Mon Sep 17 00:00:00 2001 From: Neko Date: Mon, 11 Sep 2023 11:04:16 +0200 Subject: [PATCH] changed colour to only change with a 10% chance --- assets/js/color.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/color.js b/assets/js/color.js index f4b7f44..cbc8802 100644 --- a/assets/js/color.js +++ b/assets/js/color.js @@ -1 +1,3 @@ -document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)" \ No newline at end of file +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%)" +}