ICO(1)

πŸ“¦
version 7.7+11build4 Β· 3 versions
, in debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ico β€” bestie, it's giving ROTATING POLYHEDRA πŸ’–

okay so real quick, this is the manual for ico, from the General Commands Manual section of your friendly neighborhood man pages. sit down, grab a strawberry, we're gonna spin some shapes 🌸


✨ NAME ✨

ico β€” animate an icosahedron or other polyhedron πŸ¦‹


🌈 SYNOPSIS 🌈

ico [-display display] [-geometry geometry] [-r] [-d pattern] [-i]
[-dbl] [-faces] [-noedges] [-sleep n] [-obj object] [-colors color-list]

ico -objhelp

ico -version

πŸ’… DESCRIPTION πŸ’…

So ico literally draws a wire-frame rotating polyhedron for you β€” and it's not messy about it, because it removes the hidden lines. or, if you'd rather, it does a solid-fill polyhedron with the hidden faces removed. either way? iconic. πŸ‘‘

and the best part, bestie: there are a bunch of different polyhedra available, and adding a new polyhedron to the program is quite simple. no cap. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -r β€” display on the root window instead of making a whole new window. main character energy, just vibing on the background 🫢
  • -d pattern β€” specify a bit pattern for drawing dashed lines for wire frames.
  • -i β€” use inverted colors for wire frames. the flip side, the remix πŸ’œ
  • -dbl β€” use double buffering on the display. this works for either wire frame or solid fill drawings. for solid fill drawings, using this switch results in substantially smoother movement. lowkey important note tho: this requires twice as many bit planes as without double buffering. and since some colors are typically allocated by other programs, most eight-bit-plane displays will probably be limited to eight colors when using double buffering. 😭
  • -faces β€” draw filled faces instead of wire frames. glow-up mode πŸ”₯
  • -noedges β€” don't draw the wire frames. typically used only when -faces is used.
  • -sleep n β€” sleep n seconds between each move of the object. slow it down, let it breathe 🧚
  • -obj object β€” specify what object to draw. if no object is specified, an icosahedron is drawn.
  • -objhelp β€” print out a list of the available objects, along with information about each object. the menu, basically πŸ“‹
  • -colors color color ... β€” specify what colors should be used to draw the filled faces of the object. if less colors than faces are given, the colors are reused. ♻️
  • -version β€” print program version information and exit. bye bestie πŸ‘‹

πŸšͺ PROGRAM TERMINATION πŸšͺ

Pressing "q" will close a window.

if it was compiled with threads support, the program will stop only when all threads terminate β€” so don't panic if it lingers a sec, it's just waiting for the whole squad to finish. 🫢

you can also close an animation window using the ICCCM delete message (depending on your window manager, you'll have a decoration button or menu to send such message).


πŸ› οΈ ADDING POLYHEDRA πŸ› οΈ

if you have the source to ico, it is very easy to add more polyhedra. here's the tea:

each polyhedron is defined in an include file by the name of objXXX.h, where XXX is something related to the name of the polyhedron. the format of the include file is defined in the file polyinfo.h. look at the file objcube.h to see what the exact format of an objXXX.h file should be, then create your objXXX.h file in that format. πŸ’–

after making the new objXXX.h file (or copying in a new one from elsewhere), simply do a 'make depend'. this will recreate the file allobjs.h, which lists all of the objXXX.h files. doing a 'make' after this will rebuild ico with the new object information. periodt. ✨


πŸ‘€ SEE ALSO πŸ‘€

X(7)


πŸ’€ BUGS πŸ’€

okay so, full transparency, no gatekeeping:

  • Pyramids and tetrahedrons with filled faces do not display correctly. πŸ™ˆ
  • A separate color cell is allocated for each name in the -colors list, even when the same name may be specified twice. and color allocation fails in TrueColor displays and option -faces does not work well. it's giving tragic, honestly. 😭

and that's the whole page, bestie!! this was X Version 11, ico version 1.0.6 β€” go spin something pretty πŸ’–βœ¨πŸ¦‹πŸŒΈπŸ’