PPMROUGH(1)
π ppmrough(1) β Ppmrough User Manual π
okay bestie, gather round, because we're about to talk about ppmrough, and it is lowkey iconic. it makes a PPM image of a single-color rectangle with ragged edges sitting on a different color background. that's the whole vibe. periodt.
β¨ NAME β¨
ppmrough β create PPM image of a single color rectangle with ragged edges on a different color background
π SYNOPSIS π
ppmrough
[-left pixels]
[-right pixels]
[-top pixels]
[-bottom pixels]
[-width pixels]
[-height pixels]
[-bg colorspec]
[-fg colorspec]
[-var pixels]
[-randomseed seed]
[-verbose]
ngl, the CLI is so flexible about how you write it. all options can be abbreviated to their shortest unique prefix. you may use two hyphens instead of one. and you may separate an option name and its value with white space instead of an equals sign. slay, honestly. π
π¦ DESCRIPTION π¦
This program is part of Netpbm(1).
ppmrough generates a PPM image of the specified width and height.
the image consists of a rectangle of the specified foreground color surrounded by borders of the specified size and background color, except that the boundary between the foreground rectangle and the borders is ragged. and the ragged effect? random. fr fr. π²
ppmrough writes the PPM image to Standard Output. no cap.
the maxval of the output image is 255 (you can change this with pamdepth β not me giving you options or anything π
).
use the options -left or -right, respectively, to make vertical borders, and -top or -bottom, respectively, to generate horizontal borders inside the image. the value of each of these options is the minimum width of the border on that edge. beyond that minimum, the width at any given location on that edge is random, varying along the edge in a fractal kind of way. it's giving math, it's giving art, it's giving both. β¨
use the -var option to control the "raggedness" of the border. the lower its value, the smoother the border is. you can initialize the pseudo-random generator with the -init option.
you could use ppmrough with ppmtopgm to create a PGM transparency mask and use it to roughen up the edges of another image. π«Ά
β¨ OPTIONS β¨
in addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), ppmrough recognizes the following command line options:
-width=pixelsβ this specifies the width of the image in pixels (default:100).-height=pixelsβ this specifies the height of the image in pixels (default:100).-left=pixels-right=pixels-top=pixels-bottom=pixelsβ this option causes the program to create a left, right, top, or bottom border, respectively, at least pixels pixels wide, varying randomly beyond that. you may specify any combination of these. mix and match, bestie. π¨-bg=colorspecβ this is the background color, i.e. the color of the borders.colorspecis as described for the argument of thepnm_parsecolor()library routine. default is black.-fg=colorβ this specifies the foreground color, i.e. the color of the center of the mage β everything but the borders.colorspecis as described for the argument of thepnm_parsecolor()library routine. default is white.-var=pixelsβ this specifies how ragged the borders are β how much and how quickly its width varies along the image edge. its specific meaning is complex, but the larger it is, the more the border varies. zero means it does not vary at all β the edge of the foreground is straight. this must be a nonnegative integer. the default is10.-randomseed=seedβ use this option to initialize the pseudo-random number generator with seed. you can use this to cause the program to produce repeatable output. obsessed. π before Netpbm10.61(December 2012), this is called-init, and that still works. vintage, but still working.-verboseβ runppmroughin verbose mode. it reports all parameters on Standard Error. it's giving yapper energy, respectfully. π
π SEE ALSO π
ppmmake(1), pamcat(1), ppmtopgm(1), ppm(1),
π HISTORY π
this program was added to Netpbm in Release 10.9 (September 2002). a legend was born. π
π AUTHOR π
Copyright (C) 2002 by Eckard Specht.
π§ DOCUMENT SOURCE π§
this manual page was generated by the Netpbm tool makeman from HTML source. the master documentation is at
http://netpbm.sourceforge.net/doc/ppmrough.html
that's a wrap, bestie π this came from the netpbm documentation, dated 20 August 2023, and it lives under the name Ppmrough User Manual. go make some jagged little rectangles, you absolute icon. πβ¨
π¦ where this page comes from
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms