
How might I (easily) use Haskell to draw simple 2D graphics? Outputting a SVG file is OK for simple static results, but I want to animate. (Windows platform is strongly preferred.)

On Sat, Apr 19, 2014 at 10:25:28PM -0500, John M. Dlugosz wrote:
How might I (easily) use Haskell to draw simple 2D graphics? Outputting a SVG file is OK for simple static results, but I want to animate. (Windows platform is strongly preferred.)
I suggest checking out 'gloss': http://hackage.haskell.org/package/gloss It's based on OpenGL, which comes with the Haskell Platform, and has a simple interface for making animations. -Brent

On 4/19/2014 10:57 PM, Brent Yorgey wrote:
On Sat, Apr 19, 2014 at 10:25:28PM -0500, John M. Dlugosz wrote:
How might I (easily) use Haskell to draw simple 2D graphics? Outputting a SVG file is OK for simple static results, but I want to animate. (Windows platform is strongly preferred.)
I suggest checking out 'gloss':
http://hackage.haskell.org/package/gloss
It's based on OpenGL, which comes with the Haskell Platform, and has a simple interface for making animations.
-Brent
Hmm, is there any tutorial or friendly guide to Gloss?

On Sun, Apr 20, 2014 at 7:19 AM, John M. Dlugosz
On 4/19/2014 10:57 PM, Brent Yorgey wrote:
On Sat, Apr 19, 2014 at 10:25:28PM -0500, John M. Dlugosz wrote:
How might I (easily) use Haskell to draw simple 2D graphics? Outputting a SVG file is OK for simple static results, but I want to animate. (Windows platform is strongly preferred.)
I suggest checking out 'gloss':
http://hackage.haskell.org/package/gloss
It's based on OpenGL, which comes with the Haskell Platform, and has a simple interface for making animations.
-Brent
Hmm, is there any tutorial or friendly guide to Gloss?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Not exactly a guide, but you might get some mileage out of
cabal install gloss-examples
(note for some reason I had to install llvm first).

another example for gloss https://github.com/plaimi/bweakfwu
works under windows
2014-04-21 7:11 GMT+03:00 John M. Dlugosz
On 4/20/2014 1:31 AM, Bill Noble wrote:
(note for some reason I had to install llvm first).
I had already tried that, and ran into the same problem.
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (4)
-
Bill Noble
-
Brent Yorgey
-
Daniel Hlynskyi
-
John M. Dlugosz