( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/piechart.php
<?php 
 $imageX = imagecreatetruecolor(300, 300);
    imagealphablending($imageX, false);
                            imagesavealpha($imageX,true);
                            $transparent = imagecolorallocatealpha($imageX, 255, 255, 255, 127);
                            imagefilledrectangle($imageX, 0, 0, 300, 300, $transparent);
 
$white = imagecolorallocate($imageX, 0xFF, 0xFF, 0xFF);

$gray = imagecolorallocate($imageX, 232,178, 15);

$darkgray = imagecolorallocate($imageX, 148, 113, 6);

$navy = imagecolorallocate($imageX, 126,150, 8);

$darknavy = imagecolorallocate($imageX,91, 109,2);

$darkred = imagecolorallocate($imageX, 114, 14, 14);

$red = imagecolorallocate($imageX, 170, 34, 34);

$value1 = 90;
$value2=50;
$value2=$value2+$value1;
$value3=$value2+5;

for ($i = 160; $i > 150; $i--) {

imagefilledarc($imageX, 150, $i, 200, 200, $value3, $value1, $darknavy, IMG_ARC_PIE);

imagefilledarc($imageX, 150, $i, 200, 200, $value1, $value2 , $darkgray, IMG_ARC_PIE);

imagefilledarc($imageX, 150, $i, 200, 200, $value2, 360 , $darkred, IMG_ARC_PIE);

}

imagefilledarc($imageX, 150, 150, 200, 200, $value3, $value1, $navy, IMG_ARC_PIE);

imagefilledarc($imageX, 150, 150, 200, 200, $value1, $value2 , $gray, IMG_ARC_PIE);

imagefilledarc($imageX, 150, 150, 200, 200, $value2, 360 , $red, IMG_ARC_PIE);
 




header('Content-type: image/png');

imagepng($imageX);

imagedestroy($imageX);