Step 3: Use new tool and iterate
Finally, we use our new tool
Grow()
and the command IterationList() to apply recursion.
Remark: Since we are using randomness at each level, we cannot plot level by level as we did in our basic example using the command Iteration().
Warning: In this part, GeoGebra online is slow. It is better to use GeoGebra classic 5 or GeoGebra 6 for desktop.GGB Scripting - All levels at once
ListAll = IterationList(Flatten(Zip(Grow(s), s, level)), level, {{f}}, 8)
Step 3: Demo plotting all levels at once
Warning! To avoid issues use 9 as the maximum number of iterations in the desktop version of GeoGebra.
If you want, share your tree(s) with me or maybe other variations to create other kind of fractals. Just send me a tweet @jcponcemath
Here are are a few examples:
Koch snowflake by @SparksMaths
3D tree by Bernat Ancochea