|
|
1.1 root 1:
2:
3:
4: XDEMO(1) UNIX Programmer's Manual XDEMO(1)
5:
6:
7:
8: NAME
9: xdemo - demonstration program for X window system
10:
11: SYNOPSIS
12: xdemo [ options ] demo [ =_g_e_o_m_e_t_r_y ] [ _h_o_s_t:_n_u_m_b_e_r ]
13:
14: DESCRIPTION
15: _X_d_e_m_o is a demonstration program for the X window system.
16: By default, the host and display number are extracted from
17: the environment variable ``DISPLAY''. One can, however,
18: specify a different display. _H_o_s_t specifies the host, and
19: _n_u_m_b_e_r specifies the number of the display. For example,
20: ``xdemo star orpheus:1'' will put the star demo on display
21: one on machine orpheus. Demo can be any of: balls, bounce,
22: circle, circles, colors, cookie, draw, life, lines, menu-
23: life, motion, plaid, qix, rgb, shades, slide, star, tetra,
24: wallpaper, web, and xor. The colors, rgb, and shades demos
25: will only work on color displays.
26:
27: The window is created in the usual way using one of the
28: mouse buttons. Using the center button, depress the button
29: to define one corner of the window, move the cursor to where
30: the opposite corner of the window should be and release the
31: button. Using the right button, depress the button to
32: define the default size window, move the cursor to position
33: the window, and release the button. Using the left button
34: for all demos but colors, life, and menulife, click the left
35: button to place the default size window in the upper left
36: corner of the screen. Using the left button for the colors,
37: life, and menulife demos, depress the button to define the
38: default size window, move the cursor to position the window,
39: and release the button.
40:
41: The window can also be placed, or given a default size, with
42: the standard geometry specification:
43: =_g_e_o_m_e_t_r_y
44: The geometry specification can be used to set the size and
45: location of the window. See _X(_1) for details.
46:
47: Most of the demos run without user input: balls, bounce,
48: circle, circles, colors, lines, plaid, qix, slide, star,
49: tetra, wallpaper, web, and xor. Most of these have random
50: number generators built in, and will produce different
51: results each time they are run, or each time the window is
52: resized.
53:
54: MOUSE USAGE
55: Mouse usage only applies on the demos draw, life, menulife,
56: motion, rgb, and shades.
57:
58: In the draw demo, clicking the left button defines points
59: that will be connected by a spline when the center button is
60:
61:
62:
63: Printed 9/15/87 12 December 1985 1
64:
65:
66:
67:
68:
69:
70: XDEMO(1) UNIX Programmer's Manual XDEMO(1)
71:
72:
73:
74: clicked. If the center button is clicked twice in a row,
75: the window is cleared. Clicking the right button defines
76: points to be connected by straight lines when the center
77: button is clicked. Left and right button clicks can be com-
78: bined in a single shape. Clicking any button in one of the
79: selection boxes at the upper left selects a drawing mode:
80: patterned gray line, solid white line, solid black line,
81: dashed white line, dashed black line, filled black, filled
82: white, and filled gray. The drawing function can be
83: selected by placing the cursor over the function box at the
84: top right and typing a single hexadecimal digit (correspond-
85: ing to the characteristic function). For line drawing, the
86: brush height and width can be adjusted by placing the cursor
87: over the height or width box and typing a single hexadecimal
88: digit. Text can be put into the picture by positioning the
89: mouse and typing. The color of the text is determined from
90: the line/fill color, and the display function is applied.
91:
92: The motion demo uses the mouse to define points of a shape
93: just as in the draw demo, but moves the line drawing around
94: the window, bouncing off the walls, while randomly changing
95: the points relative to each other.
96:
97: The life demo uses the left button to randomly insert occu-
98: pied cells into the window and start the life program ini-
99: tially. Clicking the center button will turn life on and
100: off, so you can look at interesting intermediate patterns,
101: and the right button is used to clear the `universe'.
102:
103: The menulife demo uses the left button to set/clear indivi-
104: dual cells while the button is held down. The right button
105: and the space bar can be used to single step the genera-
106: tions. The middle button pops up a pull down menu. Release
107: the middle button on a selection for it to take effect;
108: release outside of all selections to abort. Changing rules
109: takes a long time.
110:
111: The rgb demo uses button operations in the three boxes at
112: the top of the window to change color values. The left but-
113: ton decrements the value, the right button increments the
114: value. If you press the middle button and then move around,
115: the vertical position of the mouse controls the value, with
116: zero intensity at the top of the box, and full intensity at
117: the bottom of the box; releasing the mouse button sets the
118: final value.
119:
120: The shades demo uses button clicks to change color values.
121: A matrix of two primary colors of varying intensity, with a
122: third primary of constant intensity is displayed. The right
123: button increments the value of the third primary, the left
124: button decrements the value, and the middle button switches
125: to a different pair of initial primaries.
126:
127:
128:
129: Printed 9/15/87 12 December 1985 2
130:
131:
132:
133:
134:
135:
136: XDEMO(1) UNIX Programmer's Manual XDEMO(1)
137:
138:
139:
140: OPTIONS
141: On color displays, colors can be specified in the command
142: line:
143:
144: -fg=_c_o_l_o_r foreground (lines, text, etc.)
145: -bg=_c_o_l_o_r background
146: -bd=_c_o_l_o_r border
147: -ms=_c_o_l_o_r mouse
148: -fn=_f_o_n_t font
149:
150: Many demos ignore the foreground color and do random color
151: selection.
152:
153: X DEFAULTS
154: For the following defaults, you can also give a demo-
155: specific default by prepending the demo name and a separat-
156: ing period, e.g., ``Plaid.Foreground''.
157:
158: Background
159: To determine the background color.
160:
161: Border To determine the border color.
162:
163: BorderWidth
164: To determine the border width.
165:
166: BodyFont
167: To determine text font.
168:
169: Foreground
170: To determine the foreground color.
171:
172: Mouse To determine the mouse cursor color.
173:
174: MenuBackground
175: To determine the menu background color in menulife.
176:
177: MenuForeground
178: To determine the menu text color in menulife.
179:
180: MenuFont
181: To determine menu text font.
182:
183: MenuMouse
184: To determine the menu mouse cursor color in menu-
185: life.
186:
187: COOKIE
188: The cookie monster wants you to give it a ``cookie'', of
189: course.
190:
191:
192:
193:
194:
195: Printed 9/15/87 12 December 1985 3
196:
197:
198:
199:
200:
201:
202: XDEMO(1) UNIX Programmer's Manual XDEMO(1)
203:
204:
205:
206: ENVIRONMENT
207: DISPLAY This program gets the display to use by default
208: from this variable.
209:
210: AUTHOR
211: Bob Scheifler, MIT Laboratory for Computer Science. Many of
212: the demos are ripoffs: balls, bounce, circle, circles,
213: lines, plaid, slide, tetra, wallpaper, and xor were taken
214: from Lucasfilm, web was taken from Steve Ward, and qix from
215: Symbolics. Menulife written by Paul Johnson, MIT Laboratory
216: for Computer Science.
217: Copyright (c) 1985, Massachusetts Institute of Technology
218:
219: SEE ALSO
220: X(1), xterm(1), xwm(1)
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261: Printed 9/15/87 12 December 1985 4
262:
263:
264:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.