Reputation: 1992
I know that there is rectMode(CENTER)
of both rectangles and ellipses, but what about other shapes like triangles and quad shapes?
Upvotes: 0
Views: 1057
Reputation: 42174
It's going to be hard to write a long reply because the answer is no, there isn't a rectMode()
for triangles or shapes you create using the quad()
or vertex()
functions.
You could use the translate()
function to translate to the center of the shape, and then draw all of the points relative to that. That would also solve the question that I think you're trying to ask about then calling the rotate()
function.
Upvotes: 1