new colors

This commit is contained in:
2026-02-10 10:19:50 +00:00
parent b92655ab1b
commit a6186344b6
7 changed files with 56 additions and 30 deletions

View File

@@ -6,3 +6,12 @@ export function shuffleArray(array) {
array[j] = temp;
}
}
export function getRandomColor() {
var letters = "0123456789ABCDEF";
var color = "#";
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}