![]() Fractals |
Fractal
Landscapes Generator |
| How does it work? Shapes of mountains and clouds really are fractals and the algorithm for their generation literally follows the fractals definition.
Such a fractal-generating algorithm is a very simple one and it is almost the same for mountains as for clouds. Both of them are generated by the recursive procedure that picks random values for the corners of some simple shape and then recursively fractures it to obtain the next shape. The fractured shape for mountain generation is a triangle and each value stands for altitude, whereas the fractured shape for clouds is a rectangle and each node's value should be transformed to color. Random values are averaged with nearest nodes' values so both rock surface and clouds look sufficiently smooth. What is going on? At the top part of the applet there is a panel containing three groups of check boxes (such grouped check boxes are known as option buttons or radio buttons).
|