Intresting: describe pictures with functional programs.

Started by newdep, March 23, 2006, 01:33:40 PM

Previous topic - Next topic

newdep

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">http://www.frank-buss.de/lisp/functional.html
-- (define? (Cornflakes))

Fanda

#1
Very beautiful!



Fanda

Fanda

#2
Port to newLISP can be found here:

http://www.volny.cz/fsodomka/newlisp/">http://www.volny.cz/fsodomka/newlisp/



files:

http://www.volny.cz/fsodomka/newlisp/lsp/fg.lsp">http://www.volny.cz/fsodomka/newlisp/lsp/fg.lsp

http://www.volny.cz/fsodomka/newlisp/lsp/fg-pics.lsp">http://www.volny.cz/fsodomka/newlisp/lsp/fg-pics.lsp



sample picture:

http://www.volny.cz/fsodomka/newlisp/img/fish.gif">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://newlisp.org/index.cgi?Postscript

Fanda

#3
To easier create grid pictures, use fg-draw-grid.lsp.

http://www.volny.cz/fsodomka/newlisp/lsp/fg-draw-grid.lsp">http://www.volny.cz/fsodomka/newlisp/ls ... w-grid.lsp">http://www.volny.cz/fsodomka/newlisp/lsp/fg-draw-grid.lsp



Fanda



PS: If you make some nice pictures, don't be afraid to share them ;-)

newdep

#4
Aaaa you make me currious ;-)



I need to install TK on this OS/2 machine to see that... Ill give it a try... ;-)
-- (define? (Cornflakes))