OF_RECTMODE_CENTER doesn't work for ofDrawRectRounded

Hi All,

Fairly new to Openframeworks, so I apologize for the silly question.

I have a series of rounded rectangles that are supposed to decrease in size toward the center of the canvas. I have the x and y position set to ofGetWidth()/2 and ofGetHeight()/2 respectively. However, OF_RECTMODE_CENTER doesn’t seem to apply, as the top left corner of the rectangle is in the middle of the canvas. Is there any way to change the mode for rounded rectangles to center?

this is probably a bug. if you can open an issue on github? apart from that it’s pretty straight forward to calculate the position when the rectangle is drawing from the left corner, just substract to the center half the size of the rectangle

Just opened the issue on github. Thanks for the quick response!