fixessome
This commit is contained in:
@@ -43,4 +43,17 @@ export const getMonthName = (month: number) => {
|
||||
case 11:
|
||||
return 'Декабрь'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const generateRandomColors = () => {
|
||||
|
||||
const r = Math.floor(Math.random() * 256);
|
||||
const g = Math.floor(Math.random() * 256);
|
||||
const b = Math.floor(Math.random() * 256);
|
||||
const a = 0.5; // Прозрачность от 0.00 до 1.00
|
||||
|
||||
return [r,g,b]
|
||||
}
|
||||
|
||||
// Пример использования
|
||||
|
||||
|
||||
Reference in New Issue
Block a user