Is there a pushMatrix()/popMatrix() analog to this processing code that tries to assign custom attributes to text?
pushMatrix();
textAlign(CENTER);
fill(0, 255, 0);
text("Hello world.", 0, 0);
popMatrix();
This code does not work; the popMatrix() does not undo the attribute assignments. Any text typed after popMatrix() is still center-aligned and green.
Yes, there is, and it applies to all styles(fill(),stroke(),etc.) , not just text attributes: have a look at pushStyle()
From docs: