cloudlife — a cellular automaton based on Conway's Life

Synopsis

cloudlife [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual] [-ncolors integer] [-cycle-delay microseconds] [-cycle-colors integer][-cell-size integer] [-initial-density integer] [-max-age integer]

[-fps]

Description

The cloudlife program draws a cellular automaton based on Conway's Life, except that cells have a maximum age, and only one pixel per cell is drawn every tick.

Options

cloudlife accepts the following options:
-window
Draw on a newly-created window. This is the default.
-root
Draw on the root 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.
-cycle-delay integer
Time in microseconds to sleep between ticks. Default 25000.
-cycle-colors integer
How many ticks should elapse between cycling colors. 0 to disable color cycling. Default 2.
-ncolors integer
How many colors should be used (if possible). Default 64. The colors are chosen randomly.
-cell-size integer
Size of each cell, in powers of 2. Default 3 (8-pixel cells).
-initial-density integer
Percentage of cells that are alive at start and when the field is repopulated. Default 30.
-max-age integer
Maximum age for a cell. Default 64.
-fps
Display the current frame rate and CPU load.

Environment

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.

Author

Don Marti <dmarti@zgp.org> 20 May 2003.