MCPcopy Index your code
hub / github.com/benfry/processing4 / endShape

Method endShape

core/src/processing/awt/PGraphicsJava2D.java:919–937  ·  view source on GitHub ↗
(int mode)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

endContourMethod · 0.95
showWarningMethod · 0.95
drawShapeMethod · 0.95
closePathMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected