[Haskell-cafe] Animated line art
Tim Docker
timd at macquarie.com.au
Thu Dec 4 18:46:22 EST 2008
> 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?
Someone else already mentioned FRAN and it's ilk. But perhaps you don't
need something that fancy. If you implement your drawing logic as a
function from time to the appropriate render actions, ie
| import qualified Graphics.Rendering.Cairo as C
|
| type Animation = Time -> C.Render ()
then you just need to call this function multiple times to generate
sucessive frames.
Tim
More information about the Haskell-Cafe
mailing list