Diagrams.TwoD

R^2

data R2

r2

unr2

mkR2

type P2

p2

unp2

mkP2

type T2

unitX

unitY

unit_X

unit_Y

direction

angleBetween

fromDirection

Angles

tau

data Angle

rad

turn

deg

fullTurn

fullCircle

angleRatio

(@@)

Paths

Stroking

stroke

stroke'

strokeTrail

strokeT

strokeTrail'

strokeT'

strokeLine

strokeLoop

strokeLocTrail

strokeLocT

strokeLocLine

strokeLocLoop

data FillRule

fillRule

data StrokeOpts a

vertexNames

queryFillRule

Clipping

clipBy

clipTo

clipped

Shapes

Rules

hrule

vrule

Circle-ish things

unitCircle

circle

ellipse

ellipseXY

arc

arc'

arcCW

wedge

arcBetween

annularWedge

General polygons

polygon

polyTrail

data PolygonOpts

polyType

polyOrient

polyCenter

data PolyType

data PolyOrientation

Star polygons

data StarOpts

star

Regular polygons

regPoly

triangle

eqTriangle

square

pentagon

hexagon

heptagon

septagon

octagon

nonagon

decagon

hendecagon

dodecagon

Other special polygons

unitSquare

rect

Other shapes

roundedRect

roundedRect'

data RoundedRectOpts

radiusTL

radiusTR

radiusBL

radiusBR

Arrows

arrowV

arrowV'

arrowAt

arrowAt'

arrowBetween

arrowBetween'

connect

connect'

connectPerim

connectPerim'

connectOutside

connectOutside'

arrow

arrow'

straightShaft

data ArrowOpts

arrowHead

arrowTail

arrowShaft

headSize

tailSize

headGap

tailGap

gap

headColor

headStyle

tailColor

tailStyle

shaftColor

shaftStyle

Text

text

topLeftText

alignedText

baselineText

font

fontSize

italic

oblique

bold

Images

data Image

image

Transformations

Rotation

rotation

rotate

rotateBy

rotationAbout

rotateAbout

Scaling

scalingX

scaleX

scalingY

scaleY

scaling

scale

scaleToX

scaleToY

scaleUToX

scaleUToY

Translation

translationX

translateX

translationY

translateY

translation

translate

Reflection

reflectionX

reflectX

reflectionY

reflectY

reflectionAbout

reflectAbout

Shears

shearingX

shearX

shearingY

shearY

Deformations - non-affine transforms

parallelX0

perspectiveX1

parallelY0

perspectiveY1

facingX

facingY

Combinators

Combining multiple diagrams

(===)

(|||)

atAngle

hcat

hcat'

vcat

vcat'

Spacing and envelopes

strutX

strutY

padX

padY

extrudeLeft

extrudeRight

extrudeBottom

extrudeTop

view

Background

boundingRect

bg

Alignment

alignL

alignR

alignT

alignB

alignTL

alignTR

alignBL

alignBR

alignX

alignY

centerX

centerY

centerXY

Snugging

snugL

snugR

snugT

snugB

snugTL

snugTR

snugBL

snugBR

snugX

snugY

snugCenterX

snugCenterY

snugCenterXY

Size

Computing size

width

height

size2D

sizeSpec2D

extentX

extentY

center2D

Specifying size

data SizeSpec2D

mkSizeSpec

Adjusting size

sized

sizedAs

Visual aids for understanding the internal model

showOrigin

showOrigin'

data OriginOpts

oColor

oScale

oMinSize

showLabels