MCPcopy Index your code
hub / github.com/processing/processing / endShape

Method endShape

core/src/processing/javafx/PGraphicsFX2D.java:406–429  ·  view source on GitHub ↗
(int mode)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected