Version 26 (modified by benl, 7 years ago)



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.

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.


From Hackage

With cabal

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

 cabal update
 cabal install gloss
 cabal install gloss-examples

From the darcs repo

The source repos are at

 darcs get
 cd gloss-stable
 cd library
 runhaskell Setup configure --user
 runhaskell Setup build 
 runhaskell Setup install

Then again for the examples directory in that same repo.

Report a bug

If you have a bug or feature request, please add a new ticket.
Note that for spam prevention you must first register (takes 10 sec) before you can add a ticket.

You can also send email to


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

Hello Lifespan Styrene Tree Clock Zen
Error: Macro Image(WikiStart:gloss-hello-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-hello-thumb.png' does not exist.
Error: Macro Image(WikiStart:gloss-lifespan-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-lifespan-thumb.png' does not exist.
Error: Macro Image(WikiStart:gloss-styrene-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-styrene-thumb.png' does not exist.
Error: Macro Image(WikiStart:gloss-tree-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-tree-thumb.png' does not exist.
Error: Macro Image(WikiStart:gloss-clock-thumb.png) failed
Attachment 'wiki:WikiStart: gloss-clock-thumb.png' does not exist.
Error: Macro Image(WikiStart: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