Question,
is there a special function to get a random color.
Generate random colors
Re: Generate random colors
I don't know of a special function,
but this is a function I use.
function random_color()
{
$r=rand(128,255);
$g=rand(128,255);
$b=rand(128,255);
$color=dechex($r).dechex($g).dechex($b);
return "#".$color;
}
but this is a function I use.
function random_color()
{
$r=rand(128,255);
$g=rand(128,255);
$b=rand(128,255);
$color=dechex($r).dechex($g).dechex($b);
return "#".$color;
}