Functions for managing clisk AST nodes. Should not normally be needed by library users
Functions for managing clisk AST nodes. Should not normally be needed by library users
(code-node form & {:keys [objects] :or {objects nil}})
Creates a node from a given code form (may be a vector). Does not preserve objects - must be copied over manually.
Creates a node from a given code form (may be a vector). Does not preserve objects - must be copied over manually.
(compile-fn node)
(compile-render-fn node)
(compile-scalar-node n)
(constant-node v)
Create a node that returns a constant value, can be either a constant vector or scalar value
Create a node that returns a constant value, can be either a constant vector or scalar value
(constant-node? x)
(function-node f & scalars)
Creates a node which is a scalar function of scalar nodes. Function should be provided as a symbol.
Creates a node which is a scalar function of scalar nodes. Function should be provided as a symbol.
(generate-scalar-code n)
(img node)
(img node w h)
(img node w h dx dy)
Creates a BufferedImage from the given node.
Creates a BufferedImage from the given node.
(is-constant value)
(new-node props)
Create a new AST node with the given properties
Create a new AST node with the given properties
(node a)
(node-info node)
(node? x)
(object-node v)
Creates a node with an embedded Java object
Creates a node with an embedded Java object
(scalar-node? x)
(texture-bound v offset width max)
(transform-components f & nodes)
Calls transform-node separately on each component of a set of nodes. Returns a scalar iff all input nodes are scalar.
Calls transform-node separately on each component of a set of nodes. Returns a scalar iff all input nodes are scalar.
(transform-node f & nodes)
Creates a node containing code based on transforming the other nodes into a new form
Creates a node containing code based on transforming the other nodes into a new form
(validate nd)
Validates the structure and behaviour of any node. Throws an error if any problem is deteted, returns the node otherwise.
Validates the structure and behaviour of any node. Throws an error if any problem is deteted, returns the node otherwise.
(value-node v)
(vec-node xs)
Creates a node from a sequence of scalar nodes
Creates a node from a sequence of scalar nodes
(vector-function-node vf)
Creates a vector node from a VectorFunction
Creates a vector node from a VectorFunction
(vector-node & xs)
(vector-node? x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close