make random colors

Get the hex value of a variety of random colors, just increase the variable each time.

function makeColor($i){
	$frequency = .3;
	$red   = round(sin(($frequency*$i) + 0) * 127 + 128);
	$green = round(sin(($frequency*$i) + 2) * 127 + 128);
	$blue  = round(sin(($frequency*$i) + 4) * 127 + 128);
	$hex = "#";
	$hex.= str_pad(dechex($red), 2, "0", STR_PAD_LEFT);
	$hex.= str_pad(dechex($green), 2, "0", STR_PAD_LEFT);
	$hex.= str_pad(dechex($blue), 2, "0", STR_PAD_LEFT);
	return $hex;
}