This commit is contained in:
2020-10-30 00:07:51 +06:00
7 changed files with 292 additions and 67 deletions

View File

@ -1713,4 +1713,13 @@ function number_format( number, decimals, dec_point, thousands_sep )
return km + kw + kd;
}
*/
*/
//Получить случайное RGB в заданном промежутке
function getRandomColor(start,end)
{
let r = Math.floor(Math.random() * (end-start)+start);
let g = Math.floor(Math.random() * (end-start)+start);
let b = Math.floor(Math.random() * (end-start)+start);
return 'rgb('+r+','+g+','+b+')';
}