1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <screensaver name="hypertorus" _label="Hypertorus" gl="yes">
7 <video href="http://www.youtube.com/watch?v=KJWe4G4Qa1Q"/>
10 <number id="delay" type="slider" arg="-delay %"
11 _label="Frame rate" _low-label="Low" _high-label="High"
12 low="0" high="100000" default="25000"
14 <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
18 <select id="display-mode">
19 <option id="wire" _label="Wireframe"
20 arg-set="-mode wireframe"/>
21 <option id="surface" _label="Solid"/>
22 <option id="transparent" _label="Transparent"
23 arg-set="-mode transparent"/>
26 <select id="appearance">
27 <option id="solid" _label="Solid object"
28 arg-set="-appearance solid"/>
29 <option id="bands" _label="Transparent bands"/>
30 <option id="bands" _label="1 transparent spiral"
31 arg-set="-appearance spirals-1"/>
32 <option id="bands" _label="2 transparent spirals"
33 arg-set="-appearance spirals-2"/>
34 <option id="bands" _label="4 transparent spirals"
35 arg-set="-appearance spirals-4"/>
36 <option id="bands" _label="8 transparent spirals"
37 arg-set="-appearance spirals-8"/>
38 <option id="bands" _label="16 Transparent spirals"
39 arg-set="-appearance spirals-16"/>
43 <option id="twosided" _label="Two-sided" arg-set="-twosided"/>
44 <option id="colorwheel" _label="Color wheel"/>
47 <select id="projection3d">
48 <option id="perspective-3d" _label="Perspective 3D"/>
49 <option id="orthographic-3d" _label="Orthographic 3D"
50 arg-set="-orthographic-3d"/>
53 <select id="projection4d">
54 <option id="perspective-4d" _label="Perspective 4D"/>
55 <option id="orthographic-4d" _label="Orthographic 4D"
56 arg-set="-orthographic-4d"/>
64 <number id="speed-wx" type="slider" arg="-speed-wx %"
65 _label="WX rotation speed"
66 _low-label="-4.0" _high-label="4.0"
67 low="-4.0" high="4.0" default="1.1"/>
69 <number id="speed-wy" type="slider" arg="-speed-wy %"
70 _label="WY rotation speed"
71 _low-label="-4.0" _high-label="4.0"
72 low="-4.0" high="4.0" default="1.3"/>
74 <number id="speed-wz" type="slider" arg="-speed-wz %"
75 _label="WZ rotation speed"
76 _low-label="-4.0" _high-label="4.0"
77 low="-4.0" high="4.0" default="1.5"/>
83 <number id="speed-xy" type="slider" arg="-speed-xy %"
84 _label="XY rotation speed"
85 _low-label="-4.0" _high-label="4.0"
86 low="-4.0" high="4.0" default="1.7"/>
88 <number id="speed-xz" type="slider" arg="-speed-xz %"
89 _label="XZ rotation speed"
90 _low-label="-4.0" _high-label="4.0"
91 low="-4.0" high="4.0" default="1.9"/>
93 <number id="speed-yz" type="slider" arg="-speed-yz %"
94 _label="YZ rotation speed"
95 _low-label="-4.0" _high-label="4.0"
96 low="-4.0" high="4.0" default="2.1"/>
102 <xscreensaver-updater />
105 A Clifford Torus: a torus lying on the "surface" of a 4D hypersphere.
106 Inspired by Thomas Banchoff's book "Beyond the Third Dimension:
107 Geometry, Computer Graphics, and Higher Dimensions", Scientific
108 American Library, 1990.
110 https://en.wikipedia.org/wiki/N-sphere
111 https://en.wikipedia.org/wiki/Clifford_torus
112 https://en.wikipedia.org/wiki/Regular_polytope
114 Written by Carsten Steger; 2003.