drawCircle

fun DrawScope.drawCircle(paint: Paint, radius: Float = minOf(size.width, size.height) / 2.0f, center: Point2D, style: DrawStyle = DrawStyle.Fill, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)

Draws a circle with radius centered at center.

Parameters

paint

the paint or color used to render the circle.

radius

the radius of the circle.

center

center point.

style

whether to fill or outline the circle.

alpha

the opacity to render with.