Fractal Images

A fractal image is an image that shows self-similarity. This means that the various parts of the image are just smaller, transformed versions of the whole image. A typical example of a fractal image is the Sierpinski Triangle. (The (0,0) point is at the lower left corner, the x axis runs along the bottom edge of the picture, and the y axis runs along the left edge.)
Sierpinski triangle
The Sierpinski Triangle is self-similar: The three small triangles are smaller versions of the whole triangle (and so are their parts).

Encoding a Fractal Image

The Sierpinski Triangle has three basic pieces, so it can be encoded by three affine transformations. An affine transformation has this form:

f
x
y
=
ab
cd
x
y
+
e
f
The matrix multiplication rotates, reflects, projects, contracts, dilates, or shears the point it is multiplied against. The added vector translates the result: slides it up/down or left/right. To encode the Sierpinski Triangle, do these operations:
  1. Contract the triangle by a factor of 0.5 towards (0,0). This is accomplished by the function:
    f1
    x
    y
    =
    0.50
    00.5
    x
    y
    +
    0
    0
  2. Contract the triangle by a factor of 0.5, then slide it right 5. This is accomplished by the function:

    f2
    x
    y
    =
    0.50
    00.5
    x
    y
    +
    5
    0
  3. Contract the triangle by a factor of 0.5, then slide it up 5. This is accomplished by the function:
    f3
    x
    y
    =
    0.50
    00.5
    x
    y
    +
    0
    5
Other fractal images can be encoded in a similar way. The trick is to (1) figure out what was done to the whole image to get each piece, and (2) write this as a function.

How the Image is Constructed from the Functions

There are two ways. It turns out the two methods give the same result. If you play with the first method, you will probably see why it works. However, the reason why the second method works is not at all obvious. In fact the reasons are quite deep, well beyond the scope of this course.

How to Work the Fractal Maker

Click on this button to start the Fractal Maker:

  1. To set up a system of functions, click on Start System. In the entry box that pops up, enter in the number of functions you will make.
  2. Now the display shows the number of functions and the number of the current function.
  3. Fill in the matrix and vector entries for your first function.
  4. Then click on Next Fn to bring up the second function.
  5. Keep doing this until you have entered in all of your functions.
  6. Once all of the functions are entered in, click on Draw System to produce the fractal image. In the image (The (0,0) point is at the lower left corner, the x axis runs along the bottom edge of the picture, and the y axis runs along the left edge.)