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)
| 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 |