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

NAME

6       pamgradient - create a four-corner gradient PAM image
7
8

SYNOPSIS

10       pamgradient  [-maxval=maxval] color-tl color-tr color-bl color-br width
11       height
12
13       Minimum unique abbreviation of option is acceptable.  You may use  dou‐
14       ble  hyphens  instead  of single hyphen to denote options.  You may use
15       white space in place of the equals sign to separate an option name from
16       its value.
17
18
19

DESCRIPTION

21       This program is part of Netpbm(1).
22
23       pamgradient  creates  an  image  of  the  specified dimensions width by
24       height which contains a smooth, two-dimensional  gradient  between  the
25       specified colors of the four corners (from top left to bottom right).
26
27       Specify   the   colors   as   described   for   the   argument  of  the
28       ppm_parsecolor() library routine ⟨libppm.html#colorname⟩ .
29
30       If all four colors are gray values,  pamgradient  creates  a  grayscale
31       image  (PAM tuple type GRAYSCALE).  Otherwise, it creates a color image
32       (PAM tuple type RGB).
33
34

OPTIONS

36       -maxval=maxval
37
38
39              maxval of the generated image.  (See PAM(1) and PNM(1)  specifi‐
40              cations).
41
42
43

SEE ALSO

45       pamgradient(1),   ppmmake(1),   ppmrainbow(1),  pgmramp(1),  ppmpat(1),
46       pam(1), pnm(1)
47
48

NOTE

50       Only the top left corner of the generated image has exactly the  speci‐
51       fied  color.  The color of the top right corner is a bit shifted to the
52       left, the bottom left corner a bit up, and the bottom right corner left
53       and  up.  This  ensures  nice transitions when combining adjacent (very
54       narrow) gradients, and doesn't play a  role  when  the  gradient  butts
55       against a solid surface.
56
57       This  effect is created by the integer arithmetic used for the interpo‐
58       lation of the color values, and since it doesn't make a difference  for
59       all practical purposes I might as well sell it as a feature.
60
61

HISTORY

63       pamgradient was new in Netpbm 10.31 (December 2005).
64
65

AUTHOR

67       pamgradient was written by Daniel Haude in October 2005.
68

DOCUMENT SOURCE

70       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
71       source.  The master documentation is at
72
73              http://netpbm.sourceforge.net/doc/pamgradient.html
74
75netpbm documentation            21 October 2005     Pamgradient User Manual(0)
Impressum