drawRoundRect
fun DrawScope.drawRoundRect(paint: Paint, topLeft: Point2D, size: Dimension2D, cornerRadiusX: Float = 0.0f, cornerRadiusY: Float = cornerRadiusX, style: DrawStyle = DrawStyle.Fill, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)
Draws a rounded rectangle positioned at topLeft with size size.
Parameters
paint
the paint or color used to render the rounded rectangle.
topLeft
coordinates of the top-left corner.
size
dimensions of the rounded rectangle.
cornerRadiusX
horizontal radius of the corner arcs.
cornerRadiusY
vertical radius of the corner arcs.
style
whether to fill or outline the shape.
alpha
the opacity to render with.