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

Method endContour

core/src/processing/core/PShape.java:663–680  ·  view source on GitHub ↗

@webref shape:vertex @brief Ends a contour @see PShape#beginContour()

()

Source from the content-addressed store, hash-verified

661 * @see PShape#beginContour()
662 */
663 public void endContour() {
664 if (!openShape) {
665 PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "endContour()");
666 return;
667 }
668
669 if (family == GROUP) {
670 PGraphics.showWarning("Cannot end contour in GROUP shapes");
671 return;
672 }
673
674 if (!openContour) {
675 PGraphics.showWarning("Need to call beginContour() first.");
676 return;
677 }
678 endContourImpl();
679 openContour = false;
680 }
681
682
683 protected void endContourImpl() {

Callers 1

getShapeMethod · 0.95

Calls 2

showWarningMethod · 0.95
endContourImplMethod · 0.95

Tested by

no test coverage detected