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

Method crop

core/src/processing/core/PShape.java:1966–1971  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1964
1965 /** Resize the children[] array to be in line with childCount */
1966 protected void crop() {
1967 // https://github.com/processing/processing/issues/3347
1968 if (children.length != childCount) {
1969 children = (PShape[]) PApplet.subset(children, 0, childCount);
1970 }
1971 }
1972
1973
1974 public PShape[] getChildren() {

Callers 2

getChildrenMethod · 0.95
getChildMethod · 0.95

Calls 1

subsetMethod · 0.95

Tested by

no test coverage detected