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

NAME

6       pammosaicknit - validate a mosaic knitting pattern
7
8

SYNOPSIS

10       pammosaicknit [in_netpbmfile]
11
12

DESCRIPTION

14       This program is part of Netpbm(1).
15
16       pammosaicknit   helps   the   user   create  mosaic  knitting  patterns
17http://en.wikipedia.org/wiki/Slip-stitch_knitting#Mosaic_knitting⟩   .
18       The  program inputs a black-and-white Netpbm image that describes a mo‐
19       saic knitting pattern and outputs a color Netpbm image of the same pat‐
20       tern but with invalid runs shown in red.
21
22       A  valid  knitting  pattern starts with a "black" row on the bottom and
23       alternates "white" and "black" rows. A "black" row can contain any  ar‐
24       rangement of black pixels but no more than three consecutive white pix‐
25       els. A "white" row can contain any arrangement of white pixels  but  no
26       more than three consecutive black pixels. Columns wrap horizontally, so
27       a "white" row that both begins and ends with two black pixels is deemed
28       to  contain  four  consecutive black pixels. Because this is an invalid
29       number for a "white" row, those four pixels will be  recolored  red  in
30       the output image.
31
32       For clarity, there are two shades of red in the output image.  Dark red
33       pixels indicate pixels that were black in the  input  image  but  which
34       must contain one or more white pixels. Light red pixels indicate pixels
35       that were white in the input image but which must contain one  or  more
36       black pixels.
37
38       If the output image contains no red pixels, then the input image repre‐
39       sents a valid mosaic knitting pattern.
40
41

OPTIONS

43       There are no command line options defined specifically for  pammosaick‐
44       nit, but it recognizes the options common to all programs based on lib‐
45       netpbm (See
46        Common Options ⟨index.html#commonoptions⟩ .)
47
48

ARGUMENTS

50       pammosaicknit's only argument, in_netpbmfile, is the name of  an  image
51       file  that  represents  a mosaic knitting pattern. If you don't specify
52       in_netpbmfile, the program reads the image from Standard Input.
53
54
55

NOTES

57       If the input image is not a black-and-white image,  pammosaicknit  con‐
58       verts it internally to black and white by thresholding each pixel's lu‐
59       minosity. The output image is always a color image containing  at  most
60       four colors (black, white, dark red, light red).
61
62

SEE ALSO

64
65
66              pam(1)
67
68
69

HISTORY

71       pammosaicknit was new in Netpbm 10.53 (December 2010).
72
73

AUTHOR

75       Copyright (C) 2010 Scott Pakin, scott+pbm@pakin.org
76
77
78

Table Of Contents

80
81
82              SYNOPSIS ⟨#synopsis⟩
83
84
85
86              DESCRIPTION ⟨#description⟩
87
88
89
90              OPTIONS ⟨#options⟩
91
92
93
94              ARGUMENTS ⟨#arguments⟩
95
96
97
98              NOTES ⟨#notes⟩
99
100
101
102              SEE ALSO ⟨#seealso⟩
103
104
105
106              HISTORY ⟨#history⟩
107
108
109
110              AUTHOR ⟨#author⟩
111

DOCUMENT SOURCE

113       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
114       source.  The master documentation is at
115
116              http://netpbm.sourceforge.net/doc/pammosaicknit.html
117
118netpbm documentation           12 December 2010   Pammosaicknit User Manual(0)
Impressum