I found context free art a few weeks ago (http://contextfreeart.org/ ) and thought implementing something similar in clojure would be an interesting exercise (this isn't a port - I didn't look at the context-free code). My attempt is attached. There are two java classes included in the zip file that must be on your classpath, then load-file "cfa.clj" should bring up a frame with an example graphic. There are other examples commented out in the file as well.
This software is in the public domain.
Comments on the code are welcome.
<<clj-cfa.zip>>
I found context free art a few weeks ago (http://contextfreeart.org/ ) and thought implementing something similar in clojure would be an interesting exercise (this isn't a port - I didn't look at the context-free code). My attempt is attached. There are two java classes included in the zip file that must be on your classpath, then load-file "cfa.clj" should bring up a frame with an example graphic. There are other examples commented out in the file as well.
Comments on the code are welcome.