Recursion    Example Index: |  1  |  2  |  3  |

03: RecuCircles

RecuCircles Definition    download .ghx

The motif is a circle. It replicates twice inside itself, with the two new circles of half the radius and tangent to both themselves and the orginal circle. The line joining their centres is initially horizontal. At each level of the recursion, the line needs to alternate between horizontal and vertical. This requires a check on the parity of recursion depth within the function. As with the prior samples, the recursion is depth-limited.      ... more on Design Patterns CA