Fractal Tree via Iteration: Change Color and Thickness in GeoGebra

Fractal Tree via Iteration: Change Color and Thickness in GeoGebra
Loading the math board and drawing, please wait…
2023-11-23 08:00
This example demonstrates how to construct a fractal tree using iterative geometry and how to emphasize its branching depth by changing color and line thickness across iterations. The key mathematical ideas include fractal geometry, iterative (recursive) construction, self-similarity, and geometric transformation—especially scaling (dilation). Construction in GeoGebra uses Segment to build the initial trunk, Point to define key endpoints, Dilate to create scaled child branches, and Iteration to repeatedly apply the transformation layer by layer to generate the fractal structure. The workflow is organized with objects such as Setup, a control button (button1), list outputs (ListOutPut), per-step/level references (L1–L9), and parameters like n and Ln that drive both the geometry generation and the visual styling. Suitable for upper secondary students through introductory university coursework, particularly for math visualization, modeling, and geometry construction lessons.

GeoGebra Commands & Parameters

  1. Segment((0, 0), (0, 2)) → f
  2. Point(f, 0) → A
  3. Point(f, 1) → B
  4. Dilate(Rotate[A, pi + pi / 4, B], 0.75, B) → C
  5. Dilate(Rotate[A, pi - pi / 4, B], 0.75, B) → D
  6. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 1) → L2
  7. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 2) → L3
  8. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 3) → L4
  9. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 4) → L5
  10. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 5) → L6
  11. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 6) → L7
  12. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 7) → L8
  13. Iteration(Flatten[Zip[Grow[s], s, level]], level, {{f}}, 8) → L9

AI Drawing Prompt Reference

Draw a fractal tree starting with a trunk of length 2, then recursively generate branches by rotating and scaling, creating two branches at the first level and doubling the number of branches at each subsequent level while reducing length and thickness proportionally. Gradually change the color to emphasize depth, with each layer becoming darker, showcasing self-similarity and the iterative construction process. Highlight the branching pattern and the visual effect of scaling and color changes across levels.
The prompt above was compiled from the original drawing commands and is for reference only.