(int mode)
| 917 | |
| 918 | |
| 919 | @Override |
| 920 | public void endShape(int mode) { |
| 921 | if (openContour) { // correct automagically, notify user |
| 922 | endContour(); |
| 923 | PGraphics.showWarning("Missing endContour() before endShape()"); |
| 924 | } |
| 925 | if (gpath != null) { // make sure something has been drawn |
| 926 | if (shape == POLYGON) { |
| 927 | if (mode == CLOSE) { |
| 928 | gpath.closePath(); |
| 929 | } |
| 930 | if (auxPath != null) { |
| 931 | gpath.append(auxPath, false); |
| 932 | } |
| 933 | drawShape(gpath); |
| 934 | } |
| 935 | } |
| 936 | shape = 0; |
| 937 | } |
| 938 | |
| 939 | ////////////////////////////////////////////////////////////// |
| 940 |
nothing calls this directly
no test coverage detected