Rotation Not Based On Origin

Greetings! I’m wondering if there is a style to rotate the drawing based on a set cord

Ex: rotation(x, y, degree of rotation).

Basically I’m looking for a way to rotate a shape but based on it’s cords and not the origin that the rotate() style uses.

P.S I apoligize if theres a really blatant anwser that I just majorlly overlooked in my research.

Try this

pushMatrix()
translate(x,y)
rotate(angle)
--draw your image here
popMatrix()

Or, if you are using meshes and use addRect, it has a rotation option built in

The rotation doesn’t seem to be in degrees, so what’re the angles based on?

Edit: Just read the last line of the reference on addRect… I got it