# pgmramp

Updated: 04 June 2002
Index

## NAME

pgmramp - generate a grayscale ramp

## SYNOPSIS

pgmramp -lr|-tb|-rectangle|-ellipse -maxval=maxval width height

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.

## DESCRIPTION

Generates a graymap of the specified size containing a black-to-white ramp. These ramps are useful for multiplying with other images, using the pnmarith tool.

To generate a simple ramp of all the value from 0 to maxval, and not necessarily a graphic image, use pamseq.

## OPTIONS

You must specify exactly one of the ramp type options.

-lr
  A left to right ramp.
-tb
  A top to bottom ramp.
-rectangle
  A rectangular ramp.
-ellipse
  An elliptical ramp.
-maxval=maxval
  The maxval for the generated image. Default is 255.

  This option did not exist before June 2002. Before, the maxval was always 255.

## SEE ALSO

pnmarith, pamseq, ppmrainbow, pgm

## AUTHOR

Copyright (C) 1989 by Jef Poskanzer.

## Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR