MCPcopy Create free account
hub / github.com/benfry/processing4 / popStyle

Method popStyle

core/src/processing/core/PGraphics.java:6288–6294  ·  view source on GitHub ↗

The pushStyle() function saves the current style settings and popStyle() restores the prior settings; these functions are always used together. They allow you to change the style settings and later return to what you had. When a new style is started with pushStyle() , it builds o

()

Source from the content-addressed store, hash-verified

6286 * @see PGraphics#pushStyle()
6287 */
6288 public void popStyle() {
6289 if (styleStackDepth == 0) {
6290 throw new RuntimeException("Too many popStyle() without enough pushStyle()");
6291 }
6292 styleStackDepth--;
6293 style(styleStack[styleStackDepth]);
6294 }
6295
6296
6297 public void style(PStyle s) {

Callers 2

popMethod · 0.95
backgroundImplMethod · 0.95

Calls 1

styleMethod · 0.95

Tested by

no test coverage detected