new colors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user