Horizontal center coordinate
Vertical center coordinate
Horizontal radius in pixels
Vertical radius in pixels
Degrees to start from; 0° points north. Can be negative.
Degrees to end at (eg. 0, 360 to draw a full circle, 0, 180 for half circle, etc). 0° points north. Can be negative.
Number of tick marks to draw; First tick is drawn at start position (from
) and the rest are spread out evenly between start and end angles.
Length of tick marks. Negative value draws a line (tick mark) of that length from outer point towards center of circle. Positive values draw outward.
Length can also be an array of lengths, in which case it will use the line lengths from array for each consecutive line, modulo the array's length.
eg. drawing any even number of ticks with alternating sizes: l = [10, 5]
A line length of zero in the array can be used to skip drawing a tick at that position.
Set to true
to center the tick marks along the circumference, dividing the given length(s) by 2 so that half the tick points to the outside and half to the inside.
Returns a Path2D object containing a full or partial circle of tick marks, like a compass or speedometer. Each segment of the resulting path consists of a separate line for each "tick."