drawArc

abstract fun drawArc(paint: Paint, startAngle: Float, sweepAngle: Float, useCenter: Boolean, x: Float = 0.0f, y: Float = 0.0f, width: Float = size.width.toFloat() - x, height: Float = size.height.toFloat() - y, style: DrawStyle = DrawStyle.Fill, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)

Draws an arc from startAngle sweeping sweepAngle degrees.

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; if false, leaves the arc open.

x

horizontal coordinate of the bounding box.

y

vertical coordinate of the bounding box.

width

width of the bounding box.

height

height of the bounding box.

style

whether to fill or outline the arc.

alpha

the opacity to render with.