Table of Contents

NAME

pgmmountains - generate a random landscape of mountains and sea

Synopsis

pgmmountains

Description

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.

Author

Michael Haardt, 1998.

History

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.

See Also

pgm(5)


Table of Contents