summaryrefslogtreecommitdiffstats
path: root/hacks/config/glschool.xml
blob: a79ce12263642f63d4a3ca1f81ba444b9a5b27b5 (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
<?xml version="1.0" encoding="ISO-8859-1"?>

<screensaver name="glschool" _label="GLSchool" gl="yes">

 <command arg="-root"/>

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

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

 <number id="NFish" type="slider" arg="-nfish %"
    _label="Fish count" _low-label="Few" _high-label="Lots"
    low="5" high="500" default="100"/>

 <number id="AvoidFact" type="slider" arg="-avoidfact %" _label="Avoidance" _low-label="None" _high-label="High" low="0" high="10" default="1.5"/>
   </vgroup>
   <vgroup>
 <number id="MatchFact" type="slider" arg="-matchfact %" _label="Velocity matching" _low-label="None" _high-label="High" low="0" high="3" default="0.15"/>
 <number id="CenterFact" type="slider" arg="-centerfact %" _label="Centering" _low-label="None" _high-label="High" low="0" high="1.0" default="0.1"/>
 <number id="TargetFact" type="slider" arg="-targetfact %" _label="Goal following" _low-label="None" _high-label="High" low="0" high="400" default="80"/>
   </vgroup>
  </hgroup>

 <hgroup>
 <boolean id="wire"   _label="Wireframe" arg-set="-wireframe"/>
 <boolean id="fog"    _label="Fog" arg-set="-fog"/>
 <boolean id="drawgoal" _label="Draw goal" arg-set="-drawgoal"/>
 <boolean id="drawbbox" _label="Draw bounding box" arg-unset="-no-drawbbox"/>
 <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
 </hgroup>

  <xscreensaver-updater />

 <_description>
A school of fish, using the classic "Boids" algorithm by Craig Reynolds.

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

Written by David C. Lambert and Jamie Zawinski; 2006.
 </_description>
</screensaver>