1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <screensaver name="ant" _label="Ant">
7 <number id="delay" type="slider" arg="-delay %"
8 _label="Frame rate" _low-label="Low" _high-label="High"
9 low="0" high="100000" default="20000"
12 <number id="cycles" type="slider" arg="-cycles %"
13 _label="Timeout" _low-label="Small" _high-label="Large"
14 low="0" high="800000" default="40000"/>
17 <boolean id="sharpturn" _label="Sharp turns" arg-set="-sharpturn"/>
18 <boolean id="truchet" _label="Truchet lines" arg-set="-truchet"/>
19 <boolean id="eyes" _label="Draw eyes" arg-set="-eyes"/>
23 <number id="count" type="spinbutton" arg="-count %"
24 _label="Ants count" low="-20" high="20" default="-3"/>
25 <number id="size" type="spinbutton" arg="-size %"
26 _label="Ant size" low="-18" high="18" default="-12"/>
29 <select id="neighbors">
30 <option id="rand" _label="Random cell shape"/>
31 <option id="three" _label="Three sided cells"
32 arg-set="-neighbors 3"/>
33 <option id="four" _label="Four sided cells"
34 arg-set="-neighbors 4"/>
35 <option id="six" _label="Six sided cells"
36 arg-set="-neighbors 6"/>
37 <option id="nine" _label="Nine sided cells"
38 arg-set="-neighbors 9"/>
39 <option id="twelve" _label="Twelve sided cells"
40 arg-set="-neighbors 12"/>
43 <number id="ncolors" type="slider" arg="-ncolors %"
44 _label="Number of colors" _low-label="Three" _high-label="Many"
45 low="3" high="255" default="64"/>
47 <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
50 This screen saver was removed from the XScreenSaver distribution as of
53 A cellular automaton that is really a two-dimensional Turing machine:
54 as the heads ("ants") walk along the screen, they change pixel
55 values in their path. Then, as they pass over changed pixels, their
56 behavior is influenced.
58 http://en.wikipedia.org/wiki/Langton%27s_ant
59 http://en.wikipedia.org/wiki/Turing_machine
61 Written by David Bagley; 1997.