Table of Contents
pgmclouds - generate a random picture of clouds
pgmclouds
[-x width] [-y height]
pgmclouds generates a picture which looks
like a cloudy sky. The algorithm first paints the corner pixels, which
may have very different gray scales. In subsequent steps, pixels in between
are painted by using an average of neighbour pixels plus/minus a random
value, which interval is the smaller the nearer the pixels are to each
other.
- -x width
- Generate a picture which is width pixels wide. The
default is 512.
- -y height
- Generate a picture which is height pixels high.
The default is 512.
Michael Haardt, 1998.
The algorithm used
is a slightly modified version of the algorithm presented in lqThomas Graf:
Mathematische Wolken, Amiga-Magazin 10/1987, p. 91en92rq.
pgm(5)
Table of Contents