14 .TH XScreenSaver 1 "17-Jun-97" "X Version 11"
16 munch - munching squares screen hack
19 [\-display \fIhost:display.screen\fP] [\-foreground \fIcolor\fP]
20 [\-background \fIcolor\fP] [\-window] [\-root] [\-mono] [\-install]
21 [\-visual \fIvisual\fP] [\-delay \fIseconds\fP] [\-xor] [\-noxor] [\-shift]
22 [\-noshift] [\-logminwidth \fIminimum width\fP]
26 program preforms the munching squares hack until killed. It picks square
27 size, position, and gravity randomly; configurable options are listed
30 The munching squares hack cosists of drawing Y = X XOR T for a range of X
31 and T over and over until all the possible combinations of X and T have
32 come up. It was reportedly discovered by Jackson Wright in 1962 and took 5
33 instructions of PDP-6 code.
36 accepts the following options:
39 Draw on a newly-created window. This is the default.
42 Draw on the root window.
45 If on a color display, pretend we're on a monochrome display.
48 Install a private colormap for the window.
50 .B \-visual \fIvisual\fP
51 Specify which visual to use. Legal values are the name of a visual class,
52 or the id number (decimal or hex) of a specific visual.
54 .B \-delay \fIseconds\fP
55 How long to wait before starting over. Default 5 seconds.
58 Use the XOR drawing function. (Default.)
61 Don't use the XOR drawing function.
64 Start drawing the square at weird starting points. (Default.)
67 Don't shift and start drawing the square at weird starting points.
69 .B \-logminwidth \fIminimum\-width\fP
70 The logarithm (base 2) of the minimum with of a square (must be a power of
71 2, or some parts of the square aren't.)
76 to get the default host and display number.
79 to get the name of a resource file that overrides the global resources
80 stored in the RESOURCE_MANAGER property.
84 .BR http://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html,
85 .BR http://www.comedia.com/Hot/jargon_3.0/JARGON_M/MUNCHSQR.HTML
87 Quoted from HAKMEM, for historical interest. As that document says, "Unless
88 otherwise stated, all computer programs are in PDP-6/10 assembly language."
90 ITEM 146: MUNCHING SQUARES
91 Another simple display program. It is thought that this was discovered by
92 Jackson Wright on the RLE PDP-1 circa 1962.
102 2=X, 3=Y. Try things like 1001002 in data switches. This also does
103 interesting things with operations other than XOR, and rotations other
104 than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...)
107 ITEM 147 (Schroeppel):
108 Munching squares is just views of the graph Y = X XOR T for consecutive
111 ITEM 148 (Cohen, Beeler):
112 A modification to munching squares which reveals them in frozen states
113 through opening and closing curtains: insert FADR 2,1 before the XOR. Try
117 4000,,4 1000,,2002 2000,,4 0,,1002
120 (Notation: <left half>,,<right half>)
122 Also try the FADR after the XOR, switches = 1001,,1.
124 Copyright \(co 1997 by Tim Showalter. Permission to use, copy, modify,
125 distribute, and sell this software and its documentation for any purpose is
126 hereby granted without fee, provided that the above copyright notice appear
127 in all copies and that both that copyright notice and this permission notice
128 appear in supporting documentation. No representations are made about the
129 suitability of this software for any purpose. It is provided "as is" without
130 express or implied warranty.
132 Tim Showalter <tjs@andrew.cmu.edu>, 17-Jun-97, based on what's in the
133 Jargon File and stealing stuff from existing xscreensaver modules.