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

NAME

6       pampaintspill - smoothly spill colors into the background
7
8

SYNOPSIS

10       pampaintspill  [--bgcolor=color] [--wrap] [--all] [--downsample=number]
11       [--power=number] [filename] [-randomseed=integer]
12
13       Minimum unique abbreviations of option are  acceptable.   You  may  use
14       double 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

DESCRIPTION

20       This program is part of Netpbm(1).
21
22       pampaintspill  produces  a  smooth  color gradient from all of the non-
23       background-colored pixels in  an  input  image,  effectively  "spilling
24       paint"  onto  the  background.  pampaintspill is similar to pamgradient
25       but differs in the following characteristics:
26
27
28
29pampaintspill accepts any number of paint
30                    sources (non-background-colored  pixels),  which  can  lie
31              anywhere
32                    on the canvas.  pamgradient accepts exactly
33                    four paint sources, one in each corner of the image.
34
35
36pampaintspill requires an input image while
37                    pamgradient generates a new image from
38                    scratch.
39
40
41pampaintspill can produce tileable output and
42                    can  control how tightly the gradient colors bind to their
43              source
44                    pixels.
45
46
47       Results are generally best when the input image contains  just  a  few,
48       crisp  spots  of color. Use your drawing program's pencil tool - as op‐
49       posed to a paintbrush or airbrush tool - with a small nib.
50
51

OPTIONS

53       In addition to the options common to all programs  based  on  libnetpbm
54       (most notably -quiet, see
55        Common  Options ⟨index.html#commonoptions⟩ ), pampaintspill recognizes
56       the following command line options:
57
58
59
60       --bgcolor=color
61
62              Explicitly specify the background color. color can be
63                    specified  using  any  of  the  formats  accepted  by  the
64              pnm_parsecolor()              library                    routine
65              ⟨libnetpbm_image.html#colorname⟩  such as red or #ff0000.  If
66                    --bgcolor is not specified, pampaintspill makes an
67                    educated guess about the background  color  based  on  the
68              colors in the
69                    image's corners.
70
71
72       --wrap
73
74              Allow gradients to wrap around image borders. That is, colors
75                    that spill off the right side of the image reappear on the
76              left side of
77                    the image and likewise for left/right, top/bottom, and
78                    bottom/top. --wrap makes images tileable,  which  is  nice
79              for
80                    producing desktop backgrounds.
81
82
83       --all
84
85              Recolor all pixels, not just background pixels. Normally,
86                    non-background-colored  pixels  in  the input image appear
87              unmodified in
88                    the output image. With --all, all pixels are colored
89                    based on their distance from all of the (other)  non-back‐
90              ground-colored
91                    pixels.
92
93
94       --downsample=number
95
96              Ignore all but number non-background-colored pixels.
97                    When a large number of pixels in the input image differ in
98              color from
99                    the background, pampaintspill runs very slowly. The
100                    --downsample option randomly selects  a  given  number  of
101              colored
102                    pixels  to  use as paint sources for the gradients and ig‐
103              nores the rest,
104                    thereby trading off image quality for speed of execution.
105
106
107       --power=number
108
109              Control how color intensity changes as a function of the
110                    distance from a paint source. The default value for number
111              is
112                    -2.0, which means that intensity drops (because of the mi‐
113              nus sign) with
114                    the square (because of the 2.0) of the distance from  each
115              paint
116                    source.  -2.0  generally works well in practice, but other
117              values can be
118                    specified for various special  effects.  With  very  small
119              numbers of paint
120                    sources, -1.0 may produce subtler gradients, but these get
121              muddier as
122                    the number of paint sources  increases.  Positive  numbers
123              (e.g., 1.0 and
124                    2.0)  make the paint sources stand out in the output image
125              by pushing the
126                    gradients away from them.
127
128       -randomseed=integer
129
130              This is the seed for the random number generator that  generates
131              the
132                pixels.
133
134              Use  this  to  ensure you get the same image on separate invoca‐
135              tions.
136
137              This option was new in Netpbm 10.94 (March 2021).
138
139
140
141

SEE ALSO

143
144
145              pamgradient(1)
146
147
148
149              ppmmake(1),
150
151
152
153              ppmrainbow(1),
154
155
156
157              pgmramp(1),
158
159
160
161              ppmpat(1),
162
163
164
165              pam(1)
166
167
168

HISTORY

170       pampaintspill was new in Netpbm 10.50 (March 2010).
171
172
173
175       Copyright © 2010 Scott Pakin, scott+pbm@pakin.org.
176
177

Table Of Contents

179
180
181              SYNOPSIS ⟨#synopsis⟩
182
183
184
185              DESCRIPTION ⟨#description⟩
186
187
188
189              OPTIONS ⟨#options⟩
190
191
192
193              SEE ALSO ⟨#seealso⟩
194
195
196
197              HISTORY ⟨#history⟩
198
199
200
201              COPYRIGHT ⟨#copyright⟩
202

DOCUMENT SOURCE

204       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
205       source.  The master documentation is at
206
207              http://netpbm.sourceforge.net/doc/pampaintspill.html
208
209netpbm documentation             06 March 2021    Pampaintspill User Manual(0)
Impressum