blitspin(6)

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

πŸ’« blitspin(6) β€” the XScreenSaver manual, but make it cute πŸ’«

okay bestie, so this is blitspin(6) from the XScreenSaver manual, and it's genuinely one of the most satisfying little programs ever. it spins a bitmap. that's it. that's the vibe. ✨


🌸 NAME 🌸

blitspin β€” rotates a bitmap in an interesting way πŸŒ€ (yes that's the actual description, and honestly? iconic.)


πŸŽ€ SYNOPSIS πŸŽ€

blitspin [--display host:display.screen] [--foreground color]
[--background color] [--window] [--root] [--window-id number] [--mono]
[--install] [--visual visual] [--bitmap filename] [--delay usecs]
[--delay2 usecs] [--duration secs]

πŸ’… DESCRIPTION πŸ’…

so like, blitspin just... repeatedly rotates a bitmap by 90 degrees, but it does it with logical operations which is the whole flex πŸ”₯. here's the tea:

  • the bitmap gets chopped into quadrants, and the quadrants get shifted clockwise.
  • then it does the exact same thing again, but with progressively smaller quadrants.
  • BUT β€” and this is the best part β€” all sub-quadrants of a given size get rotated in parallel. main character energy fr.

so the whole thing costs O(16*log2(N)) blits of size NxN. the catch (and there's always a catch, bestie πŸ’€): the image must be square, and the size must be a power of 2.


✨ OPTIONS ✨

blitspin accepts the following options, and yes we're going through all of them, no skipping πŸ’–:

  • --window β€” draw on a newly-created window. this is the default, so if you do nothing, this is what you get 🫢
  • --root β€” draw on the root window. big "i live on your desktop now" energy.
  • --window-id number β€” draw on the specified window. you pick the window, it spins there. slay.
  • --mono β€” if you're on a color display, just pretend we're on a monochrome display πŸ™ˆ. delusion, but make it functional.
  • --install β€” install a private colormap for the window. very exclusive, very VIP πŸ‘‘.
  • --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.
  • --bitmap filename β€” the file name of a bitmap to rotate. it need not be square: it will be padded with the background color. if unspecified or the string (default), a builtin bitmap is used.

if support for the XPM library was enabled at compile-time, the specified file may be in XPM format as well as XBM, and thus may be a color image 🌈 (color! in this economy!).

the *bitmapFilePath resource will be searched if the bitmap name is not a fully-qualified pathname.

  • --grab-screen β€” if this option is specified, then the image which is spun will be grabbed from the portion of the screen underlying the blitspin window, or from the system's video input, or from a random file on disk, as indicated by the grabDesktopImages, grabVideoFrames, and chooseRandomImages options in the ~/.xscreensaver file; see xscreensaver-settings(1) for more details. 😭 it's canon, it's in the config file, it's a whole ecosystem.
  • --delay microseconds β€” how long to delay between steps of the rotation process, in microseconds. default is 500000, one-half second ⏳.
  • --duration seconds β€” how long to run before loading a new image. default 120 seconds.
  • --delay2 microseconds β€” how long to delay between each 90-degree rotation, in microseconds. default is 500000, one-half second. DISPLAY to get the default host and display number. 🫠 (yes, that last sentence is really sitting there in the middle of this option, no cap β€” that's just how the page is, we don't ask questions, we just report it faithfully.)
  • --fps β€” display the current frame rate and CPU load πŸ“Š. numbers! live! on your screen!

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • 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), xscreensaver-settings(1), xscreensaver-getimage(6)


Copyright Β© 1992, 1993, 1997, 2001 by Jamie Zawinski. 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.

🚨 bestie this literally means: no warranty, no promises, use at your own risk. it's giving "i am not responsible for your choices" and honestly? fair.

🌟 AUTHOR 🌟

Jamie Zawinski <jwz@jwz.org>, 17-aug-92.

Based on SmallTalk code which appeared in the August 1981 issue of Byte magazine 🧚 (a literal time capsule, we love a documented lineage).


okay that's the whole page, you're officially an expert πŸŽ“πŸ’– β€” this was X Version 11, 6.15 (30-Mar-2026), and blitspin(6) is out here still spinning bitmaps after all these years. go rotate something, bestie πŸ’«πŸ«Ά

πŸ“¦ where this page comes from