![]() |
||
| Home About me My Photo Album Greetings Technical Matters Suggestions | Mail me | |
![]() |
||
|
The L-System | ||
|
L-System :
its the fractal method to represent objetcs by two strings with the symbol 'D','+','-','(',')' and more.
For each : 'D' : denotes a straight line. '+','-' : Change the direction in the means of an angle. '(' : Starts a branching. ')' : Ends a branching and return to the previous position. We start with the first string. and in each itration we replace each 'D's in the first string with the second string. Eg: Snowflake Crystal : Start String : D--D--D Repetation String : D+D--D+D Start Angle : 0 Degree Angle Cahnge : 60 Degree Iteration 1 : D--D--D (Start Text) : Her we get a Triangle Form Draw a Line for fisrt 'D'. decrease the current direction 2 times Current Direction : 0 degree = 360 degree so for 2 changes with 60 degree the next direction will be 240 degree. Draw the line for next 'D' in the direction 240 degree. Change direction again 2 times. so next direction will ne 120 degree and draw line again. By this we will get a Triangle. Iteration 2 : Replace each 'D' in 'D--D--D' (Start Text) with 'D+D--D+D' (repetiotion String) So we will get 'D+D--D+D--D+D--D+D--D+D--D+D' Iteration 3 : 'D+D--D+D+D+D--D+D--D+D--D+D+D+D--D+D--D+D--D+D+D+D--D+D--D+D--D+D+D+D--D+D--D+D--D+D+D+D--D+D--D+D--D+D+D+D--D+D' And so on......... |
||
|
Snowflake : a microscopical view
|
Back | |
|
||
|
The Great Sierspinski Triangle
|
||
| Back | ||