It is pretty easy to draw a rectangle with rounded corners specifying a border radius rx or ry .

View source

Rounded rectangle