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