drawOval

fun DrawScope.drawOval(paint: Paint, topLeft: Point2D, size: Dimension2D, style: DrawStyle = DrawStyle.Fill, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)

Draws an oval within the bounding box defined by topLeft and size.

Parameters

paint

the paint or color used to render the oval.

topLeft

coordinates of the top-left corner.

size

dimensions of the bounding box.

style

whether to fill or outline the oval.

alpha

the opacity to render with.