We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have some code that gets called from many different places, some of which have the canvas rotate()'d and/or translate()'d (some do not). In this code I need to place a footer on the canvas regardless of any rotations or translations. The rest of the code does use pushMatrix() and popMatrix() as expected, it's just this particular block that's sometimes called mid-stream. Is there a way to retrieve, and temporarily undo, any transformations?
Any help greatly appreciated...
Answers
resetMatrix() resets canvas matrix independently of pushMatrix() & popMatrix(). %%-
You might want to use pushMatrix() before resetMatrix() if you need to get back to previous matrix state though.
Then use popMatrix() after done w/ resetMatrix() drawings.