hypercube - 2d projection of a 4d object


SUBMITTED BY: Guest

DATE: June 2, 2014, 2:13 p.m.

FORMAT: Text only

SIZE: 2.1 kB

HITS: 5803

  1. NAME
  2. hypercube - 2d projection of a 4d object
  3. SYNOPSIS
  4. 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]
  5. DESCRIPTION
  6. 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.
  7. OPTIONS
  8. hypercube accepts the following options:
  9. -window
  10. Draw on a newly-created window. This is the default.
  11. -root
  12. Draw on the root window.
  13. -mono
  14. If on a color display, pretend we're on a monochrome display.
  15. -install
  16. Install a private colormap for the window.
  17. -visual visual
  18. 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.
  19. -delay microseconds
  20. How much of a delay should be introduced between steps of the animation. Default 100000, or about 1/10th second.
  21. -observer-z int
  22. How far away the observer is from the center of the cube (the cube is one unit per side.) Default 5.
  23. -color0 color
  24. -color1 color
  25. -color2 color
  26. -color3 color
  27. -color4 color
  28. -color5 color
  29. -color6 color
  30. -color7 color
  31. 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.
  32. -xw float
  33. -xy float
  34. -xz float
  35. -yw float
  36. -yz float
  37. -zw float
  38. 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.
  39. ENVIRONMENT
  40. DISPLAY
  41. to get the default host and display number.
  42. XENVIRONMENT
  43. to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.

comments powered by Disqus