Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/ppmrainbow.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Ppmrainbow User Manual
.SH 1
ppmrainbow
.LP
Updated: 14 October 2005
.br
Table Of Contents
.SH 2
NAME
.LP
ppmrainbow - Generate a rainbow
.SH 2
SYNOPSIS
.LP
\fBppmrainbow\fR
[\fB-width=\fR\fInumber\fR]
[\fB-height=\fR\fInumber\fR]
.br
[\fB-tmpdir=\fR\fIdirectory\fR]
[\fB-norepeat\fR]
[\fB-verbose\fR]
\fIcolor\fR ...
.LP
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.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
\fBppmrainbow\fR generates a PPM image that fades from one color to
another to another from left to right, like a rainbow.  The colors are
those you specify on the command line, in that order.  The first color
is added again on the right end of the image unless you specify the
\fB-norepeat\fR option.
.LP
If you want a vertical or other non-horizontal rainbow, run the output
through \fBpnmrotate\fR or \fBpamflip\fR.
.LP
One use for such a rainbow is to compose it with another image
under an alpha mask in order to add a rainbow area to another image.
In fact, you can make rainbow-colored text by using \fBpbmtext\fR,
\fBpamcomp\fR, and \fBppmrainbow\fR.
.LP
\fBpgmramp\fR does a similar thing for grayscale images.
.LP
If you just want an image containing all the possible colors (for some
kind of processing; not to look at), see \fBpamseq\fR.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-width \fR\fInumber\fR"
The width in pixels of the output image.
.LP
Default is 600.
.IP "\fB-height \fR\fInumber\fR"
The height in pixels of the output image.
.LP
Default is 8.
.IP "\fB-norepeat\fR"
This option makes \fBppmrainbow\fR end the rainbow with the last
color you specify.  Without this option, \fBppmrainbow\fR adds the
first color you specify to the right end of the rainbow as if you had
repeated it.  \fI(I don't understand the point of this default behavior;
it exists today just for backward compatibility).\fR
.IP "\fB-tmpdir\fR"
The directory specification of the directory \fBppmrainbow\fR is
to use for temporary files.
.LP
Default is the value of the \fBTMPDIR\fR environment variable, or
\fB/tmp\fR if \fBTMPDIR\fR is not set.
.IP "\fB-verbose\fR"
Print the "commands" (invocations of other Netpbm
programs) that \fBppmrainbow\fR uses to create the image.
.RE
.SH 2
SEE ALSO
.LP
\fBpgmramp\fR,
\fBpamseq\fR,
\fBpamgradient\fR,
\fBppmmake\fR,
\fBppmfade\fR,
\fBppm\fR.
.SH 2
AUTHOR
.LP
.LP
Arjen Bax wrote \fBppmrainbow\fR in June 2001 and contributed it
to the Netpbm package.  Bryan Henderson wrote this manual in July
2001.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.