addRoundRect

fun Path.addRoundRect(left: Float, top: Float, right: Float, bottom: Float, rect: RoundRect, radii: FloatArray)

Adds a rounded rectangle to the receiver Path.

Parameters

left

the x coordinate of the left edge of the rectangle.

top

the y coordinate of the top edge of the rectangle.

right

the x coordinate of the right edge of the rectangle.

bottom

the y coordinate of the bottom edge of the rectangle.

rect

the rounded rectangle to be drawn.

radii

used to store the corner radii. This array must be mutable.