Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- // (comment)
- , (comma)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- final
- false
- import
- implements
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- pushStyle()
- push()
- private
- public
- redraw()
- return
- ; (semicolon)
- setLocation()
- setResizable()
- setTitle()
- setup()
- static
- super
- thread()
- this
- try
- void
- true
Name
getChildCount()
Class
PShape
Description
Returns the number of children within the PShape.
Examples
PShape states; void setup() { size(100, 100); states = loadShape("tristate.svg"); int count = states.getChildCount(); println(count); }
Syntax
sh.getChildCount()
Parameters
sh
(PShape)
any variable of type PShape
Return
int

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.