source: trunk/third/xscreensaver/hacks/munch.man @ 12203

Revision 12203, 3.9 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12202, which included commits to RCS files with non-trunk default branches.
Line 
1.de EX          \"Begin example
2.ne 5
3.if n .sp 1
4.if t .sp .5
5.nf
6.in +.5i
7..
8.de EE
9.fi
10.in -.5i
11.if n .sp 1
12.if t .sp .5
13..
14.TH XScreenSaver 1 "17-Jun-97" "X Version 11"
15.SH NAME
16munch - munching squares screen hack
17.SH SYNOPSIS
18.B munch
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]
23.SH DESCRIPTION
24The
25.I munch
26program preforms the munching squares hack until killed.  It picks square
27size, position, and gravity randomly; configurable options are listed
28below.
29.PP
30The munching squares hack cosists of drawing Y = X XOR T for a range of X
31and T over and over until all the possible combinations of X and T have
32come up.  It was reportedly discovered by Jackson Wright in 1962 and took 5
33instructions of PDP-6 code.
34.SH OPTIONS
35.I munch
36accepts the following options:
37.TP 8
38.B \-window
39Draw on a newly-created window.  This is the default.
40.TP 8
41.B \-root
42Draw on the root window.
43.TP 8
44.B \-mono
45If on a color display, pretend we're on a monochrome display.
46.TP 8
47.B \-install
48Install a private colormap for the window.
49.TP 8
50.B \-visual \fIvisual\fP
51Specify which visual to use.  Legal values are the name of a visual class,
52or the id number (decimal or hex) of a specific visual.
53.TP 8
54.B \-delay \fIseconds\fP
55How long to wait before starting over.  Default 5 seconds.
56.TP 8
57.B \-xor
58Use the XOR drawing function.  (Default.)
59.TP 8
60.B \-no\-xor
61Don't use the XOR drawing function.
62.TP 8
63.B \-shift
64Start drawing the square at weird starting points.  (Default.)
65.TP 8
66.B \-no\-shift
67Don't shift and start drawing the square at weird starting points.
68.TP 8
69.B \-logminwidth \fIminimum\-width\fP
70The logarithm (base 2) of the minimum with of a square (must be a power of
712, or some parts of the square aren't.)
72.SH ENVIRONMENT
73.PP
74.TP 8
75.B DISPLAY
76to get the default host and display number.
77.TP 8
78.B XENVIRONMENT
79to get the name of a resource file that overrides the global resources
80stored in the RESOURCE_MANAGER property.
81.SH SEE ALSO
82.BR X (1),
83.BR xscreensaver (1),
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
86.SH HISTORY
87Quoted from HAKMEM, for historical interest.  As that document says, "Unless
88otherwise stated, all computer programs are in PDP-6/10 assembly language."
89.TP 8
90ITEM 146: MUNCHING SQUARES
91Another simple display program. It is thought that this was discovered by
92Jackson Wright on the RLE PDP-1 circa 1962.
93
94.EX
95    DATAI 2
96    ADDB 1,2
97    ROTC 2,-22
98    XOR 1,2
99    JRST .-4
100.EE
101.RS 8
1022=X, 3=Y. Try things like 1001002 in data switches. This also does
103interesting things with operations other than XOR, and rotations other
104than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...)
105.RE
106.TP 8
107ITEM 147 (Schroeppel):
108Munching squares is just views of the graph Y = X XOR T for consecutive
109values of T = time.
110.TP 8
111ITEM 148 (Cohen, Beeler):
112A modification to munching squares which reveals them in frozen states
113through opening and closing curtains: insert FADR 2,1 before the XOR. Try
114data switches =
115
116.EX
117    4000,,4    1000,,2002    2000,,4    0,,1002
118.EE
119.RS 8
120(Notation: <left half>,,<right half>)
121
122Also try the FADR after the XOR, switches = 1001,,1.
123.SH COPYRIGHT
124Copyright \(co 1997 by Tim Showalter.  Permission to use, copy, modify,
125distribute, and sell this software and its documentation for any purpose is
126hereby granted without fee, provided that the above copyright notice appear
127in all copies and that both that copyright notice and this permission notice
128appear in supporting documentation.  No representations are made about the
129suitability of this software for any purpose.  It is provided "as is" without
130express or implied warranty.
131.SH AUTHOR
132Tim Showalter <tjs@andrew.cmu.edu>, 17-Jun-97, based on what's in the
133Jargon File and stealing stuff from existing xscreensaver modules.
Note: See TracBrowser for help on using the repository browser.