openframeworks/openFrameworks — pull request #1221 by lawarner (2012-04-26 22:21:09+00:00)
Title: Added ofRoundedRect() functions to ofGraphics

I find that I'm using rectangles with rounded corners quiet often and seems like a fairly simple addition.
An example of using this is as follows:

ofSetPolyMode(OF_POLY_WINDING_ODD);
ofSetLineWidth(1.5);
ofEnableSmoothing();
ofNoFill();
ofSetHexColor(0x000000);
ofRoundedRect(630,520,80,60,9);
ofDisableSmoothing();