Difference between revisions of "Chlor"
Jump to navigation
Jump to search
m (→Boxes) |
(simplify) |
||
Line 1: | Line 1: | ||
− | '''Chlor''' is a highlevel Haskell vector graphics framework for non-interactive diagrams and charts. |
+ | '''Chlor''' is a highlevel Haskell vector graphics framework for non-interactive diagrams and charts. It has the following properties: |
+ | * pure-Haskell code |
||
− | Chlor tries to enable you to '''get things done''', with the given mission statement: |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | * Chlor is '''trivial to install'''. |
||
− | :: Many Haskell graphic libraries depend on bindings to non-Haskell libraries (like Cairo/Gtk, GD, OpenGL, etc.) which can be more or less troublesome to install on your system. Chlor avoids this trouble by being a pure Haskell framework. |
||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | :: Very likely, Chlor well only be a small cog in your workstream. To simplify your pre- and post-processing, Chlor provides import and export facilities in open file formats. |
||
− | |||
⚫ | |||
== Features== |
== Features== |
||
− | |||
− | Chlor uses a '''top-down graphics model'''. You define a box and what objects to create within this box. These objects themselves can decide what to draw within their respective boxes, and so on. |
||
=== Boxes === |
=== Boxes === |
||
Line 24: | Line 16: | ||
=== Shapes === |
=== Shapes === |
||
+ | |||
+ | Shapes are defined within boxes. |
Revision as of 09:55, 15 January 2010
Chlor is a highlevel Haskell vector graphics framework for non-interactive diagrams and charts. It has the following properties:
- pure-Haskell code
- reusable highlevel components
- support for file formats like PDF, SVG, EPS, etc.
Features
Boxes
You define a box by
- dimension: width and height
- anchor: a coordinate and an origin (to define which part of the box this coordinate is relative to)
- alignment: you can define how to align content within the box (left, right, top, bottom, center)
Shapes
Shapes are defined within boxes.