Liking cljdoc? Tell your friends :D

pp-grid.core


++clj

(++ & gs)

Convenience wrapper for add to accept grids as args.

Convenience wrapper for add to accept grids as args.
sourceraw docstring

--clj

(-- & gs)

Convenience wrapper for subtract to accept grids as args.

Convenience wrapper for subtract to accept grids as args.
sourceraw docstring

addclj

(add & gs)

Constructs a grid with all given grids added together.

Constructs a grid with all given grids added together.
sourceraw docstring

compute-rangesclj

source

decorateclj

(decorate g & escape-codes)

Decorates a grid with given ansi-escape-codes.

Decorates a grid with given ansi-escape-codes.
sourceraw docstring

empty-gridclj

(empty-grid)
(empty-grid dimension)
source

escaped-charclj

(escaped-char c escape-code)
source

escaped-char?clj

(escaped-char? x)
source

EscapedCharclj

source

grid?clj

(grid? x)
source

heightclj

(height x)
source

rendercljmultimethod

source

render-gridcljmultimethod

source

roundclj

(round n)
source

subtractclj

(subtract & gs)

Returns the first grid minus keys in rest of the grids.

Returns the first grid minus keys in rest of the grids.
sourceraw docstring

tf-hflipclj

(tf-hflip)

Returns a function that horizontally flips a coordinate.

Returns a function just to keep it consistent with other tf-* functions.

For example, ((tf-hflip) [1 2]) = [-1 2].

Returns a function that horizontally flips a coordinate.

Returns a function just to keep it consistent with other tf-*
functions.

For example, ((tf-hflip) [1 2]) = [-1 2].
sourceraw docstring

tf-projectclj

(tf-project target-dimension)
(tf-project target-dimension project-fn)

Returns a function that projects a coordinate into given dimension.

For example, ((tf-project 2) [1 2 3 4 5]) = [1 2].

A project-fn can be passed in to change how a coordinate is projected. By default, the identity function is used.

Returns a function that projects a coordinate into given dimension.

For example, ((tf-project 2) [1 2 3 4 5]) = [1 2].

A project-fn can be passed in to change how a coordinate is projected.
By default, the identity function is used.
sourceraw docstring

tf-rotateclj

(tf-rotate radians)

Returns a function that rotates a coordinate by given angle in radians.

Returns a function that rotates a coordinate by given angle in radians.
sourceraw docstring

tf-rotate-90-degreesclj

(tf-rotate-90-degrees)

Returns a function that rotates a coordinate by 90 degrees.

Returns a function that rotates a coordinate by 90 degrees.
sourceraw docstring

tf-scaleclj

(tf-scale & ns)

Returns a function that scales a coordinate by given amounts.

For example, ((tf-scale 10 2) [3 2]) = [30 4].

Returns a function that scales a coordinate by given amounts.

For example, ((tf-scale 10 2) [3 2]) = [30 4].
sourceraw docstring

tf-shearclj

(tf-shear a b)

Returns a function that shears a coordinate by given factors.

See https://en.wikipedia.org/wiki/Shear_mapping.

For example, ((tf-shear 2 3) [10 5]) = [10 + 2 * 5, 5 + 3 * 10] = [20 35].

Returns a function that shears a coordinate by given factors.

See https://en.wikipedia.org/wiki/Shear_mapping.

For example, ((tf-shear 2 3) [10 5]) = [10 + 2 * 5, 5 + 3 * 10] = [20 35].
sourceraw docstring

tf-translateclj

(tf-translate & deltas)

Returns a function that translates a coordinate by given deltas.

For example, ((tf-translate 10 20) [1 2]) = [11 22].

Returns a function that translates a coordinate by given deltas.

For example, ((tf-translate 10 20) [1 2]) = [11 22].
sourceraw docstring

tf-transposeclj

(tf-transpose)

Returns a function that transposes a coordinate.

Returns a function just to keep it consistent with other tf-* functions.

For example, ((tf-transpose) [1 2]) = [2 1].

Returns a function that transposes a coordinate.

Returns a function just to keep it consistent with other tf-*
functions.

For example, ((tf-transpose) [1 2]) = [2 1].
sourceraw docstring

tf-vflipclj

(tf-vflip)

Returns a function that vertically flips a coordinate.

Returns a function just to keep it consistent with other tf-* functions.

For example, ((tf-vflip) [1 2]) = [1 -2].

Returns a function that vertically flips a coordinate.

Returns a function just to keep it consistent with other tf-*
functions.

For example, ((tf-vflip) [1 2]) = [1 -2].
sourceraw docstring

transformclj

(transform g f)
(transform g f dimension)

Transforms a grid into another grid using given transformation function.

A transformation function accepts a key (coordinate vector) and returns another key.

For example transformation functions, take a look at the tf-* functions.

Transforms a grid into another grid using given transformation function.

A transformation function accepts a key (coordinate vector) and returns another key.

For example transformation functions, take a look at the tf-* functions.
sourceraw docstring

update-rangesclj

(update-ranges metadata & ks)
source

valid-key?clj

(valid-key? dimension k)
source

valid-value?clj

(valid-value? v)
source

validate-keyclj

(validate-key dimension k)
source

validate-valueclj

(validate-value v)
source

widthclj

(width x)
source

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

× close