home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / DTP / SFW110P2.ZIP / PATTERN.DOC < prev    next >
Text File  |  1992-04-07  |  6KB  |  329 lines

  1. The Pattern Program: PATTERN.EXE
  2. --------------------------------
  3.  
  4. The PATTERN program is a primitive pattern translator for creating Sfware
  5. patterns.  This program is provided because translating patterns to Sfware
  6. strings by hand is extraordinarily tedious.
  7.  
  8. Usage: PATTERN [magnification] < inputfile > outputfile
  9.  
  10. The PATTERN program reads from standard input and writes to standard output.
  11. You must use DOS file redirection to provide input to PATTERN and to capture
  12. output from PATTERN.
  13.  
  14. The optional magnification scales the bits in the pattern.  The magnification
  15. should be an integer between 1 and 9.  The default magnification is 1.
  16.  
  17. Input:
  18. ------
  19.  
  20. PATTERN reads a DOS text file from standard input.  The text file should have
  21. the following format:
  22.  
  23.         .name1
  24.         <bitpattern-row1>
  25.         <bitpattern-row2>
  26.         .
  27.         .
  28.         .
  29.         <bitpattern-rown>
  30.         .name2
  31.         <bitpattern-row1>
  32.         .
  33.         .
  34.         .
  35.         .eof
  36.  
  37. The <bitpattern> for each row should be a single line of zeros and ones.  Any
  38. number of patterns may be present in the file.  The last line of the file
  39. should be ".eof"
  40.  
  41. Output:
  42. -------
  43.  
  44. Pattern writes the pattern strings in the format:
  45.  
  46.         pattern name1=<pattern>
  47.         pattern name2=<pattern>
  48.  
  49. This is precisely the format required for defining patterns in the
  50. configuration file (for more information about configuration files, read the
  51. configuration chapter in the Sfware manual).
  52.  
  53. Examples:
  54. ---------
  55.  
  56. The following pattern file creates several standard patterns that are
  57. provided in the initial Sfware configuration file:
  58.  
  59. .DarkSaw
  60. 11111111
  61. 01111111
  62. 00111110
  63. 00011100
  64. 00001000
  65. 10000000
  66. 11000001
  67. 11100011
  68. 11110111
  69. .LightSaw
  70. 10000000
  71. 01000001
  72. 00100010
  73. 00010100
  74. 00001000
  75. 00000000
  76. 00000000
  77. 00000000
  78. .NarrowBackslash
  79. 10001000
  80. 01000100
  81. 00100010
  82. 00010001
  83. .NarrowDot
  84. 00000000
  85. 10101010
  86. .Narrowhatch
  87. 00010001
  88. 10101010
  89. 01000100
  90. 10101010
  91. .NarrowHoriz
  92. 00000000
  93. 00000000
  94. 00000000
  95. 11111111
  96. 00000000
  97. 00000000
  98. 00000000
  99. 11111111
  100. .NarrowSlash
  101. 00010001
  102. 00100010
  103. 01000100
  104. 10001000
  105. 00010001
  106. 00100010
  107. 01000100
  108. 10001000
  109. .NarrowVert
  110. 00010001
  111. .WideBackslash
  112. 10000000
  113. 01000000
  114. 00100000
  115. 00010000
  116. 00001000
  117. 00000100
  118. 00000010
  119. 00000001
  120. .WideDot
  121. 00000000
  122. 00100010
  123. 00000000
  124. 00000000
  125. .WideHatch
  126. 00000001
  127. 10000010
  128. 01000100
  129. 00101000
  130. 00010000
  131. 00101000
  132. 01000100
  133. 10000010
  134. .WideHoriz
  135. 00000000
  136. 00000000
  137. 00000000
  138. 11111111
  139. 00000000
  140. 00000000
  141. 00000000
  142. 00000000
  143. .WideSlash
  144. 00000001
  145. 00000010
  146. 00000100
  147. 00001000
  148. 00010000
  149. 00100000
  150. 01000000
  151. 10000000
  152. .WideVert
  153. 00010000
  154. .Black
  155. 11111111
  156. .White
  157. 00000000
  158. .Gray50%
  159. 10101010
  160. 01010101
  161. .Gray25%
  162. 10001000
  163. 00100010
  164. .Gray16%
  165. 10001000
  166. 00000000
  167. 00100010
  168. 00000000
  169. .SPS
  170. 0110011100011000
  171. 1001010010100100
  172. 1000010010100000
  173. 0110011100011000
  174. 0001010000000100
  175. 1001010000100100
  176. 0110010000011000
  177. 0000000000000000
  178. 0000000000000000
  179. .SPSbig
  180. 00011100000011110000001111000000
  181. 01111110000111111000011111100000
  182. 11000011001100001100110000110000
  183. 11000011001100001100110000110000
  184. 11000000001100001100110000000000
  185. 11000000001100001100110000000000
  186. 01111100001111111000011111000000
  187. 00111110001111110000001111100000
  188. 00000011001100000000000000110000
  189. 00000011001100000000000000110000
  190. 11000011001100000000110000110000
  191. 11000011001100000000110000110000
  192. 01111110001100000000011111100000
  193. 00111100001100000000001111000000
  194. 00000000000000000000000000000000
  195. 00000000000000000000000000000000
  196. 00000000000000000000000000000000
  197. 00000000000000000000000000000000
  198. .TightSaw
  199. 01101011
  200. 11011101
  201. 10110110
  202. 01101011
  203. 11011101
  204. 10110110
  205. .DecoSlash
  206. 11010010
  207. 01101001
  208. 10110100
  209. 01011010
  210. 00101101
  211. 10010110
  212. 01001011
  213. 10100101
  214. .Cross
  215. 00010001
  216. 10111011
  217. 11101110
  218. 10111011
  219. .CircleSquare
  220. 00100100
  221. 00111100
  222. 11100111
  223. 01000010
  224. 01000010
  225. 11100111
  226. 00111100
  227. 00100100
  228. .Brick
  229. 11111111
  230. 10000000
  231. 10000000
  232. 10000000
  233. 11111111
  234. 00001000
  235. 00001000
  236. 00001000
  237. .Weave
  238. 10000100
  239. 11111100
  240. 11001111
  241. 01001000
  242. 01001000
  243. 11001111
  244. 11111100
  245. 10000100
  246. .DiagDark
  247. 01110111
  248. 10111011
  249. 11011101
  250. 10101010
  251. .DiagLight
  252. 00010001
  253. 10101010
  254. 01000100
  255. 10001000
  256. .Ells
  257. 00010001
  258. 01110111
  259. 10001000
  260. 11101110
  261. .EllsRev
  262. 11101110
  263. 10001000
  264. 01110111
  265. 00010001
  266. .SquareDot
  267. 00010001
  268. 01010101
  269. 00010001
  270. 11111111
  271. .Circles
  272. 01110000
  273. 10001000
  274. 00000111
  275. 10001000
  276. .BrCircles
  277. 11101110
  278. 10000010
  279. 10111010
  280. 10101010
  281. 10111010
  282. 10000010
  283. 11101110
  284. 00000000
  285. .gray17%
  286. 10001000
  287. 00000000
  288. 00100010
  289. 00000000
  290. .eof
  291.  
  292. The output from PATTERN for this input file is:
  293.  
  294. Pattern DarkSaw         =255;127;62;28;8;128;193;227;247
  295. Pattern LightSaw        =128;65;34;20;8;0;0;0
  296. Pattern NarrowBackslash =136;68;34;17
  297. Pattern NarrowDot       =0;170
  298. Pattern Narrowhatch     =17;170;68;170
  299. Pattern NarrowHoriz     =0;0;0;255;0;0;0;255
  300. Pattern NarrowSlash     =17;34;68;136;17;34;68;136
  301. Pattern NarrowVert      =17
  302. Pattern WideBackslash   =128;64;32;16;8;4;2;1
  303. Pattern WideDot         =0;34;0;0
  304. Pattern WideHatch       =1;130;68;40;16;40;68;130
  305. Pattern WideHoriz       =0;0;0;255;0;0;0;0
  306. Pattern WideSlash       =1;2;4;8;16;32;64;128
  307. Pattern WideVert        =16
  308. Pattern Black           =255
  309. Pattern White           =0
  310. Pattern Gray50%         =170;85
  311. Pattern Gray25%         =136;34
  312. Pattern Gray16%         =136;0;34;0
  313. Pattern SPS             =103,24;148,164;132,160;103,24;20,4;148,36;100,24;0,0;0,0
  314. Pattern SPSbig          =28,15,3,192;126,31,135,224;195,48,204,48;195,48,204,48;192,48,204,0;192,48,204,0;124,63,135,192;62,63,3,224;3,48,0,48;3,48,0,48;195,48,12,48;195,48,12,48;126,48,7,224;60,48,3,192;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0
  315. Pattern TightSaw        =107;221;182;107;221;182
  316. Pattern DecoSlash       =210;105;180;90;45;150;75;165
  317. Pattern Cross           =17;187;238;187
  318. Pattern CircleSquare    =36;60;231;66;66;231;60;36
  319. Pattern Brick           =255;128;128;128;255;8;8;8
  320. Pattern Weave           =132;252;207;72;72;207;252;132
  321. Pattern DiagDark        =119;187;221;170
  322. Pattern DiagLight       =17;170;68;136
  323. Pattern Ells            =17;119;136;238
  324. Pattern EllsRev         =238;136;119;17
  325. Pattern SquareDot       =17;85;17;255
  326. Pattern Circles         =112;136;7;136
  327. Pattern BrCircles       =238;130;186;170;186;130;238;0
  328. Pattern gray17%         =136;0;34;0
  329.