drawArc
fun DrawScope.drawArc(paint: Paint, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Point2D, size: Dimension2D, style: DrawStyle = DrawStyle.Fill, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)
Draws an arc positioned within the bounding box defined by topLeft and size.
Parameters
paint
the paint or color used to render the arc.
startAngle
starting angle in degrees, 0 at 3 o'clock and increasing clockwise.
sweepAngle
angular extent of the arc in degrees. Positive sweeps clockwise, negative counter-clockwise.
useCenter
if true, closes the arc through the center forming a pie wedge.
topLeft
coordinates of the top-left corner.
size
dimensions of the bounding box.
style
whether to fill or outline the arc.
alpha
the opacity to render with.