PHP imagearc - Draw an Elliptical Arc
imagearc — Used to draw an elliptical arc.
Syntax
bool imagearc ( resource $image , int $cx , int $cy , int $w , int $h , int $s , int $e , int $color )
imagearc() draws an elliptical arc in the image represented by image, centered at cx, cy (with the top-left corner of the image as 0, 0).
w and h specify the width and height of the ellipse, respectively, and the start and end points are specified by the s and e parameters in degrees. 0° is at the 3 o'clock position, drawn clockwise.
Example
The image of the output result of the example above is as follows:
PHP Image Processing