ofRectangle offset()

would be really nice if you could call a function to grow or shrink a rectangle from the centre by an offset - e.g.

ofRectangle r(100, 100, 320, 240);

r.offset(20);

would give
x = 80, y = 80, width = 340, height = 260

It would also work with negative values so you could contract it.

There is a scaleFromCenter(), but it’s proportional.

I always end up doing something like this

int offset = 10;
r.x -= offset;
r.y -= offset;
r.width += offset * 2;
r.height += offset * 2;