// Create image $image =
Imagecreatetruecolor( -, the); // Assign some colors$white =
imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $gray =
imagecolorallocate($image, 0xC0, 0xC0, 0xC0); $darkgray =
imagecolorallocate($image, 0x90, 0x90, 0x90); $navy =
imagecolorallocate($image, 0x00, 0x00, 0x80); $darknavy =
imagecolorallocate($image, 0x00, 0x00, 0x50); $red =
imagecolorallocate($image, 0xFF, 0x00, 0x00); $darkred =
imagecolorallocate($image, 0x90, 0x00, 0x00); $green =
imagecolorallocate($image, 0, $, 0); // Fills the canvas background color;
Imagefill($image, 0, 0, $green); // Create 3D Effect for($i = the; $i > Max; $i --) {
Imagefilledarc($image, -, $i, -, Max, 0, $, $darknavy, Img_arc_pie);
Imagefilledarc($image, -, $i, -, Max, $, the, $darkgray, Img_arc_pie);
Imagefilledarc($image, -, $i, -, Max, the, the, $darkred, Img_arc_pie);}
Imagefilledarc($image, -, Max, -, Max, 0, $, $navy, Img_arc_pie);
Imagefilledarc($image, -, Max, -, Max, $, the, $gray, Img_arc_pie);
Imagefilledarc($image, -, Max, -, Max, the, the, $red, Img_arc_pie); // output Image
header( ' content-type:image/png ');
imagepng ($image);
Imagedestroy ($image);
?>
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above introduces PHP: Image processing---three-dimensional pie chart, including the aspects of the content, I hope to be interested in the PHP tutorial friends helpful.