Version 12 (modified by benl, 5 years ago)

--

Gloss

Gloss hides the pain of drawing simple vector graphics behind a nice data type and a few display functions. Gloss uses OpenGL and GLUT under the hood, but you won't have to worry about any of that. Get something cool on the screen in under 10 minutes.

Download

From Hackage

With cabal

If you have cabal installed you should be able to do:

 cabal install gloss
 cabal install gloss-examples

From the darcs repo

 darcs get http://code.haskell.org/gloss/gloss-head
 cd gloss-head
 runhaskell Setup configure --user
 runhaskell Setup build 
 runhaskell Setup install

Then the same for gloss-examples

History

Gloss is a fork and cleanup of ANUPlot, which has been used for teaching first year computer science at the ANU for the last few years. Its main goal is to allow total beginners to get something working with a minimum of fuss.

Examples

These are some of the examples included in the gloss-examples package:

Error: Macro Image(gloss-hello-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-hello-thumb.png' does not exist.
Error: Macro Image(gloss-lifespan-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-lifespan-thumb.png' does not exist.
Error: Macro Image(gloss-styrene-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-styrene-thumb.png' does not exist.
Error: Macro Image(gloss-tree-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-tree-thumb.png' does not exist.
Error: Macro Image(gloss-clock-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-clock-thumb.png' does not exist.
Error: Macro Image(gloss-zen-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-zen-thumb.png' does not exist.
code result code result code result code result code result code result