found this on the internet ;-)
Peter Henderson wrote an article about a method to describe pictures with functional programs. I've implemented it in Lisp. An updated version of the article uses curves and different shapes and has some references to other applications for this method, like "An Algebra of Music".
http://www.frank-buss.de/lisp/functional.html
Intresting: describe pictures with functional programs.
Intresting: describe pictures with functional programs.
-- (define? (Cornflakes))
Port to newLISP can be found here:
http://www.volny.cz/fsodomka/newlisp/
files:
http://www.volny.cz/fsodomka/newlisp/lsp/fg.lsp
http://www.volny.cz/fsodomka/newlisp/lsp/fg-pics.lsp
sample picture:
http://www.volny.cz/fsodomka/newlisp/img/fish.gif
Fanda
PS: You will also need postscript.lsp from:
http://newlisp.org/index.cgi?Postscript
http://www.volny.cz/fsodomka/newlisp/
files:
http://www.volny.cz/fsodomka/newlisp/lsp/fg.lsp
http://www.volny.cz/fsodomka/newlisp/lsp/fg-pics.lsp
sample picture:
http://www.volny.cz/fsodomka/newlisp/img/fish.gif
Fanda
PS: You will also need postscript.lsp from:
http://newlisp.org/index.cgi?Postscript
To easier create grid pictures, use fg-draw-grid.lsp.
http://www.volny.cz/fsodomka/newlisp/ls ... w-grid.lsp
Fanda
PS: If you make some nice pictures, don't be afraid to share them ;-)
http://www.volny.cz/fsodomka/newlisp/ls ... w-grid.lsp
Fanda
PS: If you make some nice pictures, don't be afraid to share them ;-)