<?php
header("Content-type: image/png");
$width = 800;
$height = 100;
$image = imagecreatetruecolor($width, $height);
$white = imagecolorallocate($image, 255, 255, 255);
$shadow = imagecolorallocate($image, 128,128,128);
if ($color == "black") {
$color1 = imagecolorallocate($image, 0, 0, 0);
} else if ($color == "tusk") {
$color1 = imagecolorallocate($image, 255, 255, 204);
} else if ($color == "red") {
$color1 = imagecolorallocate($image, 255, 0, 0);
} else if ($color == "blue") {
$color1 = imagecolorallocate($image, 0, 0, 128);
} else if ($color == "maroon") {
$color1 = imagecolorallocate($image, 192, 0, 0);
} else if ($color == "green") {
$color1 = imagecolorallocate($image, 0, 150, 0);
}
imagefilledrectangle($image, 0, 0, $width, $height, $white);
imagettftext($image, 50, 0, 25, 60, $shadow, "fonts/verdana.ttf", $wording);
imagettftext($image, 50, 0, 20, 55, $color1, "fonts/verdana.ttf", $wording);
imagepng($image);
imagedestroy($image);
?>