pushStyle()
StructureDescription
Saves the current style settings (fill, stroke, font, etc.) onto a stack.
Syntax
void pushStyle()
Parameters
None
Returns
voidRelated
Under the Hood
From Processing.h:
void pushStyle();
Under the Hood
From Processing.cpp:
void PApplet::pushStyle() {
Style s;
captureStyle(s);
styleStack.push_back(s);
}
void PApplet::push() { glPushMatrix(); pushStyle();