Evan's code for Drawing Complicated Circles

complicated circles

SLAVE CODE FOLLOWS

<?php
include('includes/header.php');
error_reporting(E_ALL);

// --- Create the image and save it to a file ---
$image imagecreate(200200);

$yellow   imagecolorallocate($image0xFF0xFF0xAA);
$gray     imagecolorallocate($image0xC00xC00xC0);
$darkgray imagecolorallocate($image0x900x900x90);
$navy     imagecolorallocate($image0x000x000x80);
$darknavy imagecolorallocate($image0x000x000x50);
$red      imagecolorallocate($image0xFF0x000x00);
$darkred  imagecolorallocate($image0x900x000x00);

// fill background
imagefilledrectangle($image00400300$yellow);

// create 3D pie chart effect
for ($i 110$i 100$i--) {
    
imagefilledarc($image100$i10050045$darknavyIMG_ARC_PIE);
    
imagefilledarc($image100$i100504575 $darkgrayIMG_ARC_PIE);
    
imagefilledarc($image100$i1005075360 $darkredIMG_ARC_PIE);
}

// draw top arcs
imagefilledarc($image10010010050045$navyIMG_ARC_PIE);
imagefilledarc($image100100100504575 $grayIMG_ARC_PIE);
imagefilledarc($image1001001005075360 $redIMG_ARC_PIE);

// save image to a temporary file
$filename 'complicated_circles_temp.png';
imagepng($image$filename);
imagedestroy($image);
?>

<h1>Evan's code for Drawing Complicated Circles</h1>

<!-- Display the generated image -->
<img src="<?php echo $filename?>" alt="complicated circles">

<hr><br>SLAVE CODE FOLLOWS<br><br>

<!-- Display this file's source code -->
<?php highlight_file(__FILE__); ?>

<?php include('includes/footer.php'); ?>