To view this content, you need to install Java from java.com

Recursion. An example of recursion, which means function calls itself.
the rectRecursion() function calls itself several times at the end of its block.
It continues to do recursion process until the condition statement (if) is wrong.
Additionally, we can substitute rect() using another shapes (i.e. ellipse()) and expand into 3D recursion.

Source code: recursion_square03

Built with Processing

This website has been archived and is no longer maintained.