version 4 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
XScreenSaver |
|
|
2 |
!!!XScreenSaver |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
ENVIRONMENT |
|
|
8 |
SEE ALSO |
|
|
9 |
HISTORY |
|
|
10 |
COPYRIGHT |
|
|
11 |
AUTHOR |
|
|
12 |
---- |
|
|
13 |
!!NAME |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
munch - munching squares screen hack |
|
|
17 |
!!SYNOPSIS |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__munch__ [[-display ''host:display.screen''] |
|
|
21 |
[[-foreground ''color''] [[-background ''color''] |
|
|
22 |
[[-window] [[-root] [[-mono] [[-install] [[-visual ''visual''] |
|
|
23 |
[[-delay ''seconds''] [[-xor] [[-noxor] [[-shift] [[-noshift] |
|
|
24 |
[[-logminwidth ''minimum width''] |
|
|
25 |
!!DESCRIPTION |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
The ''munch'' program preforms the munching squares hack |
|
|
29 |
until killed. It picks square size, position, and gravity |
|
|
30 |
randomly; configurable options are listed |
|
|
31 |
below. |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
The munching squares hack cosists of drawing Y = X XOR T for |
|
|
35 |
a range of X and T over and over until all the possible |
|
|
36 |
combinations of X and T have come up. It was reportedly |
|
|
37 |
discovered by Jackson Wright in 1962 and took 5 instructions |
|
|
38 |
of PDP-6 code. |
|
|
39 |
!!OPTIONS |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
''munch'' accepts the following options: |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
__-window__ |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
Draw on a newly-created window. This is the |
|
|
49 |
default. |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__-root__ |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
Draw on the root window. |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
__-mono__ |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
If on a color display, pretend we're on a monochrome |
|
|
62 |
display. |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
__-install__ |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
Install a private colormap for the window. |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
__-visual__ ''visual'' |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
Specify which visual to use. Legal values are the name of a |
|
|
75 |
visual class, or the id number (decimal or hex) of a |
|
|
76 |
specific visual. |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
__-delay__ ''seconds'' |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
How long to wait before starting over. Default 5 |
|
|
83 |
seconds. |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
__-xor__ |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
Use the XOR drawing function. (Default.) |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
__-no-xor__ |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
Don't use the XOR drawing function. |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
__-shift__ |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
Start drawing the square at weird starting points. |
|
|
102 |
(Default.) |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
__-no-shift__ |
|
|
106 |
|
|
|
107 |
|
|
|
108 |
Don't shift and start drawing the square at weird starting |
|
|
109 |
points. |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
__-logminwidth__ ''minimum-width'' |
|
|
113 |
|
|
|
114 |
|
|
|
115 |
The logarithm (base 2) of the minimum with of a square (must |
|
|
116 |
be a power of 2, or some parts of the square |
|
|
117 |
aren't.) |
|
|
118 |
!!ENVIRONMENT |
|
|
119 |
|
|
|
120 |
|
|
|
121 |
__DISPLAY__ |
|
|
122 |
|
|
|
123 |
|
|
|
124 |
to get the default host and display number. |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
__XENVIRONMENT__ |
|
|
128 |
|
|
|
129 |
|
|
|
130 |
to get the name of a resource file that overrides the global |
|
|
131 |
resources stored in the RESOURCE_MANAGER |
|
|
132 |
property. |
|
|
133 |
!!SEE ALSO |
|
|
134 |
|
|
|
135 |
|
|
|
136 |
X(1), xscreensaver(1), |
|
|
137 |
__http://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html, |
|
|
138 |
http://www.comedia.com/Hot/jargon_3.0/JARGON_M/MUNCHSQR.HTML__ |
|
|
139 |
!!HISTORY |
|
|
140 |
|
|
|
141 |
|
|
|
142 |
Quoted from HAKMEM, for historical interest. As that |
|
|
143 |
document says, |
|
|
144 |
|
|
|
145 |
|
|
|
146 |
ITEM 146: MUNCHING SQUARES |
|
|
147 |
|
|
|
148 |
|
|
|
149 |
Another simple display program. It is thought that this was |
|
|
150 |
discovered by Jackson Wright on the RLE PDP-1 circa |
|
|
151 |
1962. |
|
|
152 |
|
|
|
153 |
|
|
|
154 |
DATAI 2 |
|
|
155 |
ADDB 1,2 |
|
|
156 |
ROTC 2,-22 |
|
|
157 |
XOR 1,2 |
|
|
158 |
JRST .-4 |
|
|
159 |
2=X, 3=Y. Try things like 1001002 in data switches. This also does interesting things with operations other than XOR, and rotations other than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...) |
|
|
160 |
|
|
|
161 |
|
|
|
162 |
ITEM 147 (Schroeppel): |
|
|
163 |
|
|
|
164 |
|
|
|
165 |
Munching squares is just views of the graph Y = X XOR T for |
|
|
166 |
consecutive values of T = time. |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
ITEM 148 (Cohen, Beeler): |
|
|
170 |
|
|
|
171 |
|
|
|
172 |
A modification to munching squares which reveals them in |
|
|
173 |
frozen states through opening and closing curtains: insert |
|
|
174 |
FADR 2,1 before the XOR. Try data switches = |
|
|
175 |
|
|
|
176 |
|
|
|
177 |
4000,,4 1000,,2002 2000,,4 0,,1002 |
|
|
178 |
(Notation: |
|
|
179 |
|
|
|
180 |
|
|
|
181 |
Also try the FADR after the XOR, switches = |
|
|
182 |
1001,,1. |
|
|
183 |
!!COPYRIGHT |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
Copyright 1997 by Tim Showalter. Permission to use, copy, |
|
|
187 |
modify, distribute, and sell this software and its |
|
|
188 |
documentation for any purpose is hereby granted without fee, |
|
|
189 |
provided that the above copyright notice appear in all |
|
|
190 |
copies and that both that copyright notice and this |
|
|
191 |
permission notice appear in supporting documentation. No |
|
|
192 |
representations are made about the suitability of this |
|
|
193 |
software for any purpose. It is provided |
|
|
194 |
!!AUTHOR |
|
|
195 |
|
|
|
196 |
|
|
|
197 |
Tim Showalter |
|
|
198 |
---- |