fillSegment

Fills a circle segment around the x/y location given. All angles for 'fillSegment' are given in radians, and it draws the segment in a clockwise direction.

.fillSegment( x, y, radius, startAngle, endAngle, isCentred = false )

Fills a circle segment, around the x and y location.

The 'radius' refers to the distance from the middle of the segment, to the outer edge.

'isCentred' defines if the x and y location is the top left corner, or the middle.

.fillSegment( x, y, radius, startAngle, endAngle, xAlign, yAlign )

Fills a circle segment, but allows you to specify alignment on the x and y axis.

See the article on How Alignment Works for information on the xAlign and yAlign parameters.