Particularly useful
A particularly useful 'fill' function is the imagefilledarc() function, which can be
used to make pie charts
imagefilledarc($img_r, $cx, $cy, $width, $height, $start_a, $end_a, $color, $style);
Where $style can be...
- • IMG_ARC_PIE - Fill as if it is a part of a pie chart
- • IMG_ARC_CHORD - Fill up to the chord of the arc
- • IMG_ARC_NOFILL - Currently only used with IMG_ARC_EDGED to indicate only the edges should be drawn (no real fill)
- • IMG_ARC_EDGED - Outline (don't fill) when rendering