logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rocks - animation of flying through an asteroid field

Author

       Based on Lisp Machine code copyright 1988 John Nguyen <johnn@hx.lcs.mit.edu>.

       Ported to C and X by Jamie Zawinski <jwz@jwz.org>, 13-aug-92.

       Steering code by Jeremie Petit; 3D code by theiling@coli.uni-sb.de.

X Version 11                                   6.08 (10-Oct-2023)                                      rocks(6x)

Bugs

       There should be an option to display doppler shift (a gravity rainbow.)

       Speed of rotation should be settable.

       Default speed of rotation should be relative to forward velocity.

Description

       The  rocks  program  draws  an  animation  of an asteroid field moving past the observer (or vice versa).
       Sometimes the observer picks up spin on Z axis.

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.

       XSCREENSAVER_WINDOW
               The window ID to use with --root.

Name

       rocks - animation of flying through an asteroid field

Options

rocks accepts the following options:

       --window
               Draw on a newly-created window.  This is the default.

       --root  Draw on the root window.

       --window-idnumber
               Draw on the specified window.

       --mono  Make all the rocks the same color.

       --ncolorscolors
               How many different colors to use.  Default 5.  Colors are chosen randomly.

       --install
               Install a private colormap for the window.

       --visualvisual
               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.

       --countinteger
               Maximum number of rocks to draw on the screen at once.  Default 100.

       --speedinteger
               A  measure  of  the  speed  with which the observer and the rocks pass each other, from 1 to 100.
               Default 100, meaning ``very fast.''  If you're on a slow display connection (the animation  looks
               jerky) then try making this number smaller, and/or decreasing the number of rocks.

       --delaymicroseconds
               Number  of microseconds to delay between each frame.  Default 50000, meaning about 1/20th second.
               Compare and contrast with --speed, above.

       --norotate
               Don't rotate the observer; just fly through the field on the level.

       --nomove
               Don't turn the observer; just fly straight ahead through the field.

       -3d     Do red/blue 3d separations: if you look at the screen with 3d glasses, the rocks will be  jumping
               right out at you.  Oooooh, scaaary!

       --fps   Display the current frame rate and CPU load.

See Also

X(1), xscreensaver(1)

Synopsis

rocks  [--display  host:display.screen]  [--foreground  color]  [--background  color] [--window] [--root]
       [--window-id number][--mono] [--ncolors n]  [--install]  [--visual  visual]  [--count  integer]  [--delay
       usecs] [--speed integer] [--norotate] [--nomove] [-3d] [--fps]

See Also