cakephp_google_plugin icon indicating copy to clipboard operation
cakephp_google_plugin copied to clipboard

generate colors so you dont have to pass some in.

Open dogmatic69 opened this issue 16 years ago • 3 comments

some ideas -random colors -map colors to lables

dogmatic69 avatar Nov 19 '09 13:11 dogmatic69

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

dogmatic69 avatar Nov 26 '09 21:11 dogmatic69

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

imekinox avatar Dec 15 '09 06:12 imekinox

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

dogmatic69 avatar Dec 19 '09 18:12 dogmatic69