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

Maintainerdiagrams-discuss@googlegroups.com

Diagrams.TwoD.Arc

Description

Two-dimensional arcs, approximated by cubic bezier curves.

Synopsis

Documentation

arc :: Angle -> Angle -> Path R2Source

Given a start angle s and an end angle e (both in radians), arc s e is the path of a radius one arc counterclockwise between the two angles.

arcT :: Angle -> Angle -> Trail R2Source

A version of arc that produces a Trail instead of a Path.

bezierFromSweep :: Angle -> [Segment R2]Source

bezierFromSweep s constructs a series of Cubic segments that start in the positive y direction and sweep counter clockwise through s radians. If s is negative, it will start in the negative y direction and sweep clockwise. When s is less than 0.0001 the empty list results. If the sweep is greater than two pi then it is truncated to two pi.