generate colors so you dont have to pass some in.
Opened this issue · 3 comments
dogmatic69 commented
some ideas
-random colors
-map colors to lables
dogmatic69 commented
function randColor()
{
$letters = "1234567890ABCDEF";
for($i=0;$i<6;$i++)
{
$pos = rand(0,15);
$str .= $letters[$pos];
}
return "#".$str;
}
for($i=1;$i<6;$i++)
{
echo 'Random Color Text
';
}
imekinox commented
function randColor() {
$color = "#";
for($i = 0; $i < 6; $i++) $color = $color . dechex(rand(0,15));
return $color;
}
dogmatic69 commented
cool, was just some code i saw on the net... but like you method :)