| |||||||||||
| |||||||||||
Description | |||||||||||
A simple graphics library. | |||||||||||
Synopsis | |||||||||||
| |||||||||||
Documentation | |||||||||||
The Haskell Graphics Library is designed to give the programmer access to most interesting parts of the Win32 Graphics Device Interface and X11 library without exposing the programmer to the pain and anguish usually associated with using these interfaces. To give you a taste of what the library looks like, here is the obligatory "Hello World" program: module Main where import Graphics.HGL main :: IO () main = runGraphics $ withWindow_ "Hello World Window" (300, 200) $ \ w -> do drawInWindow w $ text (100, 100) "Hello World" drawInWindow w $ ellipse (100, 80) (200, 180) getKey w Here's what each function does:
The library is broken up into several pieces. | |||||||||||
module Graphics.HGL.Units | |||||||||||
module Graphics.HGL.Run | |||||||||||
module Graphics.HGL.Window | |||||||||||
module Graphics.HGL.Draw | |||||||||||
module Graphics.HGL.Key | |||||||||||
module Graphics.HGL.Utils | |||||||||||
The module Graphics.HGL.Utils defines a number of convenience functions in terms of more primitive functions defined by other modules. For example,
| |||||||||||
Produced by Haddock version 0.8 |