rocks(6)

πŸ“¦
version 6.15 Β· 2 versions
, in alpine 3.24, arch rolling, nixpkgs unstable

bestieee, you found rocks(6) in the XScreenSaver manual, and it’s literally an asteroid-field fly-through. πŸͺ¨πŸ’« Buckle up.

🌸 NAME 🌸

rocks β€” animation of flying through an asteroid field. πŸš€

✨ 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]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so rocks draws an animation of an asteroid field moving past the observer (or vice versa). Sometimes the observer picks up spin on the Z axis. That’s the whole vibe: space rocks, motion, occasional Z-spin. πŸŒ€

πŸ’… OPTIONS πŸ’…

rocks accepts the following options. Heads up: the synopsis also shows --display host:display.screen, --foreground color, and --background color; the detailed list below doesn’t give them their own bullets, so I’m not inventing descriptions for them. 🫢

  • --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 β€” Make all the rocks the same color. πŸ–€
  • --ncolors colors β€” How many different colors to use. Default 5. Colors are chosen randomly. 🌈
  • --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. πŸ‘€
  • --count integer β€” Maximum number of rocks to draw on the screen at once. Default 100. πŸͺ¨
  • --speed integer β€” 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. 🏎️
  • --delay microseconds β€” 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. πŸ“ˆ

🧚 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. πŸͺŸ

πŸ‘‘ SEE ALSO πŸ‘‘

X(1), xscreensaver(1) β€” go read those too, bestie. πŸ“š

πŸ’€ 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. πŸš€

Copyright Β© 1992 by Jamie Zawinski. You are hereby granted permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose, without fee β€” but the above copyright notice has to appear in all copies, and both that copyright notice and this permission notice have to 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.

🌟 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. πŸ›ž

xoxo, this was rocks(6) from X Version 11 β€” version 6.15, dated 30-Mar-2026. byeee, go fly through some rocks πŸ’…πŸͺ¨πŸ’–

πŸ“¦ where this page comes from