对于 ($y=0;$y
{
对于 ($x=0;$x
{
$abs00=sqrt(($x*$x) ($y*$y));
if ($abs00>16)
$abs01=sqrt(($x*$x) ((16-$y)*(16-$y)));
if ($abs01>16)
$abs10=sqrt(((16-$x)*(16-$x)) ($y*$y));
if ($abs10>16)
$red=((16-$abs00)*16)-1;
if ($red
$红色=0;
$green=((16-$abs01)*16)-1;
if ($green
$绿色=0;
$蓝色= ((16-$abs10)*16)-1;
if ($blue
$蓝色=0;
PHP网页web颜色调配器代码 = sprintf(" x x x",$red,$green,$blue);
echo "
echo "