How to center rotation (midhandle) a rect or oval?

BlitzMax Forums/BlitzMax Programming/How to center rotation (midhandle) a rect or oval?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can also do something like this
Local RectXPos = 100
Local RectYPos = 100
Local RectWidth = 10
Local RectHeight = 10

DrawRect (RectXPos-RectWidth/2,RectYPos-RectHeight/2,RectWidth,RectHeight)


ETA: Then again. after testing, that doesn't seem to work.