119 lines
3.1 KiB
HTML
119 lines
3.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmcolors</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmcolors</H1>
|
|
Section: User Commands (1)<BR>Updated: 20 December 2001<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ppmcolors - generate a color map of all colors of a certain maxval
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ppmcolors</B>
|
|
|
|
[<B>-maxval=</B><I>maxval</I>]
|
|
|
|
<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 an equals sign between an option name and its
|
|
value.
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>ppmcolors</B>
|
|
|
|
generates a PPM color map containing all the colors representable with
|
|
a certain maxval.
|
|
<P>
|
|
A PPM color map is a regular PPM image that is used by some programs to
|
|
define a set of colors.
|
|
<P>
|
|
<B>ppmcolors</B>
|
|
|
|
generates a one row PPM image that contains one pixel of each color
|
|
representable by the maxval you choose. The maxval of the PPM image is
|
|
that maxval. Note that you can change the maxval of the color map by
|
|
running the output of
|
|
<B>ppmcolors</B>
|
|
|
|
through
|
|
<B>pnmdepth</B>.
|
|
|
|
As long as the new maxval is a multiple of the original, the resulting
|
|
set of colors will be identical. If the new maxval is not a multiple,
|
|
the resulting set of colors will be slightly different.
|
|
<P>
|
|
When you select a maxval of 5 (which is the default), you get a color
|
|
map of the set of "web safe" colors as defined by Netscape. Most web
|
|
browsers guarantee that they can produce at least these 216 colors
|
|
(215 plus black).
|
|
<P>
|
|
<B>pnmcolormap</B>
|
|
|
|
is another program to generate a color map. It chooses a set of colors
|
|
designed to represent the colors in a specified image (or simply the set
|
|
of all the colors in that image, if you choose).
|
|
<P>
|
|
<B>pgmramp</B>
|
|
|
|
performs a similar function for PGM images.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-maxval=</B><I>maxval</I>
|
|
|
|
<DD>
|
|
This is the maxval of the generated color map. Default is 5.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmdepth">pnmdepth</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmcolormap">pnmcolormap</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmcie">ppmcie</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmrainbow">ppmrainbow</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pgmramp">pgmramp</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A></B>(5)
|
|
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
By Bryan Henderson, December 2001.
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="2"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="3"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="4"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="5"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="6"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="7"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:24 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|