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

NAME

6       ppmrough  - create PPM image of two colors with a ragged border between
7       them
8
9

SYNOPSIS

11       ppmrough
12
13       [-left pixels]
14
15       [-right pixels]
16
17       [-top pixels]
18
19       [-bottom pixels]
20
21       [-width pixels]
22
23       [-height pixels]
24
25       [-bg colorspec]
26
27       [-fg colorspec]
28
29       [-var pixels]
30
31       [-randomseed seed]
32
33       [-verbose]
34
35       All options can be abbreviated to their shortest  unique  prefix.   You
36       may  use  two  hyphens instead of one.  You may separate an option name
37       and its value with white space instead of an equals sign.
38
39

DESCRIPTION

41       This program is part of Netpbm(1).
42
43       ppmrough generates a PPM image of the specified width, height, and col‐
44       ors.   ppmrough  tiles  the  image into semi-rectangular regions with a
45       ragged borders between them.  It calculates the fluctuations  with  the
46       rand() standard C library function.
47
48       ppmrough writes the PPM image to Standard Output.
49
50       The  maxval  of  the  output  image  is  255  (You can change this with
51       pamdepth).
52
53       Use the options -left or -right, respectively, to  make  vertical  bor‐
54       ders, and -top or -bottom, respectively, to generate horizontal borders
55       inside the image.  Each of these options needs an integer value  pixels
56       that  determines  the  average  distance  of the interior border to the
57       related edge of the image.  You may combine the  -left,  -right,  -top,
58       and  -bottom  options  to  generate an image with more than one border.
59       The algorithm ensures that you can concatenate two images produced with
60       the same (i.e. -left) value without dislocations.
61
62       You  specify  the dimensions of the generated image with the -width and
63       -height options.
64
65       Use the -bg and -fg options to set the background  (margin)  color  and
66       the  foreground  (interior)  color, respectively.  If you don't specify
67       any of the -left, -right, -top, and -bottom options, all pixels are set
68       to foreground color.  The defaults are white foreground and black back‐
69       ground.
70
71       Use the -var option to control the "raggedness"  of  the  border.   The
72       less  its  value is the smoother the border is.  You can initialize the
73       pseudo-random generator with the -init option.
74
75       You could use ppmrough with ppmtopgm to create a PGM transparency  mask
76       and use it to roughen up the edges of another image.
77
78

OPTIONS

80       -left=pixels
81               Specifies  the mean distance of the border from the left margin
82              (default: no border).
83
84
85       -right=pixels
86              Specifies the mean distance of the border from the right  margin
87              (default: no border).
88
89
90       -top=pixels
91              Specifies  the  mean  distance of the border from the top margin
92              (default: no border).
93
94
95       -bottom=pixels
96              Specifies the mean distance of the border from the bottom margin
97              (default: no border).
98
99
100       -width=pixels
101              Specifies the width of the image (default: 100).
102
103
104       -height=pixels
105              Specifies the height of the image (default: 100).
106
107
108       -bg=colorspec
109              Background color.  colorspec is as described for the argument of
110              the          pnm_parsecolor()          library           routine
111              ⟨libnetpbm_image.html#colorname⟩ .  Default is black.
112
113
114       -fg=color
115              Foreground color.  colorspec is as described for the argument of
116              the          pnm_parsecolor()          library           routine
117              ⟨libnetpbm_image.html#colorname⟩ .  Default is white.
118
119
120       -var=pixels
121               Specifies the variance of the ragged border (default: 10). Must
122              be a positive integer.  Set pixels to 1 to get a  straight  bor‐
123              der.
124
125
126       -randomseed=seed
127              Use this option to initialize the pseudo-random number generator
128              (the Standard C library srand() function) with seed.
129
130              Before Netpbm 10.61 (December 2012), this is called  -init,  and
131              that still works.
132
133
134       -verbose
135              Run  ppmrough  in  verbose  mode.   It reports all parameters on
136              Standard Error.
137
138
139
140

SEE ALSO

142       ppmmake(1), pnmcat(1), ppmtopgm(1), ppm(1),
143
144

HISTORY

146       This program was added to Netpbm in Release 10.9 (September 2002).
147
148

AUTHOR

150       Copyright (C) 2002 by Eckard Specht.
151

DOCUMENT SOURCE

153       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
154       source.  The master documentation is at
155
156              http://netpbm.sourceforge.net/doc/ppmrough.html
157
158netpbm documentation            23 August 2002         Ppmrough User Manual(0)
Impressum