Personal tools

Diagrams

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Core DSL)
m (fix migration page link)
(47 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The '''diagrams''' library provides an embedded domain-specific language (EDSL) for creating simple pictures and diagrams in Haskell
+
[[Category:Graphics]]
  +
[[Category:Libraries]]
  +
[[Category:Packages]]
   
* [http://code.haskell.org/diagrams/ Homepage]
+
[[Image:Diagrams-logo.png]]
* [http://byorgey.wordpress.com/ Blog]
 
* [http://hackage.haskell.org/cgi-bin/hackage-scripts/package/diagrams HackageDB]
 
   
  +
The [http://projects.haskell.org/diagrams diagrams framework] provides an embedded domain-specific language (EDSL) for declarative drawing.
   
== Rewrite ==
+
This is the diagrams wiki, for collecting tips and tricks, examples, information about related projects, and any other related information. If you are looking for more structured documentation (tutorial, user manual, API reference), see the [http://projects.haskell.org/diagrams diagrams web page]. There is also a [http://code.google.com/p/diagrams/issues/list bug tracker].
   
Many Haskell graphic libraries are tied to a specific rendering backend (Cairo, OpenGL, libGD etc) which makes collaboration and reuse of code and data structures very hard or impossible.
+
* [[/FAQ|Frequently asked questions]]
  +
* [[/Install|Installation instructions]]
  +
* [[/Contributing|How to contribute]]
  +
* [[/Projects|Projects]]: who is working on what.
   
Also some dependencies are hard to fulfill. Cairo is very difficult to install on Mac OS 10.6. If you just need to generate PDF diagrams, you could choose the pure HPDF library where e.g. Hieroglyph can not be installed because of its Cairo dependence.
+
* [[/GHC7.6|Current status of diagrams and GHC 7.6]]
   
A rewrite of diagrams should include '''separate packages''' for:
+
* [[/Dev/Migrate0.6|0.5 to 0.6 migration]]: Description of API changes that may affect diagrams 0.5 code, with explanations of how to migrate to 0.6
   
=== Core DSL ===
+
* [[/Dev|Developer wiki]]: notes on wanted features, style guidelines, best practices, etc.
   
* graphical primitives
+
* [[/Dev/BuildStatus|Build status]] of all diagrams packages at a glance.
** path (moveTo, lineTo, curveTo, arcTo, etc)
+
* [http://projects.haskell.org/diagrams/backend-tests/all-index.html Current test case results for backends side-by-side.]
*** boolean operations of paths
 
** text, ellipses, rectangles, polygons
 
*** imho there should be primitive shape typeclass, so that shapes like circles and rectangles have a "convertToPath" function. Backends like SVG can then choose to convert shapes like a rectangle to a polygon or to a SVG rectangle
 
* graphical attributes
 
** fill
 
*** solid color, patterns, gradients
 
** stroke
 
*** width
 
*** lineCap
 
*** lineJoin
 
*** miterLimit
 
*** dash
 
**** offset
 
**** array
 
*** fill
 
*** marker symbols
 
*** decorations
 
** effects
 
*** shadow, blur, turbulence
 
* constraint solving
 
* animations/pages/frames
 
 
=== Modules/Extensions ===
 
 
* shapes and symbols (stars, [http://local.wasp.uwa.edu.au/~pbourke/geometry/supershape/ supershape], [http://www.jroller.com/aalmiray/entry/jsilhouette_0_3_released symbols])
 
* diagrams
 
** histograms, density plots
 
 
=== Input/Output ===
 
 
==== Output ====
 
* interactive drawing via Cairo
 
* PDF export via pure [http://hackage.haskell.org/package/HPDF HPDF]
 
* EPS export
 
* SWF export
 
* LaTeX export
 
* exotic backends
 
** generate Java2d or [http://www.processing.org/ Processing] source code
 
 
==== Input ====
 
* pure Haskell PNG import via [http://hackage.haskell.org/package/pngload pngload]
 
* pure Haskell SVG import
 
 
== Inspiration ==
 
 
* [[Applications_and_libraries/Graphics]]
 
 
=== Related non-Haskell projects ===
 
 
* [http://asymptote.sourceforge.net/ Asymptote]
 
* [http://had.co.nz/ggplot2/ ggplot2]
 
* [http://www.tug.org/metapost.html MetaPost]
 
* [http://www.texample.net/tikz/examples/ TikZ]
 
 
=== Food for thought ===
 
 
* [http://www.adobe.com/devnet/pdf/pdf_reference.html PDF reference]
 
* [http://www.w3.org/TR/SVG11/ SVG reference]
 

Revision as of 19:29, 11 December 2012

Diagrams-logo.png

The diagrams framework provides an embedded domain-specific language (EDSL) for declarative drawing.

This is the diagrams wiki, for collecting tips and tricks, examples, information about related projects, and any other related information. If you are looking for more structured documentation (tutorial, user manual, API reference), see the diagrams web page. There is also a bug tracker.

  • 0.5 to 0.6 migration: Description of API changes that may affect diagrams 0.5 code, with explanations of how to migrate to 0.6
  • Developer wiki: notes on wanted features, style guidelines, best practices, etc.