summaryrefslogtreecommitdiffstats
path: root/hacks/config/menger.xml
blob: 760167e00aee8f54cfbdccd7900b3fc3e1c5ebba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="ISO-8859-1"?>

<screensaver name="menger" _label="Menger" gl="yes">

  <command arg="-root"/>

  <video href="https://www.youtube.com/watch?v=qpnuNJH9cLw"/>

  <number id="delay" type="slider" arg="-delay %"
          _label="Frame rate" _low-label="Low" _high-label="High"
          low="0" high="100000" default="30000"
          convert="invert"/>

  <number id="descent" type="slider" arg="-speed %"
          _label="Duration" _low-label="Short" _high-label="Long"
          low="2" high="500" default="150"
          convert="invert"/>

  <number id="depth" type="spinbutton" arg="-depth %"
          _label="Max depth" low="1" high="6" default="3"/>

  <!-- #### -no-optimize -->

  <boolean id="wander" _label="Wander" arg-unset="-no-wander"/>

  <select id="rotation">
    <option id="no"  _label="Don't rotate"               arg-set="-spin 0"/>
    <option id="x"   _label="Rotate around X axis"       arg-set="-spin X"/>
    <option id="y"   _label="Rotate around Y axis"       arg-set="-spin Y"/>
    <option id="z"   _label="Rotate around Z axis"       arg-set="-spin Z"/>
    <option id="xy"  _label="Rotate around X and Y axes" arg-set="-spin XY"/>
    <option id="xz"  _label="Rotate around X and Z axes" arg-set="-spin XZ"/>
    <option id="yz"  _label="Rotate around Y and Z axes" arg-set="-spin YZ"/>
    <option id="xyz" _label="Rotate around all three axes"/>
  </select>

  <boolean id="wire"    _label="Wireframe"              arg-set="-wireframe"/>
  <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>

  <xscreensaver-updater />

  <_description>
The Menger Gasket is a cube-based recursive fractal object
analagous to the Sierpinski Tetrahedron.

https://en.wikipedia.org/wiki/Menger_sponge
https://en.wikipedia.org/wiki/Sierpinski_carpet

Written by Jamie Zawinski; 2001.
  </_description>
</screensaver>