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       In addition to the options common to all programs  based  on  libnetpbm
49       (most notably -quiet, see
50        Common  Options  ⟨index.html#commonoptions⟩  ), pgmramp recognizes the
51       following command line options:
52
53       You must specify exactly one of the ramp type options.
54
55
56
57       -lr    A left to right ramp.  Black on the left; white on the right.
58
59
60       -tb    A top to bottom ramp.  Black on top; white on the bottom.
61
62
63       -rectangle
64              An outside-in rectangular ramp.  It is black  around  the  edges
65              and white in the center.
66
67
68       -ellipse
69              An  outside-in elliptical ramp.  It is black around the edge and
70              white in the center.
71
72
73       -diagonal
74              A ramp from top left corner diagonally  down  to  bottom  right.
75              Black at the top left; white at the bottom right.
76
77              This option was new in Netpbm 10.66 (March 2014).
78
79
80       -maxval=maxval
81                   The maxval for the generated image.  Default is 255.
82
83                   This  option  was  new  in Netpbm 10.1 (June 2002).  Before
84              that, the maxval
85                   is always 255.
86
87
88
89
90

SEE ALSO

92       pamflip(1), pamarith(1), pnmgamma(1), pamseq(1), ppmrainbow(1), pamgra‐
93       dient(1), pgm(1)
94
95
96

AUTHOR

98       Copyright (C) 1989 by Jef Poskanzer.
99

DOCUMENT SOURCE

101       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
102       source.  The master documentation is at
103
104              http://netpbm.sourceforge.net/doc/pgmramp.html
105
106netpbm documentation           15 February 2014         Pgmramp User Manual(0)
Impressum