http://www.jwz.org/xscreensaver/xscreensaver-5.07.tar.gz
[xscreensaver] / hacks / rocks.man
1 .TH XScreenSaver 1 "13-aug-92" "X Version 11"
2 .SH NAME
3 rocks - animation of flying through an asteroid field
4 .SH SYNOPSIS
5 .B rocks
6 [\-display \fIhost:display.screen\fP] [\-foreground \fIcolor\fP] [\-background \fIcolor\fP] [\-window] [\-root] [\-mono] [\-ncolors \fIn\fP] [\-install] [\-visual \fIvisual\fP] [\-count \fIinteger\fP] [\-delay \fIusecs\fP] [\-speed \fIinteger\fP] [\-norotate] [\-nomove] [\-3d]
7 [\-fps]
8 .SH DESCRIPTION
9 The \fIrocks\fP program draws an animation of an asteroid field moving past
10 the observer (or vice versa).  Sometimes the observer picks up spin on Z axis.
11 .SH OPTIONS
12 .I rocks
13 accepts the following options:
14 .TP 8
15 .B \-window
16 Draw on a newly-created window.  This is the default.
17 .TP 8
18 .B \-root
19 Draw on the root window.
20 .TP 8
21 .B \-mono
22 Make all the rocks the same color.
23 .TP 8
24 .B \-ncolors colors
25 How many different colors to use.  Default 5.  Colors are chosen randomly.
26 .TP 8
27 .B \-install
28 Install a private colormap for the window.
29 .TP 8
30 .B \-visual \fIvisual\fP
31 Specify which visual to use.  Legal values are the name of a visual class,
32 or the id number (decimal or hex) of a specific visual.
33 .TP 8
34 .B \-count \fIinteger\fP
35 Maximum number of rocks to draw on the screen at once.  Default 100.
36 .TP 8
37 .B \-speed \fIinteger\fP
38 A measure of the speed with which the observer and the rocks pass each other,
39 from 1 to 100.  Default 100, meaning ``very fast.''  If you're on a slow 
40 display connection (the animation looks jerky) then try making this number 
41 smaller, and/or decreasing the number of rocks.
42 .TP 8
43 .B \-delay \fImicroseconds\fP
44 Number of microseconds to delay between each frame.  Default 50000, meaning
45 about 1/20th second.  Compare and contrast with \fI\-speed\fP, above.
46 .TP 8
47 .B \-norotate
48 Don't rotate the observer; just fly through the field on the level.
49 .TP 8
50 .B \-nomove
51 Don't turn the observer; just fly straight ahead through the field.
52 .TP 8
53 .B \-3d
54 Do red/blue 3d separations: if you look at the screen with 3d glasses,
55 the rocks will be \fIjumping\fP right \fIout\fP at you.  Oooooh, scaaary!
56 .TP 8
57 .B \-fps
58 Display the current frame rate and CPU load.
59 .SH ENVIRONMENT
60 .PP
61 .TP 8
62 .B DISPLAY
63 to get the default host and display number.
64 .TP 8
65 .B XENVIRONMENT
66 to get the name of a resource file that overrides the global resources
67 stored in the RESOURCE_MANAGER property.
68 .SH SEE ALSO
69 .BR X (1),
70 .BR xscreensaver (1)
71 .SH BUGS
72 There should be an option to display doppler shift (a gravity rainbow.)
73
74 Speed of rotation should be settable.
75
76 Default speed of rotation should be relative to forward velocity.
77 .SH COPYRIGHT
78 Copyright \(co 1992 by Jamie Zawinski.  Permission to use, copy, modify, 
79 distribute, and sell this software and its documentation for any purpose is 
80 hereby granted without fee, provided that the above copyright notice appear 
81 in all copies and that both that copyright notice and this permission notice
82 appear in supporting documentation.  No representations are made about the 
83 suitability of this software for any purpose.  It is provided "as is" without
84 express or implied warranty.
85 .SH AUTHOR
86 Based on Lisp Machine code copyright 1988 John Nguyen <johnn@hx.lcs.mit.edu>.
87
88 Ported to C and X by Jamie Zawinski <jwz@jwz.org>, 13-aug-92.
89
90 Steering code by Jeremie Petit; 3D code by theiling@coli.uni-sb.de.