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

cube21(6x)							XScreenSaver manual							cube21(6x)

NAME
cube21 - animates the Cube 21 puzzle SYNOPSIS
cube21 [-display host:display.screen] [-visual visual] [-window] [-root] [-install] [-delay microseconds] [-texture] [-no-texture] [-mono] [-wireframe] [-spin] [-no-spin] [-wander] [-no-wander] [-randomize] [-no-randomize] [-spinspeed number] [-rotspeed number] [-wanderspeed number] [-wait number] [-cubesize number] [-colormode arg] [-fps] DESCRIPTION
This program animates a puzzle known as Cube 21 or Square-1. Its moves are chosen randomly. Cube 21 is a Rubik-like puzzle invented in 1992. Its specialities are that it can change its shape and even the number of possible moves. It can have more than 200 different shapes and the total number of configurations (assuming colors) is several tens of billions. OPTIONS
cube21 accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -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 long to pause between frames. Default is 20000, or 0.02 second. -texture Use texture maps. This is the default. -no-texture Use solid colors. -mono Disable both texture maps and colors. -wireframe Only draw outlines. Outlines of all pieces, not only the whole object, are drawn. -spin Spin the whole object around X, Y and Z axes. This is the default. -no-spin Do not spin, showing the same three faces all the time. -wander Move the object around the screen. This is the default. -no-wander Keep the object centered on the screen. -randomize Shuffle the puzzle randomly at startup. This is the default. -no-randomize Do not shuffle at startup, begin at the shape of cube. -spinspeed number The relative speed of spinning. Default is 1.0. -rotspeed number The relative speed of the moves. Default is 3.0. Setting to <= 0.0 makes the object stay at one configuration. -wanderspeed number The relative speed of wandering around the screen. Default is 1.0. -wait number How long to stay at ending position after each move. The meaning of the argument is again relative. Default is 40.0. -cubesize number Size of the object. Value of 3.0 fills roughly all the screen (its height). Default is 0.7. -colormode argument How many and which colors should the object have. The colors are put on the piece faces so that the puzzle is solvable. The inner faces are not influenced. se or silver Simulate the "Silver Edition" - white and one random color. 2 or two Two random colors. ce or classic Simulate the "Classic Edition" - white, yellow, orange, red, green and blue. 6 or six Six random colors. 1 or random or rnd One random color. Anything else All faces white. -fps Display the current frame rate, CPU load, and polygon count. 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) 2005 by Vaclav Potocek. 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
Vaclav (Vasek) Potocek <vasek.potocek@post.cz>, 30-Aug-05. X Version 11 5.15 (28-Sep-2011) cube21(6x)
Man Page