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