drawOval

abstract fun drawOval(paint: Paint, 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 oval fitting within the bounding box defined by x, y, width, and height.

Parameters

paint

the paint or color used to render the oval.

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 oval.

alpha

the opacity to render with.