Py5Shape.get_child_count()

Returns the number of children within the Py5Shape object.

Examples

1
2
3
4
def setup():
    us_map = py5.load_shape("us_map.svg")
    count = us_map.get_child_count()
    py5.println(count)

Description

Returns the number of children within the Py5Shape object.

Underlying Java method: PShape.getChildCount

Syntax

get_child_count() -> int

Updated on September 11, 2021 16:51:34pm UTC