(edge {:keys [fromConstraintSegments colorDebug isConstrained originVertex
nextLeftEdge leftFace]
:as opts})
(find-path path-finder to-x to-y)
(find-path path-finder to-x to-y path)
Uses the path-finder to find a path from the path-finder's entity's current position to the destination. Will fill up and return an array, which can be reused, or shared with a LinearPathsampler.
Uses the path-finder to find a path from the path-finder's entity's current position to the destination. Will fill up and return an array, which can be reused, or shared with a LinearPathsampler.
(from-vertex-to-incoming-edges {:keys [fromVertex] :as opts})
(from-vertex-to-neighbour-vertices {:keys [fromVertex] :as opts})
(from-vertex-to-outgoing-edges {:keys [realEdgesOnly fromVertex] :as opts})
(graph-edge {:keys [prev next rotPrevEdge rotNextEdge oppositeEdge sourceNode
destinationNode data]
:as opts})
(img->image-data img)
Return an ImageData for a given <img> tag, using an in-memory canvas
Return an ImageData for a given <img> tag, using an in-memory canvas
(img->object img-element)
Convert a black-and-white bitmap image into an object that you can conj!
onto
your mesh. Takes a HTMLImageElement.
Convert a black-and-white bitmap image into an object that you can `conj!` onto your mesh. Takes a HTMLImageElement.
(linear-path-sampler {:keys [entity count samplingDistance path] :as opts})
(object {:keys [pivotX pivotY scaleX scaleY rotation x y matrix coordinates
constraintShape hasChanged]
:as opts})
(pairs path)
The path finder returns a flat list of x and y values, turn this into [x y] pairs for easier processing.
The path finder returns a flat list of x and y values, turn this into [x y] pairs for easier processing.
(polygon coords)
Construct a polygon from a sequence of [x y] coordinate pairs. Can be conj!
ed
onto a mesh.
Construct a polygon from a sequence of [x y] coordinate pairs. Can be `conj!`ed onto a mesh.
(rand-generator seed
rangeMin_
rangeMax_
{:keys [rangeMin rangeMax seed] :as opts})
(simple-view targetCanvas
{:keys [edgesColor edgesWidth edgesAlpha constraintsColor
constraintsWidth constraintsAlpha verticesColor
verticesRadius verticesAlpha pathsColor pathsWidth
pathsAlpha entitiesColor entitiesWidth entitiesAlpha
faceColor faceWidth faceAlpha]
:as opts})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close