How can I rotate a frame like how Archimedes rotates a part

So in Archimedes when you’re creating a part you can rotate it like this
image

but instead of parts I want it for a GUI frame instead
image

how could I do this but have it always positioned correctly even if the rotation is changed

I’m pretty sure Archimedes creates the new part’s position with calculations relative to the latest part’s position, so your best bet would be to do the same.

First, make sure the anchor point is 0.5, 0.5. Then, duplicate the original frame, double the size on both X and Y axes so that the anchor point is at the point of rotation. Finally, rotate it to the desired angle, and adjust the size back to its original dimensions. I can say with confidence this works.