Go to the first, previous, next, last section, table of contents.

Drawing abstractions

Producing graphical output is central to this whole endeavor, and output is expressed via values of type Picture, which can be converted into actual via the two main drawing abstractions:

Picture is the representation used throughout most Haggis abstractions to represent 2D pictures, and Glyph converts this description into actual graphical output. Sometimes though, a structured description isn't needed and the DrawArea allows you to produce graphical output by performing a sequence of drawing operations.


Go to the first, previous, next, last section, table of contents.