DISPLAY
to get the default host and display number.
Munching squares
munch [--display
host:display.screen]
[--foreground
color]
[--background
color]
[--window]
[--root]
[--window-id
number]
[--mono]
[--install]
[--visual
visual]
[--delay
usecs]
[--xor]
[--noxor]
[--clear
number]
[--simul
number]
[{--classic | --mismunch | --random}]
[--fps]
The munch program performs the munching squares hack. It picks square size, position, and gravity randomly. It also displays a creatively broken misimplementation of the classic algorithm.
The munching squares hack consists of drawing Y = X XOR T for a range of X and T over and over until all the possible combinations of X and T have come up. It was reportedly discovered by Jackson Wright in 1962 and took 5 instructions of PDP-6 code.
munch accepts the following options:
--window
Draw on a newly-created window. This is the default.
--root
Draw on the root window.
--window-id number
Draw on the specified window.
--mono
If on a color display, pretend we're on a monochrome display.
--install
Install a private colormap for the window.
--visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
--delay usecs
The delay between steps of the animation, in microseconds. Default: 2500.
--xor
Use the XOR drawing function. This is the default.
--no-xor
Don't use the XOR drawing function.
--clear number
Number of squares to misdraw before clearing the display. Default: 65.
--simul number
Number of squares to misdraw simultaneously. Default: 5.
--classic
Draw classic munching squares only.
--mismunch
Draw "mismunch" only.
--random
Do one or the other.
--fps
Display the current frame rate and CPU load.
DISPLAY
to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
XSCREENSAVER_WINDOW
The window ID to use with --root.