default song color to random

This commit is contained in:
Your Name 2023-08-24 22:33:56 +09:00 committed by yuuki
parent b0955af4b9
commit a4b6cb84a1

View File

@ -17,6 +17,7 @@ class SongSelect{
this.canvas.style.imageRendering = "pixelated"
}
const defaultColor = Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0");
this.songSkin = {
"selected": {
background: "#ffdb2c",
@ -72,10 +73,10 @@ class SongSelect{
},
"default": {
sort: null,
background: "#ececec",
border: ["#fbfbfb", "#8b8b8b"],
outline: "#656565",
infoFill: "#656565"
background: `#${defaultColor}`,
border: [`#${defaultColor}`, `#${defaultColor}`],
outline: `#000000`,
infoFill: `#${defaultColor}`
}
}