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

Method endShape

src/shape/custom_shapes.js:1086–1092  ·  view source on GitHub ↗
(closeMode = constants.OPEN)

Source from the content-addressed store, hash-verified

1084 Does nothing if shape is not a path or has multiple contours. Might discuss this.
1085 */
1086 endShape(closeMode = constants.OPEN) {
1087 if (closeMode === constants.CLOSE) {
1088 // Close the first contour, the one implicitly used for shape data
1089 // added without an explicit contour
1090 this.endContour(closeMode, 0);
1091 }
1092 }
1093
1094 accept(visitor) {
1095 for (const contour of this.contours) {

Callers 4

arcMethod · 0.95
ellipseMethod · 0.95
arcPrimitiveMethod · 0.95
vertexFunction · 0.45

Calls 1

endContourMethod · 0.95

Tested by

no test coverage detected