mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 08:05:44 +02:00
parent
b619710ee9
commit
b165a6e39b
@ -17,6 +17,11 @@ class SongSelect{
|
|||||||
this.canvas.style.imageRendering = "pixelated"
|
this.canvas.style.imageRendering = "pixelated"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let rand = () => {
|
||||||
|
let color = Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0");
|
||||||
|
return `#${color}`
|
||||||
|
}
|
||||||
|
|
||||||
this.songSkin = {
|
this.songSkin = {
|
||||||
"selected": {
|
"selected": {
|
||||||
background: "#ffdb2c",
|
background: "#ffdb2c",
|
||||||
@ -85,10 +90,10 @@ class SongSelect{
|
|||||||
},
|
},
|
||||||
"default": {
|
"default": {
|
||||||
sort: null,
|
sort: null,
|
||||||
background: "rgba(0,0,0,0)",
|
background: `${rand()}`,
|
||||||
border: ["rgba(255,127,212,.8)", "rgba(255,0,255,.6)"],
|
border: [`${rand()}`, `${rand()}`],
|
||||||
outline: "rgba(0,0,0,.4)",
|
outline: `#000000`,
|
||||||
infoFill: "rgba(0,0,0,0)"
|
infoFill: `${rand()}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user