function generate_graph_color ($number
{
$nums = array(2,6,18,8,20,24,5,15,1,22,19,21,11,3,9,4,10,12,14,16,7,17,23,25,13,0,26);
$color = $nums$number % count$nums)];
$color = base_convert$color, 10, 3);
$r = floor$color / 100);
$g = floor(($color % 100) / 10);
$b = ($color % 10);
$r = dechex$r*127);
$g = dechex$g*127);
$b = dechex$b*127);
if (strlen$r)==1) $r = '0'$r
if (strlen$g)==1) $g = '0'$g
if (strlen$b)==1) $b = '0'$b
return $r$g$b
}