Py5Shape.get_child_count()#

Returns the number of children within the Py5Shape object.

Examples#

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 Processing method: PShape.getChildCount

Signatures#

get_child_count() -> int

Updated on March 06, 2023 02:49:26am UTC