1Pgmramp User Manual(0)                                  Pgmramp User Manual(0)
2
3
4

NAME

6       pgmramp - generate a grayscale ramp
7
8

SYNOPSIS

10       pgmramp  {-lr|-tb|-rectangle|-ellipse|-diagonal} [-maxval=maxval] width
11       height
12
13       All options can be abbreviated to their shortest  unique  prefix.   You
14       may use two hyphens instead of one to designate an option.  You may use
15       either white space or an equals sign between an  option  name  and  its
16       value.
17
18

DESCRIPTION

20       This program is part of Netpbm(1).
21
22       Generates  a  graymap of the specified size containing a black-to-white
23       ramp.  These ramps are useful for multiplying with other images,  using
24       pamarith.
25
26       The  ramp  is linear in brightness, not intensity.  I.e. the gamma-cor‐
27       rected sample values in the PGM rise linearly with  distance  from  the
28       corner of the image.  If you want a ramp that is linear in light inten‐
29       sity, use pnmgamma with pgmramp.
30
31       Options let you choose the shape of the ramp  (left  to  right,  inside
32       out,  etc.).  You can use pamflip to get more shapes.  For example, the
33       -lr option gives you a left to right ramp and
34
35           $ pgmramp -lr 100 100 | pamflip -lr
36
37       gives you a right to left ramp.
38
39       To generate a simple ramp of all the values from 0 to maxval,  and  not
40       necessarily a graphic image, use pamseq(1).
41
42       ppmrainbow  does something similar to what pgmramp does, but for color.
43       The image fades between two colors of your choice.
44
45
46

OPTIONS

48       You must specify exactly one of the ramp type options.
49
50
51       -lr    A left to right ramp.  Black on the left; white on the right.
52
53
54       -tb    A top to bottom ramp.  Black on top; white on the bottom.
55
56
57       -rectangle
58              An outside-in rectangular ramp.  It is black  around  the  edges
59              and white in the center.
60
61
62       -ellipse
63              An  outside-in elliptical ramp.  It is black around the edge and
64              white in the center.
65
66
67       -diagonal
68              A ramp from top left corner diagonally  down  to  bottom  right.
69              Black at the top left; white at the bottom right.
70
71              This option was new in Netpbm 10.66 (March 2014).
72
73
74       -maxval=maxval
75                   The maxval for the generated image.  Default is 255.
76
77                   This  option  was  new  in Netpbm 10.1 (June 2002).  Before
78              that, the maxval
79                   is always 255.
80
81
82
83
84

SEE ALSO

86       pamflip(1), pamarith(1), pnmgamma(1), pamseq(1), ppmrainbow(1), pamgra‐
87       dient(1), pgm(1)
88
89
90

AUTHOR

92       Copyright (C) 1989 by Jef Poskanzer.
93

DOCUMENT SOURCE

95       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
96       source.  The master documentation is at
97
98              http://netpbm.sourceforge.net/doc/pgmramp.html
99
100netpbm documentation           15 February 2014         Pgmramp User Manual(0)
Impressum