Py5Shape.get_child_count()

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

Syntax

get_child_count() -> int

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