<?xml version="1.0" encoding="ISO-8859-1"?>

<screensaver name="papercube" _label="Paper Cube" gl="yes">

  <command arg="--root"/>

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

  <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="speed" type="slider" arg="--speed %"
          _label="Speed" _low-label="Slow" _high-label="Fast"
          low="0.02" high="5.0" default="1.0"
          convert="ratio"/>

  <hgroup>
   <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"/>
     <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"
             arg-set="--spin XYZ"/>
   </select>
  </hgroup>

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

  <xscreensaver-updater />

  <_description>
How to make a glueless paper cube.

Written by Ireneusz Szpilewski and Jamie Zawinski; 2023.
  </_description>
</screensaver>
