Recently I've been looking at Povray, pyprocessing, and cfdg (version 3.0) as tools for creating digital images. I have branched two separate blogs where I mainly explore jruby + processing and processing.py

Friday, 10 June 2011

Exploring context sensitive lsystems grammar in python

The parser in this example only supports the simplest of context sensitive grammars, sometimes referred to as a 1-L system. However the combination cs and non cs rules is supported.



Results:

baa[a]aaaa
aba[a]aaaa
aab[a]aaaa
aaa[b]aaaa
aaa[a]baaa
aaa[a]abaa
aaa[a]aaba
aaa[a]aaab

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Pembrokeshire, United Kingdom
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2