Draw rounded rectangle

Is there a built in way to draw rounded rectangles like the rect() function?
I figure a image would be easiest if such function does not exist, but I am curious.

So simple question, I require a simple answer. :slight_smile:
Sincerely akaJag.

@akaJag here are a couple links that should do what you want:

roundRect() code:

http://twolivesleft.com/Codea/Talk/discussion/203/rounded-corners-answered/p1

@Reefwing’s rounded rectangle tutorial

http://codeatuts.blogspot.com.au/2012/06/tutorial-2-creating-rounded-rectangle.html

Thank you very much! :smiley: