| 1 |
.TH ICO 1 "ico 1.0.6" "X Version 11" |
| 2 |
.SH NAME |
| 3 |
ico \- animate an icosahedron or other polyhedron |
| 4 |
.SH SYNOPSIS |
| 5 |
.B ico |
| 6 |
[-display display] [-geometry geometry] |
| 7 |
[-r] [-d pattern] [-i] [-dbl] [-faces] [-noedges] |
| 8 |
[-sleep n] [-obj object] [-colors color-list] |
| 9 |
.LP |
| 10 |
.B ico |
| 11 |
-objhelp |
| 12 |
.LP |
| 13 |
.B ico |
| 14 |
-version |
| 15 |
.SH DESCRIPTION |
| 16 |
.I Ico |
| 17 |
displays a wire-frame rotating polyhedron, with hidden lines removed, |
| 18 |
or a solid-fill polyhedron with hidden faces removed. |
| 19 |
There are a number of different polyhedra available; |
| 20 |
adding a new polyhedron to the program is quite simple. |
| 21 |
.SH OPTIONS |
| 22 |
.TP |
| 23 |
.B -r |
| 24 |
Display on the root window instead of creating a new window. |
| 25 |
.TP |
| 26 |
.B -d pattern |
| 27 |
Specify a bit pattern for drawing dashed lines for wire frames. |
| 28 |
.TP |
| 29 |
.B -i |
| 30 |
Use inverted colors for wire frames. |
| 31 |
.TP |
| 32 |
.B -dbl |
| 33 |
Use double buffering on the display. |
| 34 |
This works for either wire frame or solid fill drawings. |
| 35 |
For solid fill drawings, using this switch results in substantially |
| 36 |
smoother movement. |
| 37 |
Note that this requires twice as many bit planes as without double buffering. |
| 38 |
Since some colors are typically allocated by other programs, |
| 39 |
most eight-bit-plane displays will probably be limited to eight colors |
| 40 |
when using double buffering. |
| 41 |
.TP |
| 42 |
.B -faces |
| 43 |
Draw filled faces instead of wire frames. |
| 44 |
.TP |
| 45 |
.B -noedges |
| 46 |
Don't draw the wire frames. |
| 47 |
Typically used only when -faces is used. |
| 48 |
.TP |
| 49 |
.B -sleep \fIn\fP |
| 50 |
Sleep n seconds between each move of the object. |
| 51 |
.TP |
| 52 |
.B -obj \fIobject\fP |
| 53 |
Specify what object to draw. |
| 54 |
If no object is specified, an icosahedron is drawn. |
| 55 |
.TP |
| 56 |
.B -objhelp |
| 57 |
Print out a list of the available objects, along with information |
| 58 |
about each object. |
| 59 |
.TP |
| 60 |
.B -colors \fIcolor color ...\fP |
| 61 |
Specify what colors should be used to draw the filled faces of the object. |
| 62 |
If less colors than faces are given, the colors are reused. |
| 63 |
.TP |
| 64 |
.B -version |
| 65 |
Print program version information and exit. |
| 66 |
.SH PROGRAM TERMINATION |
| 67 |
.LP |
| 68 |
Pressing "q" will close a window. If compiled with threads support, the |
| 69 |
program will stop only when all threads terminate. You can also close an |
| 70 |
animation window using the ICCCM \fIdelete\fP message (depending on your |
| 71 |
window manager, you will have a decoration button or menu to send such |
| 72 |
message). |
| 73 |
.SH ADDING POLYHEDRA |
| 74 |
.LP |
| 75 |
If you have the source to ico, it is very easy to add more polyhedra. |
| 76 |
Each polyhedron is defined in an include file by the name of objXXX.h, |
| 77 |
where XXX is something related to the name of the polyhedron. |
| 78 |
The format of the include file is defined in the file polyinfo.h. |
| 79 |
Look at the file objcube.h to see what the exact format of an objXXX.h |
| 80 |
file should be, then create your objXXX.h file in that format. |
| 81 |
.LP |
| 82 |
After making the new objXXX.h file (or copying in a new one from elsewhere), |
| 83 |
simply do a 'make depend'. |
| 84 |
This will recreate the file allobjs.h, which lists all of the objXXX.h |
| 85 |
files. |
| 86 |
Doing a 'make' after this will rebuild ico with the new object information. |
| 87 |
.SH "SEE ALSO" |
| 88 |
X(7) |
| 89 |
.SH BUGS |
| 90 |
.LP |
| 91 |
Pyramids and tetrahedrons with filled faces do not display correctly. |
| 92 |
.LP |
| 93 |
A separate color cell is allocated for each name in the -colors list, even |
| 94 |
when the same name may be specified twice. Color allocation fails in |
| 95 |
TrueColor displays and option \fI-faces\fP does not work well. |