<?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"/>

  <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
analogous 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>
