about summary refs log tree commit diff
path: root/pgmnoise.html
blob: 4e7f503023bab5f6ca447b157265573276a59b97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Pgmnoise User Manual</title></head>
<body>
<h1>pgmnoise</h1>
Updated: 27 June 2013
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>
pgmnoise - create a PGM image made up of white noise

<h2 id="synopsis">SYNOPSIS</h2>

<b>pgmnoise</b> <i>width</i> <i>height</i>

[<b>-maxval=</b><i>n</i>]
[<b>-randomseed=</b><i>integer</i>]

<p>Minimum unique abbreviations of option are acceptable.  You may use
double hyphens instead of single hyphen to denote options.  You may use
white space in place of the equals sign to separate an option name
from its value.


<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>pgmnoise</b> creates a PGM image that is made up of pixels
of random brightness.

<p>You specify the dimensions of the image with the <i>width</i>
and <i>height</i> arguments.

<p>The randomness in the image is limited before Netpbm 10.37 (December
2006) -- if you run the program twice in the same second, you may get
identical output.


<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>pgmnoise</b> recognizes the following
command line options:

<dl>
<dt><b>-maxval=</b><i>n</i>
<dd>The maxval of the generated image.
<p>Default is 255.
<p>This option was new in Netpbm 10.63 (June 2013).

<dt><b>-randomseed=</b><i>integer</i>

<dd>This is the seed for the random number generator that generates the
pixels.

<p>Use this to ensure you get the same image on separate invocations.

<p>By default, <b>pgmnoise</b> uses a seed derived from the time of day
and process ID, which gives you fairly uncorrelated results in multiple
invocations.

<p>This option was new in Netpbm 10.45 (December 2008).

</dl>

<h2 id="seealso">SEE ALSO</h2>

<a href="pgm.html">pgm</a>

<h2 id="author">AUTHOR</h2>

Copyright (C) 1993 by Frank Neumann

<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#author">AUTHOR</a>
</ul>
</body>
</html>