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
()
| 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) { |
no test coverage detected