drawCircle

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

Draws a circle centered at (centerX, centerY) with the given radius.

Parameters

paint

the paint or color used to render the circle.

radius

radius of the circle, defaulting to half the smaller dimension of the surface.

centerX

horizontal center coordinate, defaulting to the surface's center.

centerY

vertical center coordinate, defaulting to the surface's center.

style

whether to fill or outline the circle.

alpha

the opacity to render with.