arc

fun Canvas.arc(cx: Int, cy: Int, radius: Float, startAngle: Float, endAngle: Float, segments: Int = 6, color: Color = Color.BLACK)

Draws an arc outline on the canvas.

Parameters

cx

The X coordinate of the arc center

cy

The Y coordinate of the arc center

radius

The radius of the arc

startAngle

The starting angle of the arc in degrees

endAngle

The ending angle of the arc in degrees

segments

The number of segments to use for drawing the arc (more segments = smoother arc, typically >= 6)

color

The color of the arc