Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Apropos / Subsearch:
optional field

ico(1X)								      ico(1X)
X11R6									X11R6


  ico -	animate	an icosahedron or other	polyhedron


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


  -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.

      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

      Draw filled faces	instead	of wire	frames.

      Do not 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.

      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.


  The ico command 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.


  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 <&lt;objXXX.h>&gt;, where
  XXX is something related to the name of the polyhedron. The format of	the
  include file is defined in the file <&lt;polyinfo.h>&gt;. Look at the	file
  <&lt;objcube.h>&gt; to see what the exact format of an <&lt;objXXX.h>&gt; file should	be,
  then create your <&lt;objXXX.h>&gt; file in that format.

  After	making the new <&lt;objXXX.h>&gt; file (or copying in a	new one	from else-
  where), simply do a 'make depend'.  This will	recreate the file
  <&lt;allobjs.h>&gt;, which lists all of the <&lt;objXXX.h>&gt; files.	 Doing a 'make'	after
  this will rebuild ico	with the new object information.


  The root window is not refreshed after ico -r	exits; the last-displayed ico
  pattern remains.

  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.


  Copyright 1988, X Consortium

  See X(1X) for	a full statement of rights and permissions.