function invert_color ($color
{
$new = ''
for ($i=0;$i<3;$i++){
$c = 255 - hexdecsubstr$color,(2*$i),2));
$c = dechex$c);
$new .= (strlen$c) < 2) ? '0'$c : $c
}
return $new
}
eXorithm – Execute Algorithm: View / Run Algorithm invert_color
