summaryrefslogtreecommitdiffstats
path: root/hacks/config/glknots.xml
blob: afdd2964a2e8af9e918fb5631129cf85fb0522a5 (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
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="ISO-8859-1"?>

<screensaver name="glknots" _label="GLKnots" gl="yes">

  <command arg="-root"/>

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

  <hgroup>
   <vgroup>
    <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.01" high="5.0" default="1.0"/>

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

   </vgroup>
   <vgroup>

    <number id="segments" type="slider" arg="-segments %"
            _label="Resolution" _low-label="Segmented" _high-label="Smooth"
            low="100" high="2000" default="800"/>

    <number id="thickness" type="slider" arg="-thickness %"
            _label="Thickness" _low-label="Thin" _high-label="Thick"
            low="0.05" high="1.0" default="0.3"/>

    <hgroup>
     <boolean id="wander" _label="Wander"    arg-unset="-no-wander"/>
     <boolean id="wire"   _label="Wireframe" arg-set="-wireframe"/>
    </hgroup>

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

   </vgroup>
  </hgroup>

  <xscreensaver-updater />

  <_description>
Generates some twisting 3d knot patterns.  Spins 'em around.

https://en.wikipedia.org/wiki/Knot_theory

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