1Pamgradient User Manual(0) Pamgradient User Manual(0)
2
3
4
6 pamgradient - create a four-corner gradient PAM or PNM image
7
8
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
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
36 -maxval=maxval
37
38
39 maxval of the generated image. (See PAM(1)and PNM(1)specifica‐
40 tions).
41
42
43
45 ppmmake(1), ppmrainbow(1), pgmramp(1), ppmpat(1), pam(1), pnm(1)
46
47
49 Only the top left corner of the generated image has exactly the speci‐
50 fied color. The color of the top right corner is a bit shifted to the
51 left, the bottom left corner a bit up, and the bottom right corner left
52 and up. This ensures nice transitions when combining adjacent (very
53 narrow) gradients, and doesn't play a role when the gradient butts
54 against a solid surface.
55
56 This effect is created by the integer arithmetic used for the interpo‐
57 lation of the color values, and since it doesn't make a difference for
58 all practical purposes I might as well sell it as a feature.
59
60
62 pamgradient was new in Netpbm 10.31 (December 2005).
63
64
66 pamgradient was written by Daniel Haude in October 2005.
67
68
69
70netpbm documentation 21 October 2005 Pamgradient User Manual(0)