<?php
/**
 * Created by PhpStorm.
 */

$my_image = imagecreate(330,330);

$white = imagecolorallocate($my_image,255,255,255);
$black = imagecolorallocate($my_image,0,0,0);
$red = imagecolorallocate($my_image,255,0,0);
$green = imagecolorallocate($my_image,0,255,0);
$blue = imagecolorallocate($my_image,0,0,255);

$light_red = imagecolorallocate($my_image,255,150,150);
$light_green = imagecolorallocate($my_image,150,255,150);
$light_blue = imagecolorallocate($my_image,150,150,255);

$cx = 165;
$cy = 165;
$width = 150;
$height = 150;

for($i=175; $i>165; $i--)
{
    imagefilledarc($my_image,$cx,$i,$width,$height,0,60,$light_red,IMG_ARC_PIE);
    imagefilledarc($my_image,$cx,$i,$width,$height,60,200,$light_green,IMG_ARC_PIE);
    

}

imagefilledarc($my_image,$cx,$cy,$width,$height,0,60,$red,IMG_ARC_PIE);
imagefilledarc($my_image,$cx,$cy,$width,$height,60,200,$green,IMG_ARC_PIE);
imagefilledarc($my_image,$cx,$cy,$width,$height,200,270,$blue,IMG_ARC_PIE);
imagefilledarc($my_image,$cx,$cy,$width,$height,270,360,$black,IMG_ARC_PIE);

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

imagedestroy($my_image);