rowett wrote:Using the new power granted to me by Nathaniel I released 307!
I think I'll go and sit down for a while...
Hey, look at that -- Build 307! Time for me to dust off some of my aperiodic-tile-generating code and build some LifeViewer animations with piles of polygons that fade in and out at different zoom levels... completely unrelated to Conway's Life, but lots of fun anyway.
Meanwhile, I've been spending some lunch-hour time sorting out what needs to be done to replace Paul Callahan's Java applet with LifeViewer, in his
Illustrated Life Pattern Catalog. I tried this for acorn.html:
Code: Select all
<html>
<head>
<meta charset="UTF-8">
<meta name="LifeViewer" content="viewer textarea 60 hide">
<script src="lv-plugin.js"></script>
<title>acorn.lif</title>
</head>
<body>
<div class="viewer">
<a href="" onclick="updateViewer(this); return false;">View Standalone</a><br>
<textarea rows=4 cols=75>
#Life 1.05
#D Acorn
#D The most vigorously growing 7-cell
#D "methuselah" pattern. See also RABBITS.
#N
#P -3 -1
.*
...*
**..***
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]
</textarea>
<br>
<canvas width="1024" height="640"></canvas>
</div>
<applet code="LifeApp" width=500 height=300>
<param name=pattern value=acorn>
</applet>
<H1>Comments for <A HREF="acorn.lif">acorn.lif</A></H1>
<PRE>
Acorn
The most vigorously growing 7-cell
"methuselah" pattern. See also RABBITS.
</PRE>
Xref:
<A HREF="rabbits.html">rabbits</A>
<BR>
<HR><A HREF="contents.html">Table of Contents</A>
</body>
... and when I tried Ctrl+Alt+C after running the pattern a while and changing the theme, just to see if I'd get the new theme information back, here's what showed up:
Code: Select all
#C Acorn
#C The most vigorously growing 7-cell
#C "methuselah" pattern. See also RABBITS.
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]x = 34, y = 19, rule = B3/S23
27b2o$27b2o6$7bob2o$5bobob2ob2o17b2o$4bo7b2o16bo2bo$4bo2b2ob2o17bo3bo
$bo7b2o9bo8bob2o$o6b2o11bo7bo3bo$o2bobobo21bob2o$2ob2obo26bo$b2o30bo$
2bo11bo12bob2ob2o$14bo5bo6bob3o$14bo5bo8bo!
Pretty good comment conversion there! But it looks like there's a newline missing at the end.
Code: Select all
#C test RLE pattern with test comment
x = 3, y = 3, rule = B3/S23
bo$2bo$3o!
Code: Select all
#Life 1.05
#D test Life 1.05 pattern #1 with test comment
#P 0 0
.*
..*
***
Code: Select all
#Life 1.05
#D test Life 1.05 pattern #2 with test comment
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]
#N
#P 0 0
.*
..*
***
The RLE and Life 1.05 test patterns all come back fine with their comments, no newline problems. Seems like it's only getting a chunk of text from a <textarea> that causes trouble? I tried adding a <BR /> at the end of the comments in acorn.html, but it didn't seem to make any difference. Did I do anything else obviously wrong, or where is the lack-of-newline creeping in?
EDIT: Ah, found it. Comments after the pattern, amazingly, seem to get recognized as such even in Life 1.05 patterns.
Code: Select all
#Life 1.05
#D test Life 1.05 pattern #2 with test comment
#N
#P 0 0
.*
..*
***
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]
produces
Code: Select all
#C test Life 1.05 pattern #2 with test comment
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]x = 3, y = 3, rule = B3/S23
bo$2bo$3o!
whereas
Code: Select all
#C test RLE pattern with test comment
x = 3, y = 3, rule = B3/S23
bo$2bo$3o!
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]
produces
Code: Select all
#C test RLE pattern with test comment
#C [[ ZOOM 5 THUMBNAIL THUMBSIZE 3 ]]
x = 3, y = 3, rule = B3/S23
bo$2bo$3o!