rect

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

A closed (optionally) round-rectangle that can be drawn on a Canvas.

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