{
    "mode": "man",
    "parameter": "ppmcolors",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmcolors/1/json",
    "generated": "2026-06-16T00:37:23Z",
    "synopsis": "ppmcolors [-maxval=maxval]\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one to designate an option.  You may use either white space or an  equals  sign  be‐\ntween an option name and its value.",
    "sections": {
        "NAME": {
            "content": "ppmcolors - generate a color map of all colors of a certain maxval\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmcolors [-maxval=maxval]\n\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one to designate an option.  You may use either white space or an  equals  sign  be‐\ntween an option name and its value.\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ppmcolors  generates  a  PPM color map containing all the colors representable with a certain\nmaxval.\n\nA PPM color map is a regular PPM image that is used by some programs to define a set of  col‐\nors.\n\nppmcolors  generates  a one row PPM image that contains one pixel of each color representable\nby the maxval you choose.  The maxval of the PPM image is that maxval.   Note  that  you  can\nchange  the  maxval of the color map by running the output of ppmcolors through pnmdepth.  As\nlong as the new maxval is a multiple of the original, the resulting set  of  colors  will  be\nidentical.  If the new maxval is not a multiple, the resulting set of colors will be slightly\ndifferent.\n\nWhen you select a maxval of 5 (which is the default), you get a color map of the set of  \"web\nsafe\"  colors  as  defined by Netscape.  Most web browsers guarantee that they can produce at\nleast these 216 colors (215 plus black).\n\npnmcolormap is another program to generate a color map.  It chooses a set of colors  designed\nto represent the colors in a specified image (or simply the set of all the colors in that im‐\nage, if you choose).\n\npgmramp performs a similar function for PGM images.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-maxval=",
                    "content": "This is the maxval of the generated color map.  Default is 5.\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pnmdepth(1), pnmcolormap(1), ppmcie(1), ppmrainbow(1), pgmramp(1), ppm(5)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "By Bryan Henderson, December 2001.\n\n\n\n\n\n20 December 2001                              ppmcolors(1)",
            "subsections": []
        }
    },
    "summary": "ppmcolors - generate a color map of all colors of a certain maxval",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This is the maxval of the generated color map. Default is 5."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pnmdepth",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnmdepth/1/json"
        },
        {
            "name": "pnmcolormap",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnmcolormap/1/json"
        },
        {
            "name": "ppmcie",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmcie/1/json"
        },
        {
            "name": "ppmrainbow",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmrainbow/1/json"
        },
        {
            "name": "pgmramp",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pgmramp/1/json"
        },
        {
            "name": "ppm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
        }
    ]
}