Version 33 (modified by 13 years ago) (diff) | ,
---|
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.
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.
Download
From Hackage
With cabal
If you have cabal installed you should be able to do:
cabal update cabal install gloss cabal install gloss-examples gloss-styrene
From the darcs repo
The source repos are at http://code.ouroborus.net/gloss
darcs get http://code.ouroborus.net/gloss/gloss-stable cd gloss-stable cd library cabal install
Then again for the examples
directory in that same repo.
FAQ
Q: Gloss freezes in ghci
. It tries to draw the window but I don't get a picture and must kill the process.
A0: Upgrade to GHC 7.2
A1: Start ghci
with -fno-ghci-sandbox
A2: Try installing gloss to use the GLFW window manager interface instead of GLUT: cabal install gloss --flags="GLFW -GLUT"
Report a bug
To report bugs, request features, or get an account on the trac, please send email to gloss@ouroborus.net
Examples
These are some of the examples included in the gloss-examples package:
Hello | Lifespan | Styrene | Tree | Clock | Zen |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
code result | code result | code result | code result | code result | code result |
Attachments (6)
- gloss-hello-thumb.png (1005 bytes) - added by 15 years ago.
- gloss-lifespan-thumb.png (16.6 KB) - added by 15 years ago.
- gloss-styrene-thumb.png (5.0 KB) - added by 15 years ago.
- gloss-tree-thumb.png (9.3 KB) - added by 15 years ago.
- gloss-clock-thumb.png (8.8 KB) - added by 15 years ago.
- gloss-zen-thumb.png (11.2 KB) - added by 15 years ago.
Download all attachments as: .zip