diagrams-canvas alternatives and similar packages
Based on the "diagrams" category.
Alternatively, view diagrams-canvas alternatives based on common mentions on social networks and blogs.
-
diagrams
Embedded domain-specific language for declarative vector graphics (wrapper package) -
diagrams-contrib
User-contributed extensions to diagrams -
diagrams-reflex
reflex backend for diagrams drawing EDSL. -
diagrams-builder
Utilities for creating diagram-building tools -
diagrams-haddock
Preprocessor for including inline diagrams in Haddock documentation -
diagrams-graphviz
Graph layout and drawing with GraphViz and diagrams -
diagrams-gtk
Optional add-on to diagrams-cairo allowing diagrams to be rendered directly to GTK windows. -
diagrams-qrcode
Draw QR codes to SVG, PNG, PDF or PS files. -
diagrams-rubiks-cube
Haskell library for drawing the Rubik's Cube
Build time-series-based applications quickly and at scale.
Do you think we are missing an alternative of diagrams-canvas or a related project?
README
diagrams-canvas
diagrams-canvas is a canvas backend for diagrams based on the blank-canvas https://github.com/ku-fpg/blank-canvas package. Diagrams is a powerful, flexible, declarative domain-specific language for creating vector graphics, using the Haskell programming language. It supports most features defined in diagrams-lib.
Installation
cabal update && cabal install diagrams-canvas
Usage
A simple example that uses diagrams-canvas to draw a square.
import Diagrams.Prelude
import Diagrams.Backend.Canvas.CmdLine
b1 = (square 20 :: Diagram B) # lw 0.002
main = mainWith (pad 1.1 b1)
Save this to file named Square.hs
and compile this program:
ghc --make -threaded Square.hs
This will generate an executable which, when run dispays the resulting diagrams to http://localhost:3000/
$ ./Square -w 750