1Pamgradient User Manual(0)                          Pamgradient User Manual(0)
2
3
4
5<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
6
7
8
9

NAME

11       pamgradient - create a four-corner gradient PAM or PNM image
12
13

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

41       -maxval=maxval
42
43
44              maxval of the generated image.  (See PAM(1)and  PNM(1)specifica‐
45              tions).
46
47
48              <H2  id="see_also">SEE ALSO</H2> ppmmake(1), ppmrainbow(1), pgm‐
49              ramp(1), ppmpat(1), pam(1), pnm(1)
50
51

NOTE

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

HISTORY

66       pamgradient was new in Netpbm 10.31 (December 2005).
67
68

AUTHOR

70       pamgradient was written by Daniel Haude in October 2005.
71
72
73
74netpbm documentation            21 October 2005     Pamgradient User Manual(0)
Impressum