4) { $color = imagecolorallocate($gd, $i<<4%255, $i<<4%255, $i<<4%255); imagesetpixel($gd, round($nx),round($height - $ny), $color); break; } $x = $xn; $y = $yn; } } } header('Content-Type: image/png'); imagepng($gd); ?>