MCPcopy Index your code
hub / github.com/processing/processing / pushStyle

Method pushStyle

core/src/processing/core/PGraphics.java:6231–6240  ·  view source on GitHub ↗

( begin auto-generated from pushStyle.xml ) The pushStyle() function saves the current style settings and popStyle() restores the prior settings. Note that these functions are always used together. They allow you to change the style settings and later return to what you had. When a ne

()

Source from the content-addressed store, hash-verified

6229 * @see PGraphics#popStyle()
6230 */
6231 public void pushStyle() {
6232 if (styleStackDepth == styleStack.length) {
6233 styleStack = (PStyle[]) PApplet.expand(styleStack);
6234 }
6235 if (styleStack[styleStackDepth] == null) {
6236 styleStack[styleStackDepth] = new PStyle();
6237 }
6238 PStyle s = styleStack[styleStackDepth++];
6239 getStyle(s);
6240 }
6241
6242 /**
6243 * ( begin auto-generated from popStyle.xml )

Callers 2

pushMethod · 0.95
backgroundImplMethod · 0.95

Calls 2

expandMethod · 0.95
getStyleMethod · 0.95

Tested by

no test coverage detected