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

Method getChild

core/src/processing/core/PShape.java:2081–2084  ·  view source on GitHub ↗

Extracts a child shape from a parent shape. Specify the name of the shape with the target parameter. The shape is returned as a PShape object, or null is returned if there is an error. @webref pshape:method @usage web_application @webBrief Returns a child element of a shape as

(int index)

Source from the content-addressed store, hash-verified

2079 * @see PShape#addChild(PShape)
2080 */
2081 public PShape getChild(int index) {
2082 crop();
2083 return children[index];
2084 }
2085
2086 /**
2087 * @param target the name of the shape to get

Callers 1

findChildMethod · 0.95

Calls 3

cropMethod · 0.95
getMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected