imagefill (画像リソース, X座標, Y座標, 色番号);
header("Content-Type: image/png");
$images = imagecreate( 150, 100 );
$white = imagecolorallocate( $images, 255, 255, 255 );
$red = imagecolorallocate( $images, 255, 0, 0 );
$border = imagecolorallocate( $images, 0, 0, 0);
imagerectangle( $images, 0, 0, 149, 99, $white);
imagearc( $images, 75, 50, 60, 60, 0, 360, $red);
imagefill( $images, 75, 50, $red);
imagepng( $images );
imagedestroy( $images );
imagearc()関数で生成された赤色の円の中を同じ色で塗りつぶしています。背景色には白色を設定し、「日の丸」を演出しています。関連関数
imagecolorallocate()関数、imagerectangle()関数