xball — bounce balls on the screen
Synopsisxball [ -help -delay delay -gravity percent-gravity -elasticity percent-elasticity -itemWidth ball-width -itemHeight ball-height -collide -perpetual -haltSim -demoFile demo-file -rgbTxt rgb.txt-file ] [XToolkit options]
XBall allows the user to create 3-d shaded balls, or to write and run demo which create and manipulate the balls in various ways. Documentation is included on-line via the Help menu and is not reproduced here.
OptionsRun xball -help for a decription of the command line options
DemosSeveral demo files are included with the distribution. To run all the demos, run 'run_demos'.
ResourcesMost resources are available for user modification. See the XBall app-defaults file for a complete listing of widgets,
Following is a list of the most useful resources:
- XBall*canvas.width, height
- The default width and height of the window in which balls bounce in.
- The amount to slow the simulation, in case the computer is too fast. A reasonable range is 0 to 200.
- XBall.itemWidth, itemHeight
- The default width and height of the balls.
- If true, balls are colliding on startup.
- If true, balls are perpetual on startup.
- If true, simulation is halted on startup.
- Specified the file to run as a demo on startup.
- Specified the file to load for the colors. The default file is /etc/X11/rgb.txt
- /etc/X11/rgb.txt X11 color names and values.
CopyrightCopyright 1991, 1993 David Nedde.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee provided that the above copyright notice appears in all copies. It is provided "as is" without express or implied warranty.