diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-08-15 20:14:01 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-08-15 20:14:01 +0200 |
commit | 665d59554d270d8a56a43a2007981463581a055d (patch) | |
tree | ec707d41ee3545c3af51cee3b81dd98a933c1f75 /examples | |
parent | 2e2ea4b49f9f3101b4e09b77cd33fefc93c9c3cf (diff) | |
download | automata-backgrounds-665d59554d270d8a56a43a2007981463581a055d.tar.gz |
restructured directory layout and renamed most files.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/automatarc-eca.lua | 48 | ||||
-rw-r--r-- | examples/automatarc-gol.lua | 52 | ||||
-rw-r--r-- | examples/elementary.tex | 18 | ||||
-rw-r--r-- | examples/game-of-life.tex | 19 | ||||
-rw-r--r-- | examples/initial-eca/w20m.eca | 1 | ||||
-rw-r--r-- | examples/initial-eca/w40l.eca | 1 | ||||
-rw-r--r-- | examples/initial-eca/w40r.eca | 1 | ||||
-rw-r--r-- | examples/initial-eca/w50m.eca | 1 | ||||
-rw-r--r-- | examples/initial-eca/w60r.eca | 1 | ||||
-rw-r--r-- | examples/initial-gol/10x10_glider.gol (renamed from examples/10x10_glider.gol) | 0 | ||||
-rw-r--r-- | examples/initial-gol/ggun.gol (renamed from examples/ggun.gol) | 0 | ||||
-rw-r--r-- | examples/initial-gol/glider_gen-p55.gol (renamed from examples/glider_gen-p55.gol) | 0 | ||||
-rw-r--r-- | examples/initial-gol/gliders.gol (renamed from examples/gliders.gol) | 0 | ||||
-rw-r--r-- | examples/initial-gol/oscillator_p11.rle | 12 | ||||
-rw-r--r-- | examples/initial-gol/sships.gol | 54 |
15 files changed, 208 insertions, 0 deletions
diff --git a/examples/automatarc-eca.lua b/examples/automatarc-eca.lua new file mode 100644 index 0000000..a56833e --- /dev/null +++ b/examples/automatarc-eca.lua @@ -0,0 +1,48 @@ +if not mplife then return 1 end + +mplife.setup.rc = {} + +do + local c = {} + + c.file = "initial-eca/w40r.eca" + c.init = eca.parse_file(c.file) + c.rule = eca.gen_rule(110) + + c.clip = "left" + + c.aspect = 3/4 -- default for S6 slide format + + c.pensize = .1 + c.color = { r = .6, g = .6, b = .8 } + c.opacity = 1/3 + c.fade = true + c.gestalt = "unitsquare" -- try "unitcircle" + + c.firstframe = 1 + c.frames = 5 + + c.preamble = [[ +\setupcolors[state=start] +\setupbackgrounds[state=start] +\setuppapersize[S6][S6] + +\setuppagenumbering[state=stop,location=] + +\defineoverlay[back][\ctxlua{mplife.successive()}] + +\setupbackgrounds [page] [background=back] +]] + c.before_frame = [[ +\startMPcode +pickup pencircle xyscaled (.25*]] .. c.pensize .. [[pt, ]] .. c.pensize .. [[pt) rotated 45; +]] + c.after_frame = [[ +currentpicture := currentpicture xysized (\the\paperwidth, \the\paperheight); +\stopMPcode +]] + + mplife.setup.rc = c +end + +return mplife.setup.rc diff --git a/examples/automatarc-gol.lua b/examples/automatarc-gol.lua new file mode 100644 index 0000000..09d2476 --- /dev/null +++ b/examples/automatarc-gol.lua @@ -0,0 +1,52 @@ +if not mplife then return 1 end + +mplife.setup.rc = {} + +do + local c = {} + + --c.file = "initial-gol/10x10_glider.gol" + --c.file = "initial-gol/gliders.gol" + --c.file = "initial-gol/ggun.gol" + c.file = "initial-gol/sships.gol" + c.rule = gol.parse_rule("B3/S23") -- default Conway + --c.init = gol.parse_file(c.file) + c.last = c.init -- for successive mode as used in slides + + c.aspect = 3/4 -- S6 and similar + + c.extendxy = 0 + + c.pensize = .1 + c.color = { r = .6, g = .6, b = .8 } + c.opacity = 1/3 + c.fade = true + c.gestalt = "unitsquare" -- try "unitcircle" + + c.firstframe = 1 + c.frames = 5 + + c.preamble = [[ +\setupcolors[state=start] +\setupbackgrounds[state=start] +\setuppapersize[S6][S6] + +\setuppagenumbering[state=stop,location=] + +\defineoverlay[back][\ctxlua{mplife.successive()}] + +\setupbackgrounds [page] [background=back] +]] + c.before_frame = [[ +\startMPcode +pickup pencircle xyscaled (.25*]] .. c.pensize .. [[pt, ]] .. c.pensize .. [[pt) rotated 45; +]] + c.after_frame = [[ +currentpicture := currentpicture xysized (\the\paperwidth, \the\paperheight); +\stopMPcode +]] + + mplife.setup.rc = c +end + +return mplife.setup.rc diff --git a/examples/elementary.tex b/examples/elementary.tex new file mode 100644 index 0000000..79b2097 --- /dev/null +++ b/examples/elementary.tex @@ -0,0 +1,18 @@ +\usemodule + [simpleslides] + [style=Automaton, + file=initial-eca/w40r.eca, + rule=110, + clip=left, % [left|right|both] + mode=eca, + color=blue,] + +%\ctxlua{dofile "automatarc-eca.lua"} +\starttext + +\dorecurse{10}{ +\SlideTitle{Frame Number \recurselevel} +\input hawking +} + +\stoptext diff --git a/examples/game-of-life.tex b/examples/game-of-life.tex new file mode 100644 index 0000000..182bb67 --- /dev/null +++ b/examples/game-of-life.tex @@ -0,0 +1,19 @@ +\usemodule + [simpleslides] + [style=Automaton, + file=initial-gol/sships.gol, + %file=initial-gol/oscillator_p11.rle, + rule=B3.S23, + mode=life, + %extendxy=10, + color=red,] + +%\ctxlua{dofile "automatarc-gol.lua"} +\starttext + +\dorecurse{10}{ +\SlideTitle{Frame Number \recurselevel} +\input dawkins +} + +\stoptext diff --git a/examples/initial-eca/w20m.eca b/examples/initial-eca/w20m.eca new file mode 100644 index 0000000..7657dcf --- /dev/null +++ b/examples/initial-eca/w20m.eca @@ -0,0 +1 @@ +00000000001000000000 diff --git a/examples/initial-eca/w40l.eca b/examples/initial-eca/w40l.eca new file mode 100644 index 0000000..33fce42 --- /dev/null +++ b/examples/initial-eca/w40l.eca @@ -0,0 +1 @@ +1000000000000000000000000000000000000000 diff --git a/examples/initial-eca/w40r.eca b/examples/initial-eca/w40r.eca new file mode 100644 index 0000000..9fb004f --- /dev/null +++ b/examples/initial-eca/w40r.eca @@ -0,0 +1 @@ +0000000000000000000000000000000000000001 diff --git a/examples/initial-eca/w50m.eca b/examples/initial-eca/w50m.eca new file mode 100644 index 0000000..ed2438d --- /dev/null +++ b/examples/initial-eca/w50m.eca @@ -0,0 +1 @@ +00000000000000000000000010000000000000000000000000 diff --git a/examples/initial-eca/w60r.eca b/examples/initial-eca/w60r.eca new file mode 100644 index 0000000..2d27410 --- /dev/null +++ b/examples/initial-eca/w60r.eca @@ -0,0 +1 @@ +000000000000000000000000000000000000000000000000000000000001 diff --git a/examples/10x10_glider.gol b/examples/initial-gol/10x10_glider.gol index 2c7875c..2c7875c 100644 --- a/examples/10x10_glider.gol +++ b/examples/initial-gol/10x10_glider.gol diff --git a/examples/ggun.gol b/examples/initial-gol/ggun.gol index 4855d59..4855d59 100644 --- a/examples/ggun.gol +++ b/examples/initial-gol/ggun.gol diff --git a/examples/glider_gen-p55.gol b/examples/initial-gol/glider_gen-p55.gol index 739992a..739992a 100644 --- a/examples/glider_gen-p55.gol +++ b/examples/initial-gol/glider_gen-p55.gol diff --git a/examples/gliders.gol b/examples/initial-gol/gliders.gol index 190e50f..190e50f 100644 --- a/examples/gliders.gol +++ b/examples/initial-gol/gliders.gol diff --git a/examples/initial-gol/oscillator_p11.rle b/examples/initial-gol/oscillator_p11.rle new file mode 100644 index 0000000..e36e5b2 --- /dev/null +++ b/examples/initial-gol/oscillator_p11.rle @@ -0,0 +1,12 @@ +#C P11-2009-05-30.rle +#C by N.Beluchenko +x=23, y=23 +7b2o$7bobo$8bo2$15b2o$15b2o$4b2o$4b2o2b3o10b2o$8bo4b3o4bobo$8bobo4bo5bo$13b +obo2$7bobo$bo5bo4bobo$obo4b3o4bo$2o10b3o2b2o$17b2o$6b2o$6b2o2$14bo$13bobo$14b +2o! +x=23, y=23, color=(0,0,0), alpha=48 +7b2o$7bobo$8b2o$7b2o$7b3o5b2o$5b6o3b4o$4b7ob6o$4b7ob8ob2o$5b16obo$6b5ob7ob +2o$6b4o3b5o$8bo5bo$5b5o3b4o$b2ob7ob5o$ob16o$2ob8ob7o$5b6ob7o$5b4o3b6o$6b2o5b +3o$14b2o$13b2o$13bobo$14b2o! +CB 2,2,2,2 + diff --git a/examples/initial-gol/sships.gol b/examples/initial-gol/sships.gol new file mode 100644 index 0000000..c5a615c --- /dev/null +++ b/examples/initial-gol/sships.gol @@ -0,0 +1,54 @@ +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000010010000000000000000000000000000000000000000000000000000000000000000000000 +0000000001000000000000000000000000000000000000000000000000000000000000000000000 +0000010001000000000000000000000000000000000000000000000000000000000000000000000 +0000001111000000000000000000000000000000000000000000000000000000000000000000000 +0101000000000000000000000000000000000000000000000000000000000000000000000000000 +0000100000000000000000000000000000000000000000000000000000000000000000000000000 +0000100000000000000000000000000000000000000000000000000000000000000000000000000 +0100100000000000000000000000000000000000000000000000000000000000000000000000000 +0011100000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000000 |