rect

inline fun rect(topLeft: Point, size: Size, cornerRadius: Float = 0.0f)

Adds a closed (optionally) round-rectangle contour.

Parameters

topLeft

The coordinates of the top left point of the rectangle

size

The size of the rectangle

cornerRadius

The radius of the rounded corners