
4 Dec
2008
4 Dec
'08
4:54 p.m.
So, the muse has taken me. I'm going to attempt to produce some animated mathematical drawings involving lines and curves. Gtk2hs has a Cairo binding that should make rendering the stuff fairly straight-forward. So no problems there. Now, what I *could* do is write a new Haskell program for each drawing I want, hard-coding in the necessary imperative loops for updating coordinates, looping over multiple lines, etc. But that wasn't be very Haskell, would it? ;-) It seems that the "correct" course of action is to design a DSL for declaratively describing animated line art. Does anybody have ideas about what such a thing might look like?