Debian Codegraph @

userguide/pammosaicknit.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
2 <html><head><title>Pammosaicknit User Manual</title></head>
3 <body>
4 <h1>pammosaicknit</h1>
5 Updated: 12 December 2010
6 <br>
7 <a href="#index">Table Of Contents</a>
8
9 <h2>NAME</h2>
10
11 pammosaicknit - validate a mosaic knitting pattern
12
13 <h2 id="synopsis">SYNOPSIS</h2>
14
15 <p><b>pammosaicknit</b> [<i>in_netpbmfile</i>]
16
17 <h2 id="description">DESCRIPTION</h2>
18
19 <p>This program is part of <a href="index.html">Netpbm</a>.
20
21 <p><b>pammosaicknit</b> helps the user create
22 <a href="http://en.wikipedia.org/wiki/Slip-stitch_knitting#Mosaic_knitting">mosaic
23 knitting patterns</a>. The program inputs a black-and-white Netpbm image that
24 describes a mosaic knitting pattern and outputs a color Netpbm image of the
25 same pattern but with invalid runs shown in red.
26
27 <p>A valid knitting pattern starts with a "black" row on the
28 bottom and alternates "white" and "black"
29 rows. A "black" row can contain any arrangement of black pixels
30 but no more than three consecutive white pixels. A "white" row
31 can contain any arrangement of white pixels but no more than three
32 consecutive black pixels. Columns wrap horizontally, so a "white"
33 row that both begins and ends with two black pixels is deemed to
34 contain four consecutive black pixels. Because this is an invalid
35 number for a "white" row, those four pixels will be recolored red
36 in the output image.
37
38 <p>For clarity, there are two shades of red in the output image. Dark
39 red pixels indicate pixels that were black in the input image but
40 which must contain one or more white pixels. Light red pixels indicate
41 pixels that were white in the input image but which must contain one
42 or more black pixels.
43
44 <p>If the output image contains no red pixels, then the input image
45 represents a valid mosaic knitting pattern.
46
47 <h2 id="options">OPTIONS</h2>
48
49 <p>There are no command line options defined specifically
50 for <b>pammosaicknit</b>, but it recognizes the options common to all
51 programs based on libnetpbm (See <a href="index.html#commonoptions">
52 Common Options</a>.)
53
54 <h2 id="arguments">ARGUMENTS</h2>
55
56 <p><b>pammosaicknit</b>'s only argument,
57 <i>in_netpbmfile</i>, is the name of an image file that represents a mosaic
58 knitting pattern. If you don't specify
59 <i>in_netpbmfile</i>, the program reads the image from Standard Input.
60
61
62 <h2 id="notes">NOTES</h2>
63
64 <p>If the input image is not a black-and-white image, <b>pammosaicknit</b>
65 converts it internally to black and white by thresholding each pixel's
66 luminosity. The output image is always a color image containing at most four
67 colors (black, white, dark red, light red).
68
69 <h2 id="seealso">SEE ALSO</h2>
70
71 <ul>
72 <li><a href="pam.html">pam</a></li>
73 </ul>
74
75 <h2 id="history">HISTORY</h2>
76
77 <p>pammosaicknit was new in Netpbm 10.53 (December 2010).
78
79 <h2 id="author">AUTHOR</h2>
80
81 <p>Copyright (C) 2010 Scott Pakin,
82 <a href="mailto:[email protected]">[email protected]</a>
83
84
85 <h2 id="index">Table Of Contents</h2>
86
87 <ul>
88 <li><a href="#synopsis">SYNOPSIS</a>
89 <li><a href="#description">DESCRIPTION</a>
90 <li><a href="#options">OPTIONS</a>
91 <li><a href="#arguments">ARGUMENTS</a>
92 <li><a href="#notes">NOTES</a>
93 <li><a href="#seealso">SEE ALSO</a>
94 <li><a href="#history">HISTORY</a>
95 <li><a href="#author">AUTHOR</a>
96 </ul>
97
98 </body>
99 </html>
100