1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <screensaver name="klein" _label="Klein" gl="yes">
8 <select id="kleinbottle">
9 <option id="random" _label="Random shape"/>
10 <option id="figure-8" _label="Figure 8" arg-set="-klein-bottle figure-8"/>
11 <option id="lawson" _label="Lawson" arg-set="-klein-bottle lawson"/>
14 <select id="view-mode">
15 <option id="walk" _label="Random motion"/>
16 <option id="walk" _label="Walk" arg-set="-view-mode walk"/>
17 <option id="turn" _label="Turn" arg-set="-view-mode turn"/>
18 <option id="walk-turn" _label="Walk and turn" arg-set="-view-mode walk-turn"/>
21 <boolean id="orientation-marks" _label="Show orientation marks"
22 arg-set="-orientation-marks"/>
26 <select id="display-mode">
27 <option id="random" _label="Random surface"/>
28 <option id="wire" _label="Wireframe mesh" arg-set="-mode wireframe"/>
29 <option id="surface" _label="Solid surface" arg-set="-mode surface"/>
30 <option id="transparent" _label="Transparent surface" arg-set="-mode transparent"/>
33 <select id="appearance">
34 <option id="random" _label="Random pattern"/>
35 <option id="solid" _label="Solid object" arg-set="-appearance solid"/>
36 <option id="bands" _label="See-through bands" arg-set="-appearance bands"/>
40 <option id="random" _label="Random coloration"/>
41 <option id="twosided" _label="Two-sided" arg-set="-colors two-sided"/>
42 <option id="rainbow" _label="Rainbow colors" arg-set="-colors rainbow"/>
43 <option id="depth" _label="4d depth colors" arg-set="-colors depth"/>
46 <select id="projection3d">
47 <option id="random" _label="Random 3D"/>
48 <option id="perspective-3d" _label="Perspective 3D" arg-set="-projection-3d perspective"/>
49 <option id="orthographic-3d" _label="Orthographic 3D" arg-set="-projection-3d orthographic"/>
52 <select id="projection4d">
53 <option id="random" _label="Random 4D"/>
54 <option id="perspective-4d" _label="Perspective 4D" arg-set="-projection-4d perspective"/>
55 <option id="orthographic-4d" _label="Orthographic 4D" arg-set="-projection-4d orthographic"/>
61 <number id="speed-wx" type="slider" arg="-speed-wx %"
62 _label="WX rotation speed"
63 _low-label="-4.0" _high-label="4.0"
64 low="-4.0" high="4.0" default="1.1"/>
66 <number id="speed-wy" type="slider" arg="-speed-wy %"
67 _label="WY rotation speed"
68 _low-label="-4.0" _high-label="4.0"
69 low="-4.0" high="4.0" default="1.3"/>
71 <number id="speed-wz" type="slider" arg="-speed-wz %"
72 _label="WZ rotation speed"
73 _low-label="-4.0" _high-label="4.0"
74 low="-4.0" high="4.0" default="1.5"/>
78 <number id="speed-xy" type="slider" arg="-speed-xy %"
79 _label="XY rotation speed"
80 _low-label="-4.0" _high-label="4.0"
81 low="-4.0" high="4.0" default="1.7"/>
83 <number id="speed-xz" type="slider" arg="-speed-xz %"
84 _label="XZ rotation speed"
85 _low-label="-4.0" _high-label="4.0"
86 low="-4.0" high="4.0" default="1.9"/>
88 <number id="speed-yz" type="slider" arg="-speed-yz %"
89 _label="YZ rotation speed"
90 _low-label="-4.0" _high-label="4.0"
91 low="-4.0" high="4.0" default="2.1"/>
95 <number id="walk-direction" type="slider" arg="-walk-direction %"
96 _label="Walking direction"
97 _low-label="-180.0" _high-label="180.0"
98 low="-180.0" high="180.0" default="7.0"/>
100 <number id="walk-speed" type="slider" arg="-walk-speed %"
101 _label="Walking speed"
102 _low-label="1.0" _high-label="100.0"
103 low="1.0" high="100.0" default="20.0"/>
105 <number id="delay" type="slider" arg="-delay %"
106 _label="Frame rate" _low-label="Low" _high-label="High"
107 low="0" high="100000" default="10000"
110 <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
114 <xscreensaver-updater />
117 This animates a Klein bottle, the 4D analog of a moebius strip.
119 You can walk on the surface of the bottle or rotate it in 4D or walk
120 on it while it rotates in 4D. Inspired by Thomas Banchoff's book
121 "Beyond the Third Dimension: Geometry, Computer Graphics, and Higher
122 Dimensions", Scientific American Library, 1990.
124 http://en.wikipedia.org/wiki/Klein_bottle
126 Written by Carsten Steger; 2008.