glhanoi(6)

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

πŸ’« glhanoi β€” the OpenGL Towers of Hanoi situation

okay so this is a page from the XScreenSaver manual, and bestie, it's about the Towers of Hanoi but make it OpenGL. yes, that classic recursion puzzle, now with ✨rendering✨. let's get into it.


🌸 SYNOPSIS 🌸

[--root] [--window-id number] [--delay number] [--count number] [--poles
number] [--speed number] [--wireframe] [--light] [--texture] [--fog]
[--fps]

that's the whole invocation, no cap. (heads up: --display shows up here in the synopsis, and the options list below is exactly what the page spells out β€” i'm not gonna make stuff up about it, iykyk.)


πŸŽ€ DESCRIPTION πŸŽ€

it's a Towers of Hanoi implementation, and it's in OpenGL. that's literally the whole description. iconic brevity, honestly. πŸ’…


✨ OPTIONS ✨

  • --visual visual β€” picks which visual you want. legal values are either the name of a visual class, or the id number of a specific visual (decimal or hex, your call 🫢).
  • --window β€” draws on a brand-new window that just got created. this is the default, so it's giving main character energy by default.
  • --root β€” draws on the root window instead.
  • --window-id number β€” draws on the window you point at with that number.
  • --delay number β€” the per-frame delay, measured in microseconds. default is 30000 (that's 0.03 seconds, for the people keeping score ⏱️).
  • --count number β€” how many disks. default: 7.
  • --poles number β€” how many poles. default: random from 3 to disks+1 β€” so yes, it vibes and picks for you 🎲.
  • --speed number β€” speed multiplier, and it applies to the smallest disks. default: 1.
  • --trails number β€” the length of the disk trails, in seconds. default: 2.
  • --wireframe | --no-wireframe β€” render in wireframe instead of solid. wires only, no chunks.
  • --fog | --no-fog β€” render in fog. spooky lil atmosphere, optional.
  • --fps β€” shows you the current frame rate, the CPU load, and the polygon count. numbers go brrr πŸ“Š.
  • --light | -no-light β€” whether the scene is lit. (that second one is written -no-light on the page, one dash, don't come for me, i'm just the messenger πŸ™ˆ)
  • --texture | --no-texture β€” render with textures instead of solid.

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • DISPLAY β€” used to get the default host and display number.
  • XENVIRONMENT β€” used 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)

like, go read those too, they're the supporting cast πŸ’œ


Copyright Β© 2004 by Dave Atkinson.

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.

fr fr, "as is", no warranty, no promises β€” that's the deal πŸ’€

⭐ AUTHOR ⭐

Dave Atkinson. king behavior πŸ‘‘


and that's the whole page, bestie!! this came from X Version 11, version 6.15 (30-Mar-2026) β€” go forth and stack those disks πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from