<div>&nbsp;</div>
<div>Some of you old timers may recall a project in May, 2004 to implement</div>
<div>Wolfram&#39;s minimalist cellular automaton experiments using a Tk canvas</div>
<div>and/or PIL.&nbsp; </div>
<div>&nbsp;</div>
<div>As I recall, John showed us how to speed it up a whole lot by passing </div>
<div>some &#39;False&#39; parameter in the GraphWin call.&nbsp; </div>
<div>&nbsp;</div>
<div>However, now that I&#39;m testing the code, in preparation for this post, lo </div>
<div>these many years later (on a faster computer in a different version of </div>
<div>Python (2.5)), and with a newly downloaded graphics.py, I&#39;m seeing </div>
<div>those rows of the Mayan Pyramid, associated with Wolfram&#39;s &quot;Rule 30&quot; [1], </div>
<div>run across the screen like some raster beam&nbsp;on an&nbsp;ultra slow TV.</div>
<div>&nbsp;</div>
<div><a href="http://mail.python.org/pipermail/edu-sig/2004-May/003866.html">http://mail.python.org/pipermail/edu-sig/2004-May/003866.html</a></div>
<div>&nbsp;</div>
<div>In any case, the code isn&#39;t all the beautiful, could be streamlined, but </div>
<div>consists of nks.py atop two possible Canvas objects, one in Tk, one </div>
<div>in PIL (Python&#39;s Imaging Library -- could be a jpeg).</div>
<div>&nbsp;</div>
<div><a href="http://www.4dsolutions.net/ocn/python/nks.py">http://www.4dsolutions.net/ocn/python/nks.py</a>&nbsp; &lt;-- Wolfram&#39;s rules 0-255 (computed)</div>
<div>
<div><a href="http://www.4dsolutions.net/ocn/python/canvas1.py">http://www.4dsolutions.net/ocn/python/canvas1.py</a>&nbsp;&lt;- PIL canvas</div>
<div>
<div><a href="http://www.4dsolutions.net/ocn/python/canvas2.py">http://www.4dsolutions.net/ocn/python/canvas2.py</a>&nbsp;&lt;- Tk canvas</div>
<div>&nbsp;</div>
<div>Kirby</div>
<div>&nbsp;</div>
<div>PS:&nbsp; I haven&#39;t tested the PIL version for 2.5 yet, seein&#39; as all the recent </div>
<div>traffic has been about using Tk.</div>
<div>&nbsp;</div>
<div>PPS:&nbsp; this code isn&#39;t procedural though, may not be suitable for CS0 </div>
<div>within the United States (a math phobic distopia, except in patches)</div>
<div>&nbsp;</div>
<div>[1] <a href="http://mathworld.wolfram.com/Rule30.html">http://mathworld.wolfram.com/Rule30.html</a></div>
<div>&nbsp;</div>
<div>&nbsp;</div></div></div>