twang(6x)

✨ twang(6x) ✨

okay so bestie, welcome to twang β€” it's living in the XScreenSaver manual section (6x) and it is literally the most satisfying lil toy. Let me tell you everything πŸ’–


πŸŽ€ NAME πŸŽ€

twang β€” pluck pieces of the screen. yeah. that's the whole vibe. it takes your screen, chops it up, and twangs it 🫢


🌸 SYNOPSIS 🌸

twang [--display host:display.screen] [--foreground color] [--background color] [--window] [--root] [--window-id number] [--mono] [--install] [--visual visual] [--shm] [--no-shm] [--delay usecs] [--duration secs] [--border-color color] [--border-width integer] [--event-chance fraction] [--friction fraction] [--springiness fraction] [--tile-size integer] [--transference fraction] [--fps]

look at all those flags, she's thriving ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: twang divides the screen into equal-sized tiles, and then plucks them in various ways. that's it, that's the whole thing, and honestly? iconic.

the tiles are affected by their neighbors, so waves of motion flow through the grid 🌊 like a whole little physics girlie doing her thing. main character energy fr fr.

this manpage describes v1.3 of the program, just so you know exactly which version you're dealing with πŸ’…


πŸ’œ OPTIONS πŸ’œ

twang accepts the following options, and yes, we're going through ALL of them, no skips:

  • --window β€” draw on a newly-created window. this is the default, bestie, so if you don't say anything, this is what you get πŸŽ€
  • --root β€” draw on the root window.
  • --window-id number β€” draw on the specified window. you pick the window, she draws on it πŸ’–
  • --mono β€” if you're on a color display, pretend we're on a monochrome display. delulu but make it retro πŸ™ˆ
  • --install β€” install a private colormap for the window.
  • --visual visual β€” which visual to use. legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. pick your fighter ✨
  • --shm, --no-shm β€” use the shared memory extension (or not, respectively), if available. this may speed things up a bit, but probably won't make that much difference. if available, defaults to true, resource useSHM πŸ’€ (she said "probably won't make that much difference" and honestly that's so real of her)
  • --delay microseconds β€” the interframe delay, in microseconds. defaults to 10000, resource delay.
  • --duration seconds β€” how long to run before loading a new image. default 120 seconds ⏰
  • --border-color color β€” color of the border surrounding each tile. defaults to blue, resource borderColor πŸ’™
  • --border-width integer β€” width of the border surrounding each tile. defaults to 3, resource borderWidth.
  • --event-chance fraction β€” the chance, per iteration, for an event to occur (such as tweaking the orientation of a tile), in the range 0..1. defaults to 0.01, resource eventChance 🎲
  • --friction fraction β€” how much friction there is in the system, in the range 0..1. this is the amount by which velocities are damped per iteration. defaults to 0.05, resource friction. slowing her down, respectfully 🧚
  • --springiness fraction β€” how springy the tiles are, in the range 0..1. this is the fraction of an orientation that gets turned into a velocity towards the center (resting point). defaults to 0.1, resource springiness 🌸 boing boing
  • --tile-size integer β€” size (width and height) of each tile, not including the outer edge of the border. defaults to 120, resource tileSize.
  • --transference fraction β€” how much a tile's neighbors affect it, in the range 0..1. this is the fraction of an orientation of a neighbor that gets turned into a velocity in the same direction. defaults to 0.025, resource transference πŸ¦‹ (yes, peer pressure, but physics)
  • --fps β€” display the current frame rate and CPU load. numbers!! we love numbers πŸ”₯

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

⭐ X RESOURCES ⭐

there are resource equivalents for each option, noted above πŸ‘† (yes, i told you each one, i gotchu)


πŸ’€ BUGS πŸ’€

okay so the known issues, no sugarcoating:

  • twang should have more interesting events 😭 (she's telling on herself)
  • ways of speeding it up need to be investigated. it's kinda sluggish, especially on hugeass displays 🐌 ngl bestie, that's a whole mood

πŸ‘‘ SEE ALSO πŸ‘‘

xscreensaver(1) β€” go read it, she's the parent πŸ’…


copyright Β© 2002 by Dan Bornstein. all rights reserved.

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. 🫢 (legalese but make it cute)


🧚 AUTHOR 🧚

Dan Bornstein <danfuzz@milk.com>. thank you dan, king behavior πŸ‘‘


heads up bestie: this is X Version 11, 6.09 (07-Jun-2024) β€” that's the source/version and date info, so you know exactly which twang era you're in ✨

laterrr πŸ‘‹πŸ’– go pluck some tiles

πŸ“¦ where this page comes from