
4 Dec
2008
4 Dec
'08
9:19 p.m.
On 05/12/2008, at 10:46 AM, Tim Docker wrote:
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.
The ANUPlot graphics library I wrote does exactly this. The darcs repo is at http://code.haskell.org/ANUPlot/ANUPlot-HEAD/ It comes with lots of examples that do the sort of things you describe. Ben.