cakephp_google_plugin
cakephp_google_plugin copied to clipboard
generate colors so you dont have to pass some in.
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<BR>'; }
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 :)