fixessome

This commit is contained in:
Vladimir Voronin
2024-11-08 09:59:46 +03:00
parent b7cccecaec
commit c33af74342
21 changed files with 453 additions and 343 deletions

View File

@@ -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]
}
// Пример использования