summaryrefslogtreecommitdiffstats
path: root/hacks/config/attraction.xml
blob: b0ca4aed0e4a2d984f972896eba5abda4cc51786 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="ISO-8859-1"?>

<screensaver name="attraction" _label="Attraction">

  <command arg="-root"/>

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

  <hgroup>
  <select id="mode">
    <option id="balls"    _label="Balls"/>
    <option id="lines"    _label="Lines"    arg-set="-mode lines"/>
    <option id="tails"    _label="Tails"    arg-set="-mode tails"/>
    <option id="polygons" _label="Polygons" arg-set="-mode polygons"/>
    <option id="splines"  _label="Splines"  arg-set="-mode splines"/>
    <option id="fsplines" _label="Filled splines"
					    arg-set="-mode filled-splines"/>
  </select>

  <select id="wallmode">
    <option id="walls"   _label="Bounce off walls"/>
    <option id="nowalls" _label="Ignore screen edges" arg-set="-nowalls"/>
  </select>

  </hgroup>

  <hgroup>
   <vgroup>
    <number id="points" type="spinbutton" arg="-points %"
              _label="Ball count" low="0" high="200" default="0"/>
    <number id="viscosity" type="slider" arg="-viscosity %"
            _label="Environmental viscosity"
            _low-label="Low" _high-label="High"
            low="0.0" high="1.0" default="1.0"
            convert="invert"/>
    <number id="segments" type="slider" arg="-segments %"
            _label="Trail length" _low-label="Short" _high-label="Long"
            low="2" high="1000" default="500"/>
    <number id="ncolors" type="slider" arg="-colors %"
              _label="Number of colors" _low-label="Two" _high-label="Many"
              low="1" high="255" default="200"/>
   </vgroup>
   <vgroup>
    <number id="size" type="slider" arg="-size %"
              _low-label="Ball mass" _high-label="High"
              low="0" high="100" default="0"/>
    <number id="threshold" type="slider" arg="-threshold %"
            _label="Repulsion threshold"
            _low-label="Small" _high-label="Large"
            low="0" high="600" default="200"/>
    <number id="delay" type="slider" arg="-delay %"
            _label="Speed" _low-label="Slow" _high-label="Fast"
            low="0" high="40000" default="10000"
            convert="invert"/>
   </vgroup>
  </hgroup>

  <hgroup>
    <boolean id="orbit" _label="Orbital mode" arg-set="-orbit"/>
    <number id="radius" type="spinbutton" arg="-radius %"
              _label="Radius" low="0" high="1000" default="0"/>
    <number id="vmult" type="slider" arg="-vmult %"
            _low-label="Outward" _high-label="Inward"
            low="-5.0" high="5.0" default="0.9"/>
  </hgroup>

  <!-- #### -vx [?] -->
  <!-- #### -vy [?] -->
  <!-- #### -glow -->
  <!-- #### -nomaxspeed -->
  <!-- #### -correct-bounce -->
  <!-- #### -graphmode [none] -->

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

  <xscreensaver-updater />

  <_description>

Points attract each other up to a certain distance, and then begin to
repel each other.  The attraction/repulsion is proportional to the
distance between any two particles, similar to the strong and weak
nuclear forces.

Written by Jamie Zawinski and John Pezaris; 1992.
  </_description>
</screensaver>