# L-System Fractals

This tutorial creates several L-System Fractals and explores different methods of displaying them.

In Part 1 of the tutorial, we are going to generate a simple L-System fractal.

Execute the Reset to Defaults command on the File menu of the Fractal Window.

Open the Properties Window and select the General properties page:

Select L-System for the Fractal Type in the General section of the page.

Next, turn on Anti-Aliasing by setting Oversampling to 3x3 Oversampling in the Anti-Aliasing section.

Next, select the L-System properties page:

Set the Order to 5 and the Line Width to 0.02.

The Order specifies the depth of recursion the Fractal Science Kit should use when processing the L-System fractal. When you try out a new L-System, you should always use a small number for Order and then increase the number until you get the desired detail. Using an Order that is too big for a given L-System can cause the system to hang while it tries to process the instructions. If this occurs, you will need to cancel the processing and reduce the Order.

Next, select the L-System Instructions properties page:

Change the L-System to Hilbert. This defines a Hilbert Curve.

Execute the Display Fractal command on the Tools menu of the Fractal Window to generate the fractal image.

Now, go to the General page and check the Emboss Image checkbox in the Embossing section.

Execute the Display Fractal command on the Tools menu of the Fractal Window to generate the fractal image.

At this point you should try out several of the different L-System fractals. Simply return to the L-System Instructions properties page and select a new L-System by setting the L-System property to one of the different programs, and then execute the Display Fractal command on the Tools menu of the Fractal Window. You may need to go to the L-System page and change the Order and/or Line Width values based on the L-System fractal you choose.

Here are a few examples:

 SierpinskiTriangle
 KochIsland
 Dragon