Table of Contents
pgmmountains - generate a random landscape of mountains and sea
pgmmountains
pgmmountains generates a random landscape of
mountains and sea on standard output. The algorithm starts with a single
triangle, which is divided in four triangles. The corners of these triangles
are modified using random numbers. Each of these triangles is again splitted.
If corners fall below heigth zero, they will be painted as sea.
Michael
Haardt, 1998.
The algorithm used is a slightly modified version
of the algorithm presented in lqFrank/Kreuder, Norbert Siepenkötter: Gebirge
aus dem Computer, Amiga-Magazin 10/1987, p. 83rq.
pgm(5)
Table of Contents