dogmatic69/cakephp_google_plugin

generate colors so you dont have to pass some in.

Opened this issue · 3 comments

some ideas
-random colors
-map colors to lables

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
';
}

function randColor() {
$color = "#";
for($i = 0; $i < 6; $i++) $color = $color . dechex(rand(0,15));
return $color;
}

cool, was just some code i saw on the net... but like you method :)