summary refs log tree commit diff
path: root/ppmrainbow.html
blob: 68528e49cf672a0b7dbe6fff1d64dd6fd74e8f0f (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Ppmrainbow User Manual</title></head>
<body>
<h1>ppmrainbow</h1>
Updated: 12 November 2014
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>

ppmrainbow - Generate a rainbow

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

<b>ppmrainbow</b>

[<b>-width=</b><i>number</i>] [<b>-height=</b><i>number</i>]

<br>

[<b>-tmpdir=</b><i>directory</i>] [<b>-norepeat</b>] [<b>-verbose</b>] <i>color</i> ...

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

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

<b>ppmrainbow</b> generates a PPM image that fades from one color to
another to another from left to right, like a rainbow.

<p>If you want a vertical or other non-horizontal rainbow, run the output
through <b>pnmrotate</b> or <b>pamflip</b>.

<p>One use for such a rainbow is to compose it with another image
under a transparency mask in order to add a rainbow area to another image.
In fact, you can make rainbow-colored text by using <b>pbmtext</b>,
<b>pamcomp</b>, and <b>ppmrainbow</b>.

<p><b>pgmramp</b> does a similar thing for grayscale images.

<p>If you just want an image containing all the possible colors (for some
kind of processing; not to look at), see <b>pamseq</b>.


<h2 id="arguments">ARGUMENTS</h2>

<p><i>color</i> ... is the list of colors, in order from left to right,
to go into the rainbow.

<p>The first color is added again on the right end of the image unless you
specify the <b>-norepeat</b> option.  This means you can concatenate multiple
copies (tile, as with <b>pnmtile</b>) to make a continuous larger image.

<p><i>color</i> is as described for
the <a href="libnetpbm_image.html#colorname">argument of the <b>pnm_parsecolor()</b>
library routine</a>.


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

<p>All options can be abbreviated to their shortest unique prefix.
You may use two hyphens instead of one to designate an option.  You
may use either white space or equals signs between an option name and
its value.

<dl compact>
<dt><b>-width </b><i>number</i>

<dd>
The width in pixels of the output image.

<p>Default is 600.

<dt><b>-height </b><i>number</i>

<dd>
The height in pixels of the output image.

<p>Default is 8.

<dt><b>-norepeat</b>
     
<dd>This option makes <b>ppmrainbow</b> end the rainbow with the last
color you specify.  Without this option, <b>ppmrainbow</b> adds the
first color you specify to the right end of the rainbow as if you had
repeated it.

<dt><b>-tmpdir</b>

<dd>The directory specification of the directory <b>ppmrainbow</b> is
to use for temporary files.

<p>Default is the value of the <b>TMPDIR</b> environment variable, or
<b>/tmp</b> if <b>TMPDIR</b> is not set.

<p><b>ppmrainbow</b> always creates a directory within this directory
and creates all its files within that directory.

<dt><b>-verbose</b>

<dd>Print the "commands" (invocations of other Netpbm
programs) that <b>ppmrainbow</b> uses to create the image.

</dl>

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

<b><a href="pgmramp.html">pgmramp</a></b>,
<b><a href="pamseq.html">pamseq</a></b>,
<b><a href="pamgradient.html">pamgradient</a></b>,
<b><a href="ppmmake.html">ppmmake</a></b>,
<b><a href="ppmfade.html">ppmfade</a></b>,
<b><a href="ppm.html">ppm</a></b>.

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

<p>Arjen Bax wrote <b>ppmrainbow</b> in June 2001 and contributed it
to the Netpbm package.  Bryan Henderson wrote this manual in July
2001.

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