Liking cljdoc? Tell your friends :D

pp-grid.core


++clj/s

(++ & gs)

Convenience wrapper for add to accept grids as args.

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

--clj/s

(-- & gs)

Convenience wrapper for subtract to accept grids as args.

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

->Gridclj

(->Grid m metadata)
source

addclj/s

(add & gs)

Constructs a grid with all given grids added together.

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

compute-rangesclj/s

source

decorateclj/s

(decorate g & escape-codes)

Decorates a grid with given ansi-escape-codes.

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

empty-gridclj/s

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

empty-metadataclj/s

(empty-metadata)
(empty-metadata dimension)
source

escaped-charclj/s

(escaped-char c escape-code)
source

escaped-char?clj/s

(escaped-char? x)
source

grid?clj/s≠

clj
(grid? x)
cljs
source (clj)source (cljs)

heightclj/s

(height x)
source

renderclj/s

source

render-gridclj/s

source

roundclj/s

(round n)
source

subtractclj/s

(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/s

(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/s

(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/s

(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/s

(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/s

(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/s

(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/s

(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/s

(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/s

(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/s

(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/s

(update-ranges metadata & ks)
source

valid-key?clj/s

(valid-key? dimension k)
source

valid-value?clj/s

(valid-value? v)
source

validate-keyclj/s

(validate-key dimension k)
source

validate-valueclj/s

(validate-value v)
source

widthclj/s

(width x)
source

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

× close