(int mode)
| 404 | |
| 405 | |
| 406 | @Override |
| 407 | public void endShape(int mode) { |
| 408 | if (openContour) { // correct automagically, notify user |
| 409 | endContour(); |
| 410 | PGraphics.showWarning("Missing endContour() before endShape()"); |
| 411 | } |
| 412 | if (workPath.getNumCommands() > 0) { |
| 413 | if (shape == POLYGON) { |
| 414 | if (mode == CLOSE) { |
| 415 | workPath.closePath(); |
| 416 | } |
| 417 | if (auxPath.getNumCommands() > 0) { |
| 418 | workPath.append(auxPath, false); |
| 419 | } |
| 420 | drawShape(workPath); |
| 421 | } |
| 422 | } |
| 423 | shape = 0; |
| 424 | if (adjustedForThinLines) { |
| 425 | adjustedForThinLines = false; |
| 426 | translate(-0.5f, -0.5f); |
| 427 | } |
| 428 | loaded = false; |
| 429 | } |
| 430 | |
| 431 | |
| 432 | private void drawShape(Shape s) { |
nothing calls this directly
no test coverage detected