From b165a6e39b2e00507a2515332b1d0737583d91fb Mon Sep 17 00:00:00 2001 From: yuukiwww <0xv75b42326631e@au.com> Date: Thu, 26 Sep 2024 11:40:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8D=98=E8=89=B2=E3=81=A7=E3=81=AF=E9=A3=BD?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=81=AE=E3=81=A7=E8=89=B2=E3=82=92=E3=83=A9?= =?UTF-8?q?=E3=83=B3=E3=83=80=E3=83=A0=E3=81=AB=E5=A4=89=E6=9B=B4=20Closes?= =?UTF-8?q?=20#11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/src/js/songselect.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 6de22d6..1fd1ea3 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -17,6 +17,11 @@ class SongSelect{ this.canvas.style.imageRendering = "pixelated" } + let rand = () => { + let color = Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0"); + return `#${color}` + } + this.songSkin = { "selected": { background: "#ffdb2c", @@ -85,10 +90,10 @@ class SongSelect{ }, "default": { sort: null, - background: "rgba(0,0,0,0)", - border: ["rgba(255,127,212,.8)", "rgba(255,0,255,.6)"], - outline: "rgba(0,0,0,.4)", - infoFill: "rgba(0,0,0,0)" + background: `${rand()}`, + border: [`${rand()}`, `${rand()}`], + outline: `#000000`, + infoFill: `${rand()}` } }