Liking cljdoc? Tell your friends :D

mindra.diagrams


align-bottomclj

(align-bottom n diagram)

Moves the local origin vertically to the bottom edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Moves the local origin vertically to the bottom edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

align-leftclj

(align-left n diagram)

Moves the local origin horizontally to the left edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Moves the local origin horizontally to the left edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

align-rightclj

(align-right n diagram)

Moves the local origin horizontally to the right edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Moves the local origin horizontally to the right edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

align-topclj

(align-top n diagram)

Moves the local origin vertically to the top edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Moves the local origin vertically to the top edge of the envelope.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

align-xclj

(align-x n diagram)

Moves the local origin horizontally by given distance.

Negative values move the local origin to the left edge of the boundary. Positive values move the local origin to the right edge of the boundary.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Moves the local origin horizontally by given distance.

Negative values move the local origin to the left edge of the boundary.
Positive values move the local origin to the right edge of the boundary.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

align-yclj

(align-y n diagram)

Moves the local origin vertically by given distance.

Negative values move the local origin to the bottom edge of the boundary. Positive values move the local origin to the top edge of the boundary.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Moves the local origin vertically by given distance.

Negative values move the local origin to the bottom edge of the boundary.
Positive values move the local origin to the top edge of the boundary.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

arrow-atclj

(arrow-at point vector)
(arrow-at point vector options)

An arrow starting at given point with the length and direction of given vector.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html

An arrow starting at given point with the length and direction of given vector.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html
sourceraw docstring

arrow-betweenclj

(arrow-between point-a point-b)
(arrow-between point-a point-b options)
An arrow from point-a to point-b.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html
sourceraw docstring

arrow-connectclj

(arrow-connect n1 n2 diagram)
(arrow-connect n1 n2 diagram options)

An arrow connecting origins of diagrams named n1 and n2 in given diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html

An arrow connecting origins of diagrams named n1 and n2 in given diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html
sourceraw docstring

arrow-connect-outsideclj

(arrow-connect-outside n1 n2 diagram)
(arrow-connect-outside n1 n2 diagram options)

An arrow connecting boundaries of diagrams named n1 and n2 in given diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html

An arrow connecting boundaries of diagrams named n1 and n2 in given diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html
sourceraw docstring

arrow-connect-perimclj

(arrow-connect-perim n1 n2 a1 a2 diagram)
(arrow-connect-perim n1 n2 a1 a2 diagram options)

An arrow connecting perimeter of diagrams named n1 and n2 at angles a1 and a2 (in degrees) in given diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html

An arrow connecting perimeter of diagrams named n1 and n2 at angles a1 and a2 (in degrees) in given diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Arrow.html
sourceraw docstring

backgroundclj

(background r g b diagram)

Sets background color of a diagram.

Superimposes the diagram on top of a bounding rectangle of the given color.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD.html

Sets background color of a diagram.

Superimposes the diagram on top of a bounding rectangle of the given color.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD.html
sourceraw docstring

background-frameclj

(background-frame n r g b diagram)

Similar to background but makes the background rectangle larger than the diagram by given size.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD.html

Similar to background but makes the background rectangle larger than the diagram by given size.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD.html
sourceraw docstring

besideclj

(beside x y diagram-a diagram-b)

Places two diagrams beside each other along given x-y vector.

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-Combinators.html#v:beside

Places two diagrams beside each other along given x-y vector.

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-Combinators.html#v:beside
sourceraw docstring

bsplineclj

(bspline points)

A uniform cubic B-spline with given control points.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-CubicSpline.html

A uniform cubic B-spline with given control points.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-CubicSpline.html
sourceraw docstring

bspline'clj

(bspline' & points)

Variadic version of bspline.

Variadic version of bspline.
sourceraw docstring

catclj

(cat x y diagrams)

Positions diagrams so that their local origins lie along given x-y vector.

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html

Positions diagrams so that their local origins lie along given x-y vector.

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html
sourceraw docstring

cat'clj

(cat' x y & diagrams)

Variadic version of cat.

Variadic version of cat.
sourceraw docstring

center-xclj

(center-x diagram)
Centers the local origin along the x-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

center-xyclj

(center-xy diagram)

Centers the local origin along both x-axis and y-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html

Centers the local origin along both x-axis and y-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

center-yclj

(center-y diagram)
Centers the local origin along the y-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Align.html
sourceraw docstring

circleclj

(circle radius)

A circle with the given radius.

A circle with the given radius.
sourceraw docstring

construct-arrow-optionsclj

(construct-arrow-options &
                         {:keys [head-type tail-type head-gap tail-gap
                                 head-color tail-color shaft-points]
                          :or {head-type "dart"
                               tail-type "noTail"
                               head-gap 0
                               tail-gap 0
                               head-color {:red 0 :green 0 :blue 0 :alpha 255}
                               tail-color {:red 0 :green 0 :blue 0 :alpha 255}
                               shaft-points []}})

Constructs arrow options for styling an arrow diagram.

head-type: A shape to place at the head of the arrow. Must be one of [tri, dart, halfDart, spike, thorn, lineHead, noHead]

tail-type: A shape to place at the tail of the arrow. Must be one of [tri, dart, halfDart, spike, thorn, lineTail, noTail, quill, block]

head-gap: Distance to leave between the head and the target point. tail-gap: Distance to leave between the starting point and the tail. head-color: Color of head as a map with keys :red, :green, :blue and :alpha tail-color: Color of head as a map with keys :red, :green, :blue and :alpha shapt-points: Optional list of points to use to draw the shaft -- a cubic spline of the points will be used instead of the default straight line.

See https://diagrams.github.io/doc/arrow.html

Constructs arrow options for styling an arrow diagram.

head-type: A shape to place at the head of the arrow. Must be one of
           [tri, dart, halfDart, spike, thorn, lineHead, noHead]

tail-type: A shape to place at the tail of the arrow. Must be one of
           [tri, dart, halfDart, spike, thorn, lineTail, noTail, quill, block]

head-gap: Distance to leave between the head and the target point.
tail-gap: Distance to leave between the starting point and the tail.
head-color: Color of head as a map with keys :red, :green, :blue and :alpha
tail-color: Color of head as a map with keys :red, :green, :blue and :alpha
shapt-points: Optional list of points to use to draw the shaft -- a cubic spline
              of the points will be used instead of the default straight line.

See https://diagrams.github.io/doc/arrow.html
sourceraw docstring

cubic-splineclj

(cubic-spline closed? points)

A cubic spline from a list of points.

The first argument specifies whether the path should be closed.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-CubicSpline.html

A cubic spline from a list of points.

The first argument specifies whether the path should be closed.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-CubicSpline.html
sourceraw docstring

cubic-spline'clj

(cubic-spline' closed? & points)

Variadic version of cubic-spline.

Variadic version of cubic-spline.
sourceraw docstring

dashing-gclj

(dashing-g ns n diagram)

Sets global line-dashing style of a diagram.

NS is list of alternating lengths of on and off portions of the stroke. N is offset into the dash pattern at which the stroke should start.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html

Sets global line-dashing style of a diagram.

NS is list of alternating lengths of on and off portions of the stroke.
N is offset into the dash pattern at which the stroke should start.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html
sourceraw docstring

dashing-lclj

(dashing-l ns n diagram)

Sets local line-dashing style of a diagram.

NS is list of alternating lengths of on and off portions of the stroke. N is offset into the dash pattern at which the stroke should start.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html

Sets local line-dashing style of a diagram.

NS is list of alternating lengths of on and off portions of the stroke.
N is offset into the dash pattern at which the stroke should start.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html
sourceraw docstring

dashing-nclj

(dashing-n ns n diagram)

Sets normalized line-dashing style of a diagram.

NS is list of alternating lengths of on and off portions of the stroke. N is offset into the dash pattern at which the stroke should start.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html

Sets normalized line-dashing style of a diagram.

NS is list of alternating lengths of on and off portions of the stroke.
N is offset into the dash pattern at which the stroke should start.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html
sourceraw docstring

ellipseclj

(ellipse eccentricity)

An ellipse with given eccentricity.

The eccentricity must be within the interval [0,1).

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Ellipse.html

An ellipse with given eccentricity.

The eccentricity must be within the interval [0,1).

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Ellipse.html
sourceraw docstring

ellipse-xyclj

(ellipse-xy radius-x radius-y)

An axis-aligned ellipse, centered at the origin, with radius x along the x-axis and radius y along the y-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Ellipse.html

An axis-aligned ellipse, centered at the origin, with radius x along the x-axis and radius y along the y-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Ellipse.html
sourceraw docstring

fill-colorclj

(fill-color r g b a diagram)

Sets the fill-color of a diagram to given red, green, blue, alpha values.

Sets the fill-color of a diagram to given red, green, blue, alpha values.
sourceraw docstring

font-sizeclj

(font-size n diagram)

Sets the font-size of text in a diagram.

Sets the font-size of text in a diagram.
sourceraw docstring

hcatclj

(hcat diagrams)
Horizontally concatenates given diagrams.

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html
sourceraw docstring

hcat'clj

(hcat' & diagrams)

Variadic version of hcat.

Variadic version of hcat.
sourceraw docstring

hruleclj

(hrule n)

A horizontal line of given length.

A horizontal line of given length.
sourceraw docstring

hsepclj

(hsep pad diagrams)

Horizontally separates given diagrams with given pad (separation).

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html

Horizontally separates given diagrams with given pad (separation).

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html
sourceraw docstring

hsep'clj

(hsep' pad & diagrams)

Horizontally separates given diagrams with given pad (separation).

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html

Horizontally separates given diagrams with given pad (separation).

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html
sourceraw docstring

imageclj

(image file-path width height)

An image from given file-path with given width and height.

An image from given file-path with given width and height.
sourceraw docstring

lineclj

(line points)

A line along a list of points.

A line along a list of points.
sourceraw docstring

line'clj

(line' & points)

A line along a list of points.

A line along a list of points.
sourceraw docstring

line-colorclj

(line-color r g b a diagram)

Sets line color of a diagram.

Sets line color of a diagram.
sourceraw docstring

line-width-gclj

(line-width-g w diagram)
Sets global line-width of a diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html
sourceraw docstring

line-width-lclj

(line-width-l w diagram)
Sets local line-width of a diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html
sourceraw docstring

line-width-nclj

(line-width-n w diagram)
Sets normalized line-width of a diagram.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-Attributes.html
sourceraw docstring

namedclj

(named s diagram)

Names a diagram.

Names a diagram.
sourceraw docstring

padclj

(pad pad-x pad-y diagram)

A diagram padded by give x and y factors.

A diagram padded by give x and y factors.
sourceraw docstring

polygon-polarclj

(polygon-polar angles radii)

A polar polygon with given list of central angles (in degrees) and given list of radii.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Polygons.html#g:1

A polar polygon with given list of central angles (in degrees) and given list of radii.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Polygons.html#g:1
sourceraw docstring

polygon-regularclj

(polygon-regular n length)

A regular polygon with n sides, each of given length.

A regular polygon with n sides, each of given length.
sourceraw docstring

polygon-sidesclj

(polygon-sides angles lengths)

A polygon with given list of external angles (in degrees) and given lengths.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Polygons.html#g:1

A polygon with given list of external angles (in degrees) and given lengths.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Polygons.html#g:1
sourceraw docstring

positionclj

(position diagrams points)

Positions given diagrams at given points.

Positions given diagrams at given points.
sourceraw docstring

rectangleclj

(rectangle width height)

A rectangle of given width and height.

A rectangle of given width and height.
sourceraw docstring

reflect-xclj

(reflect-x diagram)

Flip the x-coordinates of points in a diagram.

Maps (x, y) to (-x, y)

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Transform.html#g:5

Flip the x-coordinates of points in a diagram.

Maps (x, y) to (-x, y)

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Transform.html#g:5
sourceraw docstring

reflect-yclj

(reflect-y diagram)

Flip the y-coordinates of points in a diagram.

Maps (x, y) to (x, -y)

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Transform.html#g:5

Flip the y-coordinates of points in a diagram.

Maps (x, y) to (x, -y)

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Transform.html#g:5
sourceraw docstring

rotateclj

(rotate angle diagram)

A diagram rotated anticlockwise by the given angle (in degrees).

A diagram rotated anticlockwise by the given angle (in degrees).
sourceraw docstring

rounded-rectangleclj

(rounded-rectangle width height radius)

A rectangle of given width and height with circular rounded corners of given radius.

If radius is negative the corner will be cut out in a reverse arc.

If radius is larger than half the smaller dimension of width and height, then it will be reduced to fit in that range, to prevent the corners from overlapping.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Shapes.html#g:4

A rectangle of given width and height with circular rounded corners of given radius.

If radius is negative the corner will be cut out in a reverse arc.

If radius is larger than half the smaller dimension of width and height, then it will be reduced to fit in that range,
to prevent the corners from overlapping.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Shapes.html#g:4
sourceraw docstring

scaleclj

(scale x y diagram)

A diagram scaled by the given x and y factors.

A diagram scaled by the given x and y factors.
sourceraw docstring

show-envelopeclj

(show-envelope diagram)

Shows envelope of diagram with a red cubic spline.

Useful for debugging purposes.

Shows envelope of diagram with a red cubic spline.

Useful for debugging purposes.
sourceraw docstring

show-originclj

(show-origin diagram)

Shows origin of diagram as a red dot.

Useful for debugging purposes.

Shows origin of diagram as a red dot.

Useful for debugging purposes.
sourceraw docstring

squareclj

(square n)

A square of given length.

A square of given length.
sourceraw docstring

superimposeclj

(superimpose diagrams)

Superimposes given diagrams on top of each other.

Superimposes given diagrams on top of each other.
sourceraw docstring

superimpose'clj

(superimpose' & diagrams)

Variadic version of superimpose.

Variadic version of superimpose.
sourceraw docstring

textclj

(text s)

A diagram with given text.

A diagram with given text.
sourceraw docstring

translateclj

(translate x y diagram)

A diagram translated by the given x and y coordinates.

A diagram translated by the given x and y coordinates.
sourceraw docstring

triangleclj

(triangle n)

An equilateral triangle, with sides of the given length and base parallel to the x-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Shapes.html

An equilateral triangle, with sides of the given length and base parallel to the x-axis.

See https://hackage.haskell.org/package/diagrams-lib/docs/Diagrams-TwoD-Shapes.html
sourceraw docstring

vcatclj

(vcat diagrams)
Vertically concatenates given diagrams.

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html
sourceraw docstring

vcat'clj

(vcat' & diagrams)

Variadic version of vcat.

Variadic version of vcat.
sourceraw docstring

vruleclj

(vrule n)

A vertical line of given length.

A vertical line of given length.
sourceraw docstring

vsepclj

(vsep pad diagrams)

Vertically separates given diagrams with given pad (separation).

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html

Vertically separates given diagrams with given pad (separation).

See https://diagrams.github.io/haddock/diagrams-lib/Diagrams-TwoD-Combinators.html
sourceraw docstring

vsep'clj

(vsep' pad & diagrams)

Variadic version of vsep.

Variadic version of vsep.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close