ifs(N, flag) constructs a fractal picture by the |
principle of a IFS (iterated function system).
It plots N single points according to a transformation
which is chosen randomly of a fixed set of transformations.
The set is determined by the value of flag:
flag = 0 results in the Sierpinski triangle;
flag = 1 draws the Koch curve;
flag = 2 shows a fractal tree;
flag = 3 returns a fractal farn leaf;
otherwise a christmas tree is constructed.
ifs(N) draws the farn leaf with N points.
ifs draws the farn leaf with N = 500000 points.
Usage: Type unzip ifs.zip
Contents: ifs.m chrtree.m farn.m frbaum.m koch.m sierdr.m
This file was generated by students as a partial fulfillment
for the requirements of the course "Fractals",
Winter term 2004/2005, Stuttgart University.