{
    "mode": "man",
    "parameter": "pamgradient",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pamgradient/1/json",
    "generated": "2026-09-02T09:24:43Z",
    "synopsis": "pamgradient [-maxval=maxval] color-tl color-tr color-bl color-br width height\nMinimum  unique  abbreviation of option is acceptable.  You may use double hyphens instead of\nsingle hyphen to denote options.  You may use white space in place of the equals sign to sep‐\narate an option name from its value.",
    "sections": {
        "NAME": {
            "content": "pamgradient - create a four-corner gradient PAM image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamgradient [-maxval=maxval] color-tl color-tr color-bl color-br width height\n\nMinimum  unique  abbreviation of option is acceptable.  You may use double hyphens instead of\nsingle hyphen to denote options.  You may use white space in place of the equals sign to sep‐\narate an option name from its value.\n\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\npamgradient creates an image of the specified dimensions width by  height  which  contains  a\nsmooth,  two-dimensional  gradient between the specified colors of the four corners (from top\nleft to bottom right).\n\nSpecify the colors as described for the \u001b]8;;libnetpbmimage.html#colorname\u001b\\argument of the pnmparsecolor() library routine\u001b]8;;\u001b\\ .\n\nIf all four colors are gray values, pamgradient creates a grayscale  image  (PAM  tuple  type\nGRAYSCALE).  Otherwise, it creates a color image (PAM tuple type RGB).\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet,\nsee \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ ), pamgradient recognizes the following command line option:\n\n\n",
            "subsections": [
                {
                    "name": "-maxval=_",
                    "content": "maxval of the generated image.  (See PAM(1) and PNM(1) specifications).\n\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pamgradient(1), ppmmake(1), ppmrainbow(1), pgmramp(1), ppmpat(1), pam(1), pnm(1)\n\n",
            "subsections": []
        },
        "NOTE": {
            "content": "Only the top left corner of the generated image has exactly the specified color.   The  color\nof  the  top  right corner is a bit shifted to the left, the bottom left corner a bit up, and\nthe bottom right corner left and up. This ensures nice transitions  when  combining  adjacent\n(very narrow) gradients, and doesn't play a role when the gradient butts against a solid sur‐\nface.\n\nThis effect is created by the integer arithmetic used for the interpolation of the color val‐\nues,  and  since it doesn't make a difference for all practical purposes I might as well sell\nit as a feature.\n\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "pamgradient was new in Netpbm 10.31 (December 2005).\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "pamgradient was written by Daniel Haude in October 2005.\n",
            "subsections": []
        },
        "DOCUMENT SOURCE": {
            "content": "This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pamgradient.html\n\nnetpbm documentation                       21 October 2005                Pamgradient User Manual(1)",
            "subsections": []
        }
    },
    "summary": "pamgradient - create a four-corner gradient PAM image",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "maxval of the generated image. (See PAM(1) and PNM(1) specifications)."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "ppmmake",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmmake/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": "ppmpat",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmpat/1/json"
        },
        {
            "name": "pam",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pam/1/json"
        },
        {
            "name": "pnm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnm/1/json"
        }
    ]
}