( begin auto-generated from popStyle.xml ) 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
()
| 6256 | * @see PGraphics#pushStyle() |
| 6257 | */ |
| 6258 | public void popStyle() { |
| 6259 | if (styleStackDepth == 0) { |
| 6260 | throw new RuntimeException("Too many popStyle() without enough pushStyle()"); |
| 6261 | } |
| 6262 | styleStackDepth--; |
| 6263 | style(styleStack[styleStackDepth]); |
| 6264 | } |
| 6265 | |
| 6266 | |
| 6267 | public void style(PStyle s) { |
no test coverage detected