craftwerk-0.1: 2D graphics library with integrated TikZ output.

MaintainerMalte Harder <malte.harder@gmail.com>

Graphics.Craftwerk.Core.Driver.Generic

Contents

Description

Functions that convert figures into figures that use less primitives such that drivers only need to implement basic functionalities.

Synopsis

Internal conversion to simpler primitives

genericFigure :: Figure -> FigureSource

At the moment only Circle and Grid figures are converted to paths.

arrowTipsForPath :: [Segment] -> Double -> (ArrowTip, ArrowTip) -> FigureSource

Creates arrow tip figure for a given path

radians :: Floating a => a -> aSource

Angle conversion

degree :: Floating a => a -> aSource

Angle conversion