version 4, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
XScreenSaver |
|
|
2 |
!!!XScreenSaver |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
ENVIRONMENT |
|
|
8 |
SEE ALSO |
|
|
9 |
COPYRIGHT |
|
|
10 |
AUTHOR |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
penrose - draws quasiperiodic tilings |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__penrose__ [[-display ''host:display.screen''] |
|
|
20 |
[[-foreground ''color''] [[-background ''color''] |
|
|
21 |
[[-window] [[-root] [[-mono] [[-install] [[-visual ''visual''] |
|
|
22 |
[[-ncolors ''integer''] [[-delay ''microseconds''] |
|
|
23 |
[[-redoDelay ''seconds''] [[-size ''integer''] [[-ammann] |
|
|
24 |
[[-no-ammann] |
|
|
25 |
!!DESCRIPTION |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
The ''penrose'' program draws quasiperiodic |
|
|
29 |
tilings. |
|
|
30 |
|
|
|
31 |
|
3 |
perry |
32 |
See Onoda, Steinhardt, !DiVincenzo and Socolar in Phys. Rev. |
1 |
perry |
33 |
Lett. 60, #25, 1988 or Strandburg in Computers in Physics, |
|
|
34 |
Sep/Oct 1991. |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
This implementation uses the simpler version of the growth |
|
|
38 |
algorithm, i.e., if there are no forced vertices, a randomly |
|
|
39 |
chosen tile is added to a randomly chosen vertex (no |
|
|
40 |
preference for those 108 degree angles). |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
There are two essential differences to the algorithm |
|
|
44 |
presented in the literature: First, we do not allow the |
|
|
45 |
tiling to enclose an untiled area. Whenever this is in |
|
|
46 |
danger of happening, we just do not add the tile, hoping for |
|
|
47 |
a better random choice the next time. Second, when choosing |
|
|
48 |
a vertex randomly, we will take one that lies withing the |
|
|
49 |
viewport if available. If this seems to cause enclosures in |
|
|
50 |
the forced rule case, we will allow invisible vertices to be |
|
|
51 |
chosen. |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Tiling is restarted whenever one of the following happens: |
|
|
55 |
there are no incomplete vertices within the viewport or the |
|
|
56 |
tiling has extended a window's length beyond the edge of the |
|
|
57 |
window horizontally or vertically or forced rule choice has |
|
|
58 |
failed 100 times due to areas about to become |
|
|
59 |
enclosed. |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
Although quasiperiodic tilings are produced, the tiles |
|
|
63 |
themselves are not penrose tiles (darts and kites). In |
|
|
64 |
contrast to penrose tiles, these tiles can be arranged to |
|
|
65 |
form a periodic tiling. |
|
|
66 |
!!OPTIONS |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
''penrose'' accepts the following options: |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
__-window__ |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
Draw on a newly-created window. This is the |
|
|
76 |
default. |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
__-root__ |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
Draw on the root window. |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
__-mono__ |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
If on a color display, pretend we're on a monochrome |
|
|
89 |
display. |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
__-install__ |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
Install a private colormap for the window. |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
__-visual__ ''visual'' |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
Specify which visual to use. Legal values are the name of a |
|
|
102 |
visual class, or the id number (decimal or hex) of a |
|
|
103 |
specific visual. |
|
|
104 |
|
|
|
105 |
|
|
|
106 |
__-ncolors__ ''integer'' |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
How many colors should be used (if possible). Default 64. |
|
|
110 |
The colors are chosen randomly. |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
__-size__ ''integer'' |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
How big the tiles should be. Default 40 pixels. |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
__-delay__ ''milliseconds'' |
|
|
120 |
|
|
|
121 |
|
|
|
122 |
How long (in 1/1,000,000'ths of a second) to wait between |
|
|
123 |
drawing each tile. Default 10,000 or .01 |
|
|
124 |
seconds. |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
__-redoDelay__ ''seconds'' |
|
|
128 |
|
|
|
129 |
|
|
|
130 |
How long to wait between starting a completely new tiling. |
|
|
131 |
Default 3 seconds. |
|
|
132 |
|
|
|
133 |
|
|
|
134 |
__-ammann__ ''integer'' |
|
|
135 |
|
|
|
136 |
|
|
|
137 |
__-no-ammann__ ''integer'' |
|
|
138 |
|
|
|
139 |
|
|
|
140 |
Whether Ammann lines should be added. |
|
|
141 |
!!ENVIRONMENT |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
__DISPLAY__ |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
to get the default host and display number. |
|
|
148 |
|
|
|
149 |
|
|
|
150 |
__XENVIRONMENT__ |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
to get the name of a resource file that overrides the global |
|
|
154 |
resources stored in the RESOURCE_MANAGER |
|
|
155 |
property. |
|
|
156 |
!!SEE ALSO |
|
|
157 |
|
|
|
158 |
|
4 |
perry |
159 |
X(1), xscreensaver(1), |
1 |
perry |
160 |
xlock(1) |
|
|
161 |
!!COPYRIGHT |
|
|
162 |
|
|
|
163 |
|
|
|
164 |
Copyright 1996 by Timo Korvola. |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
Permission to use, copy, modify, and distribute this |
|
|
168 |
software and its documentation for any purpose and without |
|
|
169 |
fee is hereby granted, provided that the above copyright |
|
|
170 |
notice appear in all copies and that both that copyright |
|
|
171 |
notice and this permission notice appear in supporting |
|
|
172 |
documentation. |
|
|
173 |
!!AUTHOR |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
Timo Korvola |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
Ability to run standalone or with ''xscreensaver'' added |
|
|
180 |
by Jamie Zawinski |
|
|
181 |
'' |
|
|
182 |
---- |