Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | XScreenSaver |
2 | !!!XScreenSaver | ||
3 | NAME | ||
4 | SYNOPSIS | ||
5 | DESCRIPTION | ||
6 | OPTIONS | ||
7 | ENVIRONMENT | ||
8 | X RESOURCES | ||
9 | BUGS | ||
10 | SEE ALSO | ||
11 | COPYRIGHT | ||
12 | AUTHOR | ||
13 | ---- | ||
14 | !!NAME | ||
15 | |||
16 | |||
17 | petri - simulates mold growing in a petri dish | ||
18 | !!SYNOPSIS | ||
19 | |||
20 | |||
21 | __petri__ [[-display ''host:display.screen''] | ||
22 | [[-foreground ''color''] [[-background ''color''] | ||
23 | [[-window] [[-root] [[-mono] [[-install] [[-visual ''visual''] | ||
24 | [[-delay ''microseconds''] [[-size ''integer''] | ||
25 | [[-mem-throttle ''amount''] [[-count ''integer''] | ||
26 | [[-originalcolors] [[-diaglim ''real''] [[-anychan | ||
27 | ''real''] [[-minorchan ''real''] [[-instantdeathchan | ||
28 | ''real''] [[-minlifespeed ''real''] [[-maxlifespeed | ||
29 | ''real''] [[-mindeathspeed ''real''] [[-maxdeathspeed | ||
30 | ''real''] [[-minlifespan ''integer''] [[-maxlifespan | ||
31 | ''integer''] | ||
32 | !!DESCRIPTION | ||
33 | |||
34 | |||
35 | ''petri'' simulates mold growing in a petri dish via a | ||
36 | state-heavy grid of automata (vaguely like Conway's Life, | ||
37 | only with much more state per cell). | ||
38 | !!OPTIONS | ||
39 | |||
40 | |||
41 | ''petri'' accepts the following options: | ||
42 | |||
43 | |||
44 | __-window__ | ||
45 | |||
46 | |||
47 | Draw on a newly-created window. This is the | ||
48 | default. | ||
49 | |||
50 | |||
51 | __-root__ | ||
52 | |||
53 | |||
54 | Draw on the root window. | ||
55 | |||
56 | |||
57 | __-mono__ | ||
58 | |||
59 | |||
60 | If on a color display, pretend we're on a monochrome | ||
61 | display. | ||
62 | |||
63 | |||
64 | __-install__ | ||
65 | |||
66 | |||
67 | Install a private colormap for the window. | ||
68 | |||
69 | |||
70 | __-visual__ ''visual'' | ||
71 | |||
72 | |||
73 | Which visual to use. Legal values are the name of a visual | ||
74 | class, or the id number (decimal or hex) of a specific | ||
75 | visual. | ||
76 | |||
77 | |||
78 | __-delay__ ''microseconds'' | ||
79 | |||
80 | |||
81 | The interframe delay, in microseconds. Defaults to 10000, | ||
82 | resource ''delay''. | ||
83 | |||
84 | |||
85 | __-size__ ''integer'' | ||
86 | |||
87 | |||
88 | The size of a cell in pixels. Defaults to 4, resource | ||
89 | ''size''. | ||
90 | |||
91 | |||
92 | __-mem-throttle__ ''amount'' | ||
93 | |||
94 | |||
95 | The maximum amount of memory to consume, specified either in | ||
96 | megabytes (suffix | ||
97 | memThrottle''. | ||
98 | |||
99 | |||
100 | __-count__ ''integer'' | ||
101 | |||
102 | |||
103 | How many different varieties of mold to grow (including | ||
104 | Black Death). Defaults to 8, resource | ||
105 | ''count''. | ||
106 | |||
107 | |||
108 | __-originalcolors__ | ||
109 | |||
110 | |||
111 | If specified, indicates that the colors used should be the | ||
112 | artist's original choices (a fixed set of primary and | ||
113 | secondary colors). In this case, count must be 8 or less. | ||
114 | Defaults to not specified (i.e., false), resource | ||
115 | ''originalcolors''. | ||
116 | |||
117 | |||
118 | __-diaglim__ ''real'' | ||
119 | |||
120 | |||
121 | The age limit for diagonal growth as a multiplier of | ||
122 | orthogonal growth (range 1..2). 1 means square growth, 1.414 | ||
123 | (i.e., ''sqrt(2)'') means approximately circular growth, | ||
124 | 2 means diamond growth. Defaults to 1.414, resource | ||
125 | ''diaglim''. | ||
126 | |||
127 | |||
128 | __-anychan__ ''real'' | ||
129 | |||
130 | |||
131 | The chance (range 0..1) that at each iteration, one or more | ||
132 | new cells will be born. Defaults to 0.0015, resource | ||
133 | ''anychan''. | ||
134 | |||
135 | |||
136 | __-minorchan__ ''real'' | ||
137 | |||
138 | |||
139 | The chance (range 0..1) that, given that new cells will be | ||
140 | born, that only two will be added (hence being a minor cell | ||
141 | birth event). Defaults to 0.5, resource | ||
142 | ''minorchan''. | ||
143 | |||
144 | |||
145 | __-instantdeathchan__ ''real'' | ||
146 | |||
147 | |||
148 | The chance (range 0..1) that, given that death and | ||
149 | destruction will happen, that instead of using Black Death | ||
150 | cells, death will come instantaneously. Defaults to 0.2, | ||
151 | resource ''instantdeathchan''. | ||
152 | |||
153 | |||
154 | __-minlifespeed__ ''real'' | ||
155 | |||
156 | |||
157 | The minimum speed for living cells as a fraction of the | ||
158 | maximum possible speed (range 0..1). Defaults to 0.04, | ||
159 | resource ''minlifespeed''. | ||
160 | |||
161 | |||
162 | __-maxlifespeed__ ''real'' | ||
163 | |||
164 | |||
165 | The maximum speed for living cells as a fraction of the | ||
166 | maximum possible speed (range 0..1). Defaults to 0.13, | ||
167 | resource ''maxlifespeed''. | ||
168 | |||
169 | |||
170 | __-mindeathspeed__ ''real'' | ||
171 | |||
172 | |||
173 | The minimum speed for Black Death cells as a fraction of the | ||
174 | maximum possible speed (range 0..1). Defaults to 0.42, | ||
175 | resource ''mindeathspeed''. | ||
176 | |||
177 | |||
178 | __-maxdeathspeed__ ''real'' | ||
179 | |||
180 | |||
181 | The maximum speed for Black Death cells as a fraction of the | ||
182 | maximum possible speed (range 0..1). Defaults to 0.46, | ||
183 | resource ''maxdeathspeed''. | ||
184 | |||
185 | |||
186 | __-minlifespan__ ''integer'' | ||
187 | |||
188 | |||
189 | The minimum lifespan for a colony, in iterations, before | ||
190 | Black Death comes. Defaults to 500, resource | ||
191 | ''minlifespan''. | ||
192 | |||
193 | |||
194 | __-maxlifespan__ ''integer'' | ||
195 | |||
196 | |||
197 | The maximum lifespan for a colony, in iterations, before | ||
198 | Black Death comes. Defaults to 1500, resource | ||
199 | ''maxlifespan''. | ||
200 | !!ENVIRONMENT | ||
201 | |||
202 | |||
203 | __DISPLAY__ | ||
204 | |||
205 | |||
206 | to get the default host and display number. | ||
207 | |||
208 | |||
209 | __XENVIRONMENT__ | ||
210 | |||
211 | |||
212 | to get the name of a resource file that overrides the global | ||
213 | resources stored in the RESOURCE_MANAGER | ||
214 | property. | ||
215 | !!X RESOURCES | ||
216 | |||
217 | |||
218 | There are resource equivalents for each option, noted | ||
219 | above. | ||
220 | !!BUGS | ||
221 | |||
222 | |||
223 | There are no known bugs in ''petri'' as of this | ||
224 | writing. | ||
225 | !!SEE ALSO | ||
226 | |||
227 | |||
228 | xscreensaver(1) | ||
229 | !!COPYRIGHT | ||
230 | |||
231 | |||
232 | Copyright 1992-2000 by Dan Bornstein. | ||
233 | |||
234 | |||
235 | Permission to use, copy, modify, distribute, and sell this | ||
236 | software and its documentation for any purpose is hereby | ||
237 | granted without fee, provided that the above copyright | ||
238 | notice appear in all copies and that both that copyright | ||
239 | notice and this permission notice appear in supporting | ||
240 | documentation. No representations are made about the | ||
241 | suitability of this software for any purpose. It is provided | ||
242 | !!AUTHOR | ||
243 | |||
244 | |||
245 | Dan Bornstein | ||
246 | ---- |