<?php<br />header(
"content-type"
,
"text/html;charset=utf-8"
);<br />
<br />
$image
= imagecreatetruecolor(100, 100);
<br />
<br />
$white
= imagecolorallocate(
$image
,0xff,0xff,0xff);<br />
$gray
= imagecolorallocate(
$image
, 0xc0, 0xc0, 0xc0);<br />
$darkgray
= imagecolorallocate(
$image
, 0x90, 0x90, 0x90);<br />
$navy
= imagecolorallocate(
$image
, 0x00, 0x00, 0x80);<br />
$darknavy
= imagecolorallocate(
$image
, 0x00, 0x00, 0x50);<br />
$red
= imagecolorallocate(
$image
, 0xff, 0x00, 0x00);<br />
$darkred
= imagecolorallocate(
$image
, 0x90, 0x00, 0x00);<br />
<br />imagefill(
$image
, 0, 0,
$white
);<br />
<br />
for
(
$i
= 60;
$i
> 50;
$i
--)<br />{<br />imagefilledarc(
$image
, 50,
$i
, 100, 50, -160, 40,
$darknavy
, IMG_ARC_PIE);<br />imagefilledarc(
$image
, 50,
$i
, 100, 50, 40, 75,
$darkgray
, IMG_ARC_PIE);<br />imagefilledarc(
$image
, 50,
$i
, 100, 50, 75, 200,
$darkred
, IMG_ARC_PIE);<br />}<br />
<br />imagefilledarc(
$image
, 50, 50, 100, 50, -160, 40,
$darknavy
, IMG_ARC_PIE);<br />imagefilledarc(
$image
, 50, 50, 100, 50, 40, 75,
$darkgray
, IMG_ARC_PIE);<br />imagefilledarc(
$image
, 50, 50, 100, 50, 75, 200,
$darkred
, IMG_ARC_PIE);<br />
<br />imagestring(
$image
, 3, 15, 55,
"30%"
,
$white
);<br />imagestring(
$image
, 3, 45, 35,
"60%"
,
$white
);<br />imagestring(
$image
, 3, 60, 60,
"10%"
,
$white
);<br />
<br />header(
"content-type:image/png"
);<br />imagepng(
$image
);<br />
<br />imagedestroy(
$image
);<br />?>