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

Method crop

core/src/processing/core/PShape.java:2056–2061  ·  view source on GitHub ↗

Resize the children[] array to be in line with childCount

()

Source from the content-addressed store, hash-verified

2054
2055 /** Resize the children[] array to be in line with childCount */
2056 protected void crop() {
2057 // https://github.com/processing/processing/issues/3347
2058 if (children.length != childCount) {
2059 children = (PShape[]) PApplet.subset(children, 0, childCount);
2060 }
2061 }
2062
2063
2064 public PShape[] getChildren() {

Callers 2

getChildrenMethod · 0.95
getChildMethod · 0.95

Calls 1

subsetMethod · 0.95

Tested by

no test coverage detected