Complex Fractals

This shows the generation of fractals using complex numbers.

These fractals are defined by an Initiator (one or more lines) and a Generator (many lines). Each line in the Initiator is replaced by the lines in the Generator. The lines generated can then be replaced. This continues for many levels of replacement - until the set maximum level is reached.

Each line has a length and is at an angle, and when replaced by one in the Generator, its length is the product of the lengths of both lines, its angle is the sum of the angles of both lines.

This happens when two complex numbers are multiplied, so both Initiators and Generators are defined by complex numbers. The complex numbers define line's end relative to its start, so a line is drawn from the current position to that plus the new line, which becomes the new position.

The user can select the Fractal type and use the More/Fewer options to set the level of replacement before lines are drawn.

The Basic, Koch, Snowflake and Forest fractals are generated in this way. The Dragon and Sierpinski triangles require the replacement angle to be negated alternately - the conjugate of the generator number being used. For the dragon, this starts with the second, whereas for the triangle, each level toggles whether the first or second line's angle is negated.

You can opt to view the first few complex numbers of lines drawn (in polar form) or their end positions (in Cartesian form).

See On Complex Numbers for relevant concepts.

Basic Koch SnowFlake Forest

Dragon Sierpinski Triangle

Replacements:  

View:  

List: None Lines Positions