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

<screensaver name="ant" _label="Ant">

  <command arg="-root"/>

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

  <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="cycles" type="slider" arg="-cycles %"
             _label="Timeout" _low-label="Small" _high-label="Large"
            low="0" high="800000" default="40000"/>

    <hgroup>
     <boolean id="sharpturn" _label="Sharp turns" arg-set="-sharpturn"/>
     <boolean id="truchet" _label="Truchet lines" arg-set="-truchet"/>
     <boolean id="eyes" _label="Draw eyes" arg-set="-eyes"/>
    </hgroup>
   </vgroup>

   <vgroup>
    <number id="ncolors" type="slider" arg="-ncolors %"
              _label="Number of colors" _low-label="Three" _high-label="Many"
              low="3" high="255" default="64"/>


    <hgroup>
     <number id="count" type="spinbutton" arg="-count %"
             _label="Ants count" low="-20" high="20" default="-3"/>
     <number id="size" type="spinbutton" arg="-size %"
              _label="Ant size" low="-18" high="18" default="-12"/>
    </hgroup>

    <select id="neighbors">
      <option id="rand" _label="Random cell shape"/>
      <option id="three" _label="Three sided cells"
              arg-set="-neighbors 3"/>
      <option id="four" _label="Four sided cells"
              arg-set="-neighbors 4"/>
      <option id="six" _label="Six sided cells"
              arg-set="-neighbors 6"/>
      <option id="nine" _label="Nine sided cells"
              arg-set="-neighbors 9"/>
      <option id="twelve" _label="Twelve sided cells"
              arg-set="-neighbors 12"/>
    </select>

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

  <xscreensaver-updater />

  <_description>
This screen saver was removed from the XScreenSaver distribution as of
version 4.22.

A cellular automaton that is really a two-dimensional Turing machine:
as the heads ("ants") walk along the screen, they change pixel
values in their path.  Then, as they pass over changed pixels, their
behavior is influenced.

https://en.wikipedia.org/wiki/Langton%27s_ant
https://en.wikipedia.org/wiki/Turing_machine

Written by David Bagley; 1997.
  </_description>
</screensaver>