(alt-cols n groups1 groups2)Fills a group-stream with cols from alternative group-streams
Fills a group-stream with cols from alternative group-streams
(alt-cols-grid-layout n groups1 groups2)Every other column from two streams
Every other column from two streams
(alt-rows n groups1 groups2)Fills a group-stream with rows from alternative group-streams
Fills a group-stream with rows from alternative group-streams
(alt-rows-grid-layout n groups1 groups2)Every other row from two streams
Every other row from two streams
(aspect-ratio-framed cols rows corner-pattern edge-pattern inner-pattern)(aspect-ratio-framed cols rows corner-pattern edge-pattern inner-pattern fit-fn)(cart colls)Cartesian Product of two collections
Cartesian Product of two collections
(check-seq n groups1 groups2)returns the appropriate lazy seq of groups for constructing a checked-layout
returns the appropriate lazy seq of groups for constructing a checked-layout
(checked-layout number groups1 groups2)does checks using grid layout
does checks using grid layout
(clock-rotate n group)Circular layout. Returns n copies in a rotation
Circular layout. Returns n copies in a rotation
(diamond-layout-positions number)Diamond grid, actually created like a half-drop
Diamond grid, actually created like a half-drop
(ensure-sequence xs)If xs is a single group/pattern (sequence of SShapes), repeat it. If xs is already a sequence of groups/patterns, return as-is.
If xs is a single group/pattern (sequence of SShapes), repeat it. If xs is already a sequence of groups/patterns, return as-is.
(four-mirror group)Four-way mirroring. Returns the group repeated four times reflected vertically and horizontall
Four-way mirroring. Returns the group repeated four times reflected vertically and horizontall
(frame grid-size corners edges)Frames consist of corners and edges.
Frames consist of corners and edges.
(framed grid-size corners edges inner)Puts a frame around the other group
Puts a frame around the other group
(grid-layout n groups)Takes an n and a group-stream and returns items from the group-stream in an n X n grid
Takes an n and a group-stream and returns items from the group-stream in an n X n grid
(grid-layout-positions number)calculates the positions for a grid layout
calculates the positions for a grid layout
(h-mirror group)Reflect horizontally and stretch
Reflect horizontally and stretch
(half-drop-grid-layout n groups)Like grid but with half-drop
Like grid but with half-drop
(half-drop-grid-layout-positions number)Like a grid but with a half-drop every other column
Like a grid but with a half-drop every other column
(inner-max inner-w inner-h inner-content)Fills inner rectangle and clips excess (crop to fit)
Fills inner rectangle and clips excess (crop to fit)
(inner-min inner-w inner-h inner-content)Shrinks content to fit within inner rectangle (letterbox/pillarbox)
Shrinks content to fit within inner rectangle (letterbox/pillarbox)
(inner-stretch inner-w inner-h inner-content)Stretches content to exactly fill the inner rectangle
Stretches content to exactly fill the inner rectangle
(nested-stack styles group reducer)superimpose smaller copies of a shape
superimpose smaller copies of a shape
(one-col-layout n i groups1 groups2)uses one-x-layout with rows
uses one-x-layout with rows
(one-row-layout n i groups1 groups2)uses one-x-layout with rows
uses one-x-layout with rows
(one-x-layout n i f groups1 groups2)Takes a total number of rows, an index i and two group-streams. Makes an n X n square where row or col i is from group-stream2 and everything else is group-stream1
Takes a total number of rows, an index i and two group-streams. Makes an n X n square where row or col i is from group-stream2 and everything else is group-stream1
(place-groups-at-positions groups positions)Takes a list of groups and a list of positions and puts one of the groups at each position
Takes a list of groups and a list of positions and puts one of the groups at each position
(random-grid-layout n groups & {:keys [random] :or {random default-random}})Takes a group and returns a grid with random quarter rotations
Takes a group and returns a grid with random quarter rotations
(random-turn-groups groups & {:keys [random] :or {random default-random}})(stack & groups)superimpose a number of groups
superimpose a number of groups
(superimpose-layout group1 group2)simplest layout, two groups located on top of each other
simplest layout, two groups located on top of each other
(v-mirror group)Reflect vertically and stretch
Reflect vertically and stretch
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |