An interactive Java Swing–based L-System generator and visualizer for exploring fractals. Define production rules, iterations, and angles to generate structures like binary trees or ferns. The app supports real-time animation, zoom & pan, and customizable drawing options such as stroke width, segment length, and an optional turtle cursor.
- Custom Rules → Define up to two rules and an axiom; set iterations and angle.
- Drawing Options → Adjustable segment length, stroke width, and “Draw Turtle” option.
- Animation → Speed slider with step-by-step growth via timer.
- Interactive Controls → Zoom with mouse wheel, pan by dragging.
- Turtle Graphics Commands:
+/-→ increase/decrease stroke width[/]→ save/restore state (branching)</>→ rotate left/right*→ draw a red circle marker- Default → draw green line forward
- Java JDK 17+ (OpenJDK recommended)
- No external libraries required
git clone https://github.com/isavic01/L-System-visualizer.git
cd L-System-visualizer
javac Project3_Functions.java Project3_Codebase.java
java Project3_Codebase