X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fcritical.man;fp=hacks%2Fcritical.man;h=21eec6a565aceca78b91a5c243ed7964d1be4a51;hb=a719ec12b8b2563112366a8ac3196816fd64d2c7;hp=0000000000000000000000000000000000000000;hpb=59ac4e9a0de290e4275a7bbb890ad16abd09d68f;p=xscreensaver diff --git a/hacks/critical.man b/hacks/critical.man new file mode 100644 index 00000000..21eec6a5 --- /dev/null +++ b/hacks/critical.man @@ -0,0 +1,87 @@ +.TH XScreenSaver 1 "13-Nov-98" "X Version 11" +.SH NAME +critical - Draw a system showing self-organizing criticality +.SH SYNOPSIS +.B critical +[\-display \fIhost:display.screen\fP] [\-foreground \fIcolor\fP] [\-background \fIcolor\fP] [\-window] [\-root] [\-mono] [\-install] [\-visual \fIvisual\fP] [\-delay \fIseconds\fP] [\-random \fIboolean\fP] [\-ncolors \fIint\fP] [\-offset \fIint\fP] +.SH DESCRIPTION +The \fIcritical\fP program displays a self-organizing critical system +that gradually emerges from chaos. + +\fIcritical\fP performs a simulation on a two-dimensional array of +integers. The array is initialized to random values. On each +iteration, it draws a line to the array position with the greatest +value. It then replaces that location and the eight neighboring +locations with randomly-selected values. + +The lines are initially random, but over time a chaotic +self-organizing system evolves: areas of the screen which happen to +have lower values are less likely to be updated to new values, and so +the line tends to avoid those areas. Eventually, the histogram of +changes approaches the power-law curve typical of such systems. + +The simplest documented self-organizing system is the one-dimensional +equivalent of \fIcritical\fP. + +I heard about this algorithm second-hand: apparently there was an +article in \fIScientific American\fP describing it sometime in 1997. +.SH OPTIONS +.I critical +accepts the following options: +.TP 8 +.B \-window +Draw on a newly-created window. This is the default. +.TP 8 +.B \-root +Draw on the root window. +.TP 8 +.B \-mono +If on a color display, pretend we're on a monochrome display. +.TP 8 +.B \-install +Install a private colormap for the window. +.TP 8 +.B \-visual \fIvisual\fP +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. +.TP 8 +.B \-delay \fIusecs\fP +Number of microseconds to wait after drawing each line. +.TP 8 +.B \-random \fIboolean\fP +Whether to use randomly selected colours rather than a cycle around +the colour wheel. +.TP 8 +.B \-offset \fIinteger\fP +The maximum random radius increment to use. +.TP 8 +.B \-ncolors \fIinteger\fP +How many colors should be allocated in the color ramp (note that this +value interacts with \fIoffset\fP.) +.SH ENVIRONMENT +.PP +.TP 8 +.B DISPLAY +to get the default host and display number. +.TP 8 +.B XENVIRONMENT +to get the name of a resource file that overrides the global resources +stored in the RESOURCE_MANAGER property. +.SH SEE ALSO +.BR X (1), +.BR xscreensaver (1) +.BR xscreensaver-command (1) +.BR xscreensaver-demo (1) +.SH COPYRIGHT +Copyright \(co 1998 by Martin Pool. + +Permission to use, copy, modify, distribute, and sell this software +and its documentation for any purpose is hereby granted without fee, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation. No representations are made about the +suitability of this software for any purpose. It is provided "as is" +without express or implied warranty. +.SH AUTHOR +Martin Pool , 13-Nov-1998. Based in part on the +XScreenSaver code by Jamie Zawinski .