172 lines
4.7 KiB
HTML
172 lines
4.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ICO</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ICO</H1>
|
|
Section: User Commands (1)<BR>Updated: ico 1.0.5<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ico - animate an icosahedron or other polyhedron
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ico</B>
|
|
|
|
[-display display] [-geometry geometry]
|
|
[-r] [-d pattern] [-i] [-dbl] [-faces] [-noedges]
|
|
[-sleep n] [-obj object] [-colors color-list]
|
|
<P>
|
|
|
|
<B>ico</B>
|
|
|
|
-objhelp
|
|
<P>
|
|
|
|
<B>ico</B>
|
|
|
|
-version
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<I>Ico</I>
|
|
|
|
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.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-r</B>
|
|
|
|
<DD>
|
|
Display on the root window instead of creating a new window.
|
|
<DT id="2"><B>-d pattern</B>
|
|
|
|
<DD>
|
|
Specify a bit pattern for drawing dashed lines for wire frames.
|
|
<DT id="3"><B>-i</B>
|
|
|
|
<DD>
|
|
Use inverted colors for wire frames.
|
|
<DT id="4"><B>-dbl</B>
|
|
|
|
<DD>
|
|
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.
|
|
<DT id="5"><B>-faces</B>
|
|
|
|
<DD>
|
|
Draw filled faces instead of wire frames.
|
|
<DT id="6"><B>-noedges</B>
|
|
|
|
<DD>
|
|
Don't draw the wire frames.
|
|
Typically used only when -faces is used.
|
|
<DT id="7"><B>-sleep </B><I>n</I>
|
|
|
|
<DD>
|
|
Sleep n seconds between each move of the object.
|
|
<DT id="8"><B>-obj </B><I>object</I>
|
|
|
|
<DD>
|
|
Specify what object to draw.
|
|
If no object is specified, an icosahedron is drawn.
|
|
<DT id="9"><B>-objhelp</B>
|
|
|
|
<DD>
|
|
Print out a list of the available objects, along with information
|
|
about each object.
|
|
<DT id="10"><B>-colors </B><I>color color ...</I>
|
|
|
|
<DD>
|
|
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.
|
|
<DT id="11"><B>-version</B>
|
|
|
|
<DD>
|
|
Print program version information and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>PROGRAM TERMINATION</H2>
|
|
|
|
<P>
|
|
|
|
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 <I>delete</I> message (depending on your
|
|
window manager, you will have a decoration button or menu to send such
|
|
message).
|
|
<A NAME="lbAG"> </A>
|
|
<H2>ADDING POLYHEDRA</H2>
|
|
|
|
<P>
|
|
|
|
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.
|
|
<P>
|
|
|
|
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.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?7+X">X</A>(7)
|
|
<A NAME="lbAI"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
<P>
|
|
|
|
Pyramids and tetrahedrons with filled faces do not display correctly.
|
|
<P>
|
|
|
|
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 <I>-faces</I> does not work well.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright 1994 X Consortium
|
|
<BR>
|
|
|
|
See <I><A HREF="/cgi-bin/man/man2html?7+X">X</A>(7)</I> for a full statement of rights and permissions.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="12"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="13"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="14"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="15"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="16"><A HREF="#lbAF">PROGRAM TERMINATION</A><DD>
|
|
<DT id="17"><A HREF="#lbAG">ADDING POLYHEDRA</A><DD>
|
|
<DT id="18"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="19"><A HREF="#lbAI">BUGS</A><DD>
|
|
<DT id="20"><A HREF="#lbAJ">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:17 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|