Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ico(1) [xfree86 man page]

ICO(1)							      General Commands Manual							    ICO(1)

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] [-objhelp] [-colors color-list] DESCRIPTION
Ico displays a wire-frame rotating polyhedron, with hidden lines removed, or a solid-fill polyhedron with hidden faces removed. There are a number of different polyhedra available; adding a new polyhedron to the program is quite simple. OPTIONS
-r Display on the root window instead of creating a new window. -d pattern Specify a bit pattern for drawing dashed lines for wire frames. -i Use inverted colors for wire frames. -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. Note that this requires twice as many bit planes as without double buffering. 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. -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. -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. -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. PROGRAM TREMINATION
Pressing "q" will close a window. If compiled with threads support, the program will stop only when all threads terminate. You can also close an animation window using the ICCCM delete message (depending on your window manager, you will 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. 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. SEE ALSO
X(7) BUGS
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. Color allocation fails in TrueColor displays and option -faces does not work well. COPYRIGHT
Copyright 1994 X Consortium See X(7) for a full statement of rights and permissions. XFree86 Version 4.7.0 ICO(1)

Check Out this Related Man Page

XScreenSaver(1) 					      General Commands Manual						   XScreenSaver(1)

NAME
hypercube - 2d projection of a 4d object SYNOPSIS
hypercube [-display host:display.screen] [-foreground color] [-background color] [-color[0-7] color] [-xy float] [-xz float] [-yz float] [-xw float] [-yw float] [-zw float] [-observer-z int] [-delay usecs] [-window] [-root] [-mono] [-install] [-visual visual] DESCRIPTION
The hypercube program displays a wireframe projection of a hypercube which is rotating at user-specified rates around any or all of its four axes. OPTIONS
hypercube accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -mono If on a color display, pretend we're on a monochrome display. -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. -delay microseconds How much of a delay should be introduced between steps of the animation. Default 100000, or about 1/10th second. -observer-z int How far away the observer is from the center of the cube (the cube is one unit per side.) Default 5. -color0 color -color1 color -color2 color -color3 color -color4 color -color5 color -color6 color -color7 color The colors used to draw the line segments bordering the eight faces of the cube. Some of the faces have only two of their border- lines drawn in the specified color, and some have all four. -xw float -xy float -xz float -yw float -yz float -zw float The amount that the cube should be rotated around the specified axis at each frame of the animation, expressed in radians. These should be small floating-point values (less than 0.05 works best.) Default: xy=0.01, xz=0.005, yw=0.01. 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. SEE ALSO
X(1), xscreensaver(1) COPYRIGHT
Copyright (C) 1992 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. AUTHOR
Jamie Zawinski <jwz@jwz.org>, 6-dec-92. X Version 11 6-dec-92 XScreenSaver(1)
Man Page