luqui / graphics-drawingcombinators

Combinators for drawing 2D shapes and images in Haskell (using OpenGL)
32 stars 16 forks source link

add animation combinators #4

Closed yihuang closed 12 years ago

yihuang commented 12 years ago

Just find it interesting to add some animation combinators, but i find it difficult to make sprite animations unless make some fundamental changes to Image type. What's your future plan on this library?

luqui commented 12 years ago

I think this is out of the scope of this library. I made this library to support experimental FRP libraries, so I want the combinators to be time-less -- fixing a notion of time is the job of the FRP library, not the graphics library.

I think they are nice combinators, however, and this file would make a nice hackage package of its own. That will give it more freedom to evolve on its own -- graphics-drawingcombinators is reasonably stable, and the animation rabbit hole is deep. Your "TODO. need state" is rather essential and TO DO it will probably lead to some new ideas for how to work with time.

Thanks for your patch and putting the time in to make combinators that work with this library well. I suggest a separate project.

yihuang commented 12 years ago

Thanks for your reply, I'll create a new project. Instead of pursuing FRP, i think i will follow a more traditional way and see what i get.