An instance of CanvasRenderContext2D to use for creation of paths for individual labels. It should already have all desired typography properties applied (font, etc).
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.
The array of label strings to use; First label is drawn at start position (from
), and the rest are spread out evenly between start and end angles.
Set to -1
to position the labels towards the inside of the arc, or 1
towards the outside.
Degrees of rotation to apply to labels. If rotateToAngle
== 0 then the angle is an offset from horizontal, otherwise it is the offset from the rotated label angle.
Set to 1
to rotate the labels so they face inward towards the center of the arc, -1
to rotate so they face away from center, or 0
(default) to keep the labels horizontal.
Returns a Path2D object containing a full or partial circle of labels, like the markings for a compass or speedometer.