more random
This commit is contained in:
@@ -17,7 +17,6 @@ class SongSelect{
|
|||||||
this.canvas.style.imageRendering = "pixelated"
|
this.canvas.style.imageRendering = "pixelated"
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultColor = Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0");
|
|
||||||
this.songSkin = {
|
this.songSkin = {
|
||||||
"selected": {
|
"selected": {
|
||||||
background: "#ffdb2c",
|
background: "#ffdb2c",
|
||||||
@@ -73,10 +72,10 @@ class SongSelect{
|
|||||||
},
|
},
|
||||||
"default": {
|
"default": {
|
||||||
sort: null,
|
sort: null,
|
||||||
background: `#${defaultColor}`,
|
background: `#${Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0")}`,
|
||||||
border: [`#${defaultColor}`, `#${defaultColor}`],
|
border: [`#${Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0")}`, `#${Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0")}`],
|
||||||
outline: `#000000`,
|
outline: "#000000",
|
||||||
infoFill: `#${defaultColor}`
|
infoFill: `#${Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0")}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user