rainbows :3

This commit is contained in:
Julian Brammer 2024-08-23 23:59:39 +02:00
parent 4f394a5122
commit 29e29c565d

View File

@ -1,18 +1,26 @@
const secondaryColors = [ // const secondaryColors = [
// "rgb(240, 240, 240)", // // "rgb(240, 240, 240)",
// "rgb(136, 139, 141)", // // "rgb(136, 139, 141)",
"rgb(224, 231, 34)", // "rgb(224, 231, 34)",
"rgb(255, 173, 0)", // "rgb(255, 173, 0)",
"rgb(244,54,76)", // "rgb(244,54,76)",
// "rgb(219, 62, 177)", // // "rgb(219, 62, 177)",
"rgb(250, 150, 250)", // "rgb(250, 150, 250)",
"rgb(250, 150, 150)", // "rgb(250, 150, 150)",
"rgb(242, 172, 185)", // "rgb(242, 172, 185)",
"rgb(0, 138, 216)", // "rgb(0, 138, 216)",
"rgb(0, 178, 169)", // "rgb(0, 178, 169)",
"rgb(88, 188, 64)", // "rgb(88, 188, 64)",
"rgb(173, 223, 179)" // "rgb(173, 223, 179)"
]; // ];
//
// function setRandomSecondaryColor() {
// const randomColor = secondaryColors[Math.floor(Math.random() * secondaryColors.length)];
// document.documentElement.style.setProperty('--secondary-color', randomColor);
// }
//
// setRandomSecondaryColor();
let hue = 200; let hue = 200;
const colorChangeInterval = 150; const colorChangeInterval = 150;