.TL Ppmrough User Manual .SH 1 ppmrough .LP Updated: 23 August 2002 .br Table Of Contents .SH 2 NAME .LP ppmrough - create PPM image of two colors with a ragged border between them .SH 2 SYNOPSIS .LP \fBppmrough\fR [\fB-left \fR\fIpixels\fR] [\fB-right \fR\fIpixels\fR] [\fB-top \fR\fIpixels\fR] [\fB-bottom \fR\fIpixels\fR] [\fB-width \fR\fIpixels\fR] [\fB-height \fR\fIpixels\fR] [\fB-bg \fR\fIrgb:##/##/##\fR] [\fB-fg \fR\fIrgb:##/##/##\fR] [\fB-var \fR\fIpixels\fR] [\fB-init \fR\fIseed\fR] [\fB-verbose\fR] .LP All options can be abbreviated to their shortest unique prefix. You may use two hyphens instead of one. You may separate an option name and its value with white space instead of an equals sign. .LP .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBppmrough\fR generates a PPM image of the specified width, height, and colors. \fBppmrough\fR tiles the image into semi-rectangular regions with a ragged borders between them. It calculates the fluctuations with the \fBrand()\fR standard C library function. .LP \fBppmrough\fR writes the PPM image to Standard Output. .LP The maxval of the output image is 255 (You can change this with \fBpamdepth\fR). .LP Use the options \fB-left\fR or \fB-right\fR, respectively, to make vertical borders, and \fB-top\fR or \fB-bottom\fR, respectively, to generate horizontal borders inside the image. Each of these options needs an integer value \fIpixels\fR that determines the average distance of the interior border to the related edge of the image. You may combine the \fB-left\fR, \fB-right\fR, \fB-top\fR, and \fB-bottom\fR options to generate an image with more than one border. The algorithm ensures that you can concatenate two images produced with the same (i.e. \fB-left\fR) value without dislocations. .LP You specify the dimensions of the generated image with the \fB-width\fR and \fB-height\fR options. .LP Use the \fB-bg\fR and \fB-fg\fR options to set the background (margin) color and the foreground (interior) color, respectively. If you don't specify any of the \fB-left\fR, \fB-right\fR, \fB-top\fR, and \fB-bottom\fR options, all pixels are set to foreground color. The defaults are white foreground and black background. .LP Use the \fB-var\fR option to control the "raggedness" of the border. The less its value is the smoother the border is. You can initialize the pseudo-random generator with the \fB-init\fR option. .LP You could use \fBppmrough\fR with \fBppmtopgm\fR to create a PGM alpha mask and use it to roughen up the edges of another image. .SH 2 OPTIONS .LP .RS .IP "\fB-left \fR\fIpixels\fR" Specifies the mean distance of the border from the left margin (default: no border). .IP "\fB-right \fR\fIpixels\fR" Specifies the mean distance of the border from the right margin (default: no border). .IP "\fB-top \fR\fIpixels\fR" Specifies the mean distance of the border from the top margin (default: no border). .IP "\fB-bottom \fR\fIpixels\fR" Specifies the mean distance of the border from the bottom margin (default: no border). .IP "\fB-width \fR\fIpixels\fR" Specifies the width of the image (default: 100). .IP "\fB-height \fR\fIpixels\fR" Specifies the height of the image (default: 100). .IP "\fB-bg \fR\fIcolor\fR" Background color. Specify this the same way you specify a color with \fBppmmake\fR. Default is black. .IP "\fB-fg \fR\fIcolor\fR" Foreground color. Specify this the same way you specify a color with \fBppmmake\fR. Default is white. .IP "\fB-var \fR\fIpixels\fR" Specifies the variance of the ragged border (default: 10). Must be a positive integer. Set \fIpixels\fR to 1 to get a straight border. .IP "\fB-init \fR\fIseed\fR" Use this option to initialize the pseudo-random number generator (the Standard C library \fBrand()\fR function) with \fIseed\fR. .IP "\fB-verbose\fR" Run \fBppmrough\fR in verbose mode. It reports all parameters on Standard Error. .RE .SH 2 SEE ALSO .LP \fBppmmake\fR, \fBpnmcat\fR, \fBppmtopgm\fR, \fBppm\fR, .SH 2 HISTORY .LP .LP This program was added to Netpbm in Release 10.9 (September 2002). .SH 2 AUTHOR .LP Copyright (C) 2002 by Eckard Specht. .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu SEE ALSO .IP \(bu AUTHOR .LP .br \l'5i'