Animated Fractal Tree

 

 

Insructions:
Applet draws
nth iteration of fractal tree. It changes the angle in continues way from 0 to given value.
You can set following parameters:
angle - angle of new branch (you can set different values for left and right branches), it should be in the range from 0 to 90.

lenght ratio - lenght of new branch to old barnch (you can set different values for left and right branches), it should be in the range from 0 to 1.

position - position of new branch if it is 1 it corresponds to the end of old branch, when it is 0, it is the beginning of the old branch (you can set different values for left and right branches), it should be in the range from 0 to 1.

You need to press
Draw button to see changes.


Description:
The fractal tree is constructed by adding to each line segment two others line segments that are shorter. Creating fractal tree you can define the length ratio between subsequent line segments, angle between them and position of new line segments.
You can observe a process of creation of the fractal tree "step by step" setting up step number to one and incrementing it using "
+" button.
Some interesting trees can be drawn by setting
position to 0.
If you set one
angle to 90 and second angle to 30 you will see interesting motion of tree. If you set angle to 90 you will get something similar to Hilbert curve.
Another interesting tree can be drawn by setting
position to 1 and angle to 90 .


back to fractal tree






back to main page