diagrams-lib-1.4.1.2: Embedded domain-specific language for declarative graphics

Copyright(c) 2013 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.TwoD.Arrowheads

Contents

Description

Standard arrowheads and tails. Each arrowhead or tail is designed to be drawn filled, with a line width of 0, and is normalized to fit inside a circle of diameter 1.

Synopsis

Arrowheads

Standard arrowheads

lineHead :: RealFloat n => ArrowHT n #

A line the same width as the shaft.

Configurable arrowheads

Creates arrowheads of the same shape as the standard heads but where the angle parameter is used to specify the angle to the top left point of the arrowhead.

arrowheadTriangle :: RealFloat n => Angle n -> ArrowHT n #

Isoceles triangle style. The above example specifies an angle of `2/5 Turn`.

arrowheadDart :: RealFloat n => Angle n -> ArrowHT n #

Isoceles triangle with linear concave base. Inkscape type 1 - dart like.

arrowheadHalfDart :: RealFloat n => Angle n -> ArrowHT n #

Top half of an arrowheadDart.

arrowheadSpike :: RealFloat n => Angle n -> ArrowHT n #

Isoceles triangle with curved concave base. Inkscape type 2.

arrowheadThorn :: RealFloat n => Angle n -> ArrowHT n #

Curved sides, linear concave base. Illustrator CS5 #3

Arrow tails

Standard arrow tails

lineTail :: RealFloat n => ArrowHT n #

A line the same width as the shaft.

quill :: (Floating n, Ord n) => ArrowHT n #

Configurable arrow tails

arrowtailQuill :: OrderedField n => Angle n -> ArrowHT n #

The angle is where the top left corner intersects the circle.

arrowtailBlock :: forall n. RealFloat n => Angle n -> ArrowHT n #

Internals

type ArrowHT n = n -> n -> (Path V2 n, Path V2 n) #