Hi there!
I'm having problem to fill an arc in a cicle, the first quarte for eg.
Here's what I am doing, but I am getting a lot of blank spaces in the image (most of the near the edges)
for($i=0;$i<=90;$i++)
{
$rad =deg2rad($i);
$x1 = 250;
$y1 = 200;
$x2 = 250 + (cos($rad) 100);
$y2 = 200 - (sin($rad) 100);
imageline($im,250,200,(float)$x2,(float)$y2,$arc);
imageline($im,250,200,ceil($x2),ceil($y2),$arc);
imageline($im,250,200,floor($x2),floor($y2),$arc);
imageline($im,250,200,ceil($x2),ceil($y2),$arc);
imageline($im,250,200,round($x2),round($y2),$arc);
}
the reason I used floor, ceil, round, is that I've seen a reduction of the number of blank spaces when combining those.
If anyone knows how to do it, please tell me.
PS: I'm tryng to do a pie chart
[]s
Vinicius