Liking cljdoc? Tell your friends :D

noon.utils.contour

an experiment around simple int sequence development

an experiment around simple int sequence development
raw docstring

boundsclj

(bounds s)

contourclj

(contour s)

contour-inversionsclj

(contour-inversions x)

contour-mirrorclj

(contour-mirror x)

gen-contourclj

(gen-contour x)
(gen-contour x y)

Produce a contour vector of length 'x and height 'y

Produce a contour vector of length 'x and height 'y
raw docstring

gen-lineclj

(gen-line {:keys [contour grow pick] :or {pick :rand}})

Generate a line by generating a contour, producing lines from it, picking one. options are:

  • :contour, a vector [contour-length contour-height].
  • :grow, a vector [min-grow max-grow] that is used to grow the generated contour.
  • :pick, a member-pick argument used to pick one line from generated ones. (default :rand)
Generate a line by generating a contour, producing lines from it, picking one.
options are:
- :contour, a vector [contour-length contour-height].
- :grow, a vector [min-grow max-grow] that is used to grow the generated contour.
- :pick, a member-pick argument used to pick one line from generated ones. (default :rand)
raw docstring

linesclj

(lines contour growth)

Given a contour vector,returns a seq of increasingly wide lines following it.

Given a contour vector,returns a seq of increasingly wide lines following it.
raw docstring

similarsclj

(similars s extent)

Given a sequence of ints s, builds a list of sequences that follow the same contour. The extent argument is here to bound sequence height grow and shrink. e.g extent = [-2 3] means that resulting sequence can be taller by 3 and/or smaller by 2 than s.

Given a sequence of ints `s`, builds a list of sequences that follow the same contour.
The `extent` argument is here to bound sequence height grow and shrink.
e.g `extent` = [-2 3] means that resulting sequence can be taller by 3 and/or smaller by 2 than `s`.
raw docstring

sizeclj

(size s)

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

× close