Py5Shape.get_child_count()#

Returns the number of children within the Py5Shape object.

Examples#

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

Description#

Returns the number of children within the Py5Shape object.

Underlying Processing method: PShape.getChildCount

Syntax#

get_child_count() -> int

Updated on November 12, 2021 11:30:58am UTC