input,input.btn{ color:#050; font-family:'trebuchet ms',helvetica,sans-serif; font-size:84%; font-weight:bold; background-color:#fed; border:1px solid; border-top-color:#696; border-left-color:#696; border-right-color:#363; border-bottom-color:#363;}
EOHTML; exit; } $leftR = hexdec(substr($_GET["left"],0,2)); $leftG = hexdec(substr($_GET["left"],2,2)); $leftB = hexdec(substr($_GET["left"],4,2)); $rightR = hexdec(substr($_GET["right"],0,2)); $rightG = hexdec(substr($_GET["right"],2,2)); $rightB = hexdec(substr($_GET["right"],4,2)); $image=imagecreate($_GET["width"],$_GET["height"]); for($i=0;$i<250;$i++) { $colorset[$i] = imagecolorallocate($image, $leftR + ($i*(($rightR-$leftR)/250)), $leftG + ($i*(($rightG-$leftG)/250)), $leftB + ($i*(($rightB-$leftB)/250))); } for ($y=0;$y<$_GET['height'];$y++){ for($x=0;$x<($_GET["width"]);$x++) { imagesetpixel ($image, $x, $y, $colorset[(int)($x/($_GET["width"]/250))] ); } } header("Content-type: image/png"); imagepng($image); imagedestroy($image); ?>