mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
Playlists, Play Next, Code Refactor
This commit is contained in:
parent
5486be7613
commit
51c56abe16
17 changed files with 664 additions and 204 deletions
16
src/scripts/colors.js
Normal file
16
src/scripts/colors.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
const c = [
|
||||
"linear-gradient(45deg, #88c0d0, #5e81ac)",
|
||||
"linear-gradient(45deg, #5e81ac, #b48ead)",
|
||||
"linear-gradient(45deg, #a3be8c, #88c0d0)",
|
||||
"linear-gradient(45deg, #ebcb8b, #a3be8c)",
|
||||
"linear-gradient(45deg, #d08770, #bf616a)"
|
||||
];
|
||||
|
||||
export function useColors() {
|
||||
return c
|
||||
}
|
||||
|
||||
export function useRand() {
|
||||
const i = Math.floor(Math.random() * c.length);
|
||||
return c[i]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue