arc

fun arc(center: Point, radius: Float, startDegrees: Float, endDegrees: Float, clockwise: Boolean = true): Shape

An arc shape that can be drawn on a Canvas.

Parameters

center

The center of the arc

radius

The radius of the arc

startDegrees

The angle to the starting point of the arc

endDegrees

The angle to the end point of the arc

clockwise

true to make a clockwise arc; false to make a counterclockwise arc