PPMPAT(1)
β¨ NAME β¨
ppmpat β make a pretty PPM image π
(and yeah, this is the Ppmpat User Manual, section 1, a General Commands Manual β welcome, bestie, you're in the right place π«Ά)
π SYNOPSIS π
ppmpat [{-gingham2|-g2} | {-gingham3|-g3} | -madras | -tartan | -poles |
-squig | -camo | -anticamo | -argyle1 | -argyle2] [-color colorlist]
[-mesh] [-randomseed integer]
width height
You can abbreviate any option to its shortest unique prefix. β¨ (typing is hard, she gets it)
π¦ DESCRIPTION π¦
okay so. This program is part of Netpbm(1).
ppmpat produces a PPM of the specified width and height, with a pattern in it. That's the whole job and she does it gorgeously. π
You could, for example, use it to create wallpaper for a computer screen. main character desktop behavior, honestly π₯
One use of this program is as an example of the Netpbm library drawing(1) functions, which it uses. So it's a demo and a slay. Iconic.
Some of the patterns have large numbers of colors, so if you want a simpler pattern, use pnmquant on the output. no cap, if it's giving too much, quantize her down π
π OPTIONS π
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), ppmpat recognizes the following command line options:
π§΅ Pattern Specification
Specify the pattern type with these options. One pattern type must be specified. (like, pick one, she's not doing all of them at once π)
-gingham2,-g2β A gingham check pattern. Can be tiled. π If you specify-color, give two colors: background and foreground, in that order.-gingham3,-g3β A slightly more complicated gingham. Can be tiled. If you specify-color, give three colors: background and two foregrounds, in that order.-madrasβ A madras plaid. Can be tiled. If you specify-color, give three colors: background and two foregrounds, in that order.-tartanβ A tartan plaid. Can be tiled. π΄ If you specify-color, give three colors: background and two foregrounds, in that order.-polesβ Color gradients centered on randomly-placed poles: a Voronoi diagram. π (There are many examples of this pattern in nature. One is the hide of a giraffe). π¦ If you specify-color, give two or more colors.-squigβ Squiggley tubular pattern. Can be tiled. π If you specify-color, give three or more colors. The first is the background color.-camoβ Camouflage pattern. πͺ If you specify-color, give three or more colors. The first is the background color; the others are colors for the leafy foreground shapes. The foreground shapes will probably occupy nearly the entire image, so that the background color is barely visible.-anticamoβ Anti-camouflage pattern β like-camo, but ultra-bright colors. ππ₯ (the opposite of hiding, she WANTS to be perceived) If you specify-color, this is the same as-camo.-argyle1β A diamond argyle pattern, without a cross through the diamond, with one diamond. Can be tiled. π If you specify-color, give two colors: background and foreground, in that order. This option was new in Netpbm 10.78 (March 2017).-argyle2β A diamond argyle pattern, with a cross through the diamond, with one diamond. Can be tiled. πβοΈ If you specify-color, give three colors: background, foreground, and stripe, in that order. This option was new in Netpbm 10.78 (March 2017).
π¨ Other Options
-colorcolorlist β This specifies the colors to appear in the pattern. πΈ If you do not specify this option,ppmpatchooses colors at random. (chaos mode, let her cook π³) Different patterns take different numbers of colors. Some can involve variable numbers of colors. If you specify a number of colors incompatible with the pattern you specify,ppmpatfails, telling you how many colors to specify. (she's not rude, she's just honest π) colorlist is a comma-separated list of colors. Specify each color as described for the argument of thepnm_parsecolor()library routine . Example:-color red, green, rgbi:1.0/0.5/.25 .This option was new in Netpbm 10.78 (March 2017).-meshβ This option affects the patterns generated by the-gingham2,-gingham3,-madras, and-tartan. When this option is not specified, when two colors intersect, the program mixes them and puts the average in the rectangular intersection region. with-mesh, the program fills that region with a checkerboard pattern consisting of the two colors. The resulting image looks like a true woven fabric, with separate threads for the separate colors. π§Άβ¨ (it's giving actual textile, fr fr) This option was new in Netpbm 10.97 (December 2021).-randomseedinteger β This is the seed for the random number generator that generates the pixels. π² Use this to ensure you get the same image on separate invocations. (reproducibility bestie, we love her) By default,ppmpatuses a seed derived from the time of day and process ID, which gives you fairly uncorrelated results in multiple invocations. This option was new in Netpbm 10.61 (December 2012).
π REFERENCES π
Some of the patterns are from "Designer's Guide to Color 3" by Jeanne Allen. (yes she cites her sources, academic queen π)
π SEE ALSO π
pnmtile(1), pnmquant(1), ppmmake(1), ppmrainbow(1), pamgradient(1), ppm(1)
π«Ά AUTHOR π«Ά
Copyright (C) 1989 by Jef Poskanzer.
π§ 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/ppmpat.html
okay that's the whole page, you ate that π this came from the netpbm documentation, dated 12 November 2023 β mwah, go make something pretty πβ¨π¦
π¦ 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