Portability | portable |
---|---|
Stability | experimental |
Maintainer | byorgey@gmail.com |
Safe Haskell | None |
Primitive shapes out of which Diagram
s can be built, implemented
via instances of ShapeClass
.
Documentation
poly :: Int -> Double -> DiagramSource
poly n r
is a regular n-gon, with a circumcircle of radius r
.
One vertex is oriented along the positive x-axis. Note that the
bounding box is the square circumscribed around the circumcircle.
draw :: DiaRenderM ()Source
Draw the shape defined by the current cairo path, using the current fill color, stroke color, and stroke width settings.