Liking cljdoc? Tell your friends :D

lambdaisland.daedalus


a-starcljs

(a-star {:keys [radius mesh] :as opts})
source

AStarcljs

source

bitmap-meshcljs

(bitmap-mesh)
source

bitmap-objectcljs

(bitmap-object)
source

BitmapMeshcljs

source

BitmapObjectcljs

source

bmp-data->objectcljs

(bmp-data->object bmp-data)
source

build-rect-meshcljs

(build-rect-mesh w h)
source

clearcljs

(clear view)
source

constantscljs

(constants)
source

Constantscljs

source

constraint-segmentcljs

(constraint-segment {:keys [fromShape] :as opts})
source

constraint-shapecljs

(constraint-shape {:keys [segments] :as opts})
source

ConstraintSegmentcljs

source

ConstraintShapecljs

source

draw-entitycljs

(draw-entity view entity)
(draw-entity view entity clear-before?)
source

draw-meshcljs

(draw-mesh view world)
(draw-mesh view world clear-before?)
source

draw-pathcljs

(draw-path view path)
(draw-path view path clear-before?)
source

Edgecljs

source

edgecljs

(edge {:keys [fromConstraintSegments colorDebug isConstrained originVertex
              nextLeftEdge leftFace]
       :as opts})
source

edge-datacljs

(edge-data {:keys [sumDistancesSquared length nodesCount] :as opts})
source

EdgeDatacljs

source

entity-aicljs

(entity-ai {:keys [dirNormY dirNormX y x radius] :as opts})
source

EntityAIcljs

source

facecljs

(face {:keys [colorDebug] :as opts})
source

Facecljs

source

find-pathcljs

(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.
sourceraw docstring

from-edge-to-rotated-edgescljs

(from-edge-to-rotated-edges)
source

from-face-to-inner-edgescljs

(from-face-to-inner-edges {:keys [fromFace] :as opts})
source

from-face-to-inner-verticescljs

(from-face-to-inner-vertices {:keys [fromFace] :as opts})
source

from-face-to-neighbour-facescljs

(from-face-to-neighbour-faces {:keys [fromFace] :as opts})
source

from-mesh-to-facescljs

(from-mesh-to-faces {:keys [fromMesh] :as opts})
source

from-mesh-to-verticescljs

(from-mesh-to-vertices {:keys [fromMesh] :as opts})
source

from-vertex-to-holding-facescljs

(from-vertex-to-holding-faces {:keys [fromVertex] :as opts})
source

from-vertex-to-incoming-edgescljs

(from-vertex-to-incoming-edges {:keys [fromVertex] :as opts})
source

from-vertex-to-neighbour-verticescljs

(from-vertex-to-neighbour-vertices {:keys [fromVertex] :as opts})
source

from-vertex-to-outgoing-edgescljs

(from-vertex-to-outgoing-edges {:keys [realEdgesOnly fromVertex] :as opts})
source

FromEdgeToRotatedEdgescljs

source

FromFaceToInnerEdgescljs

source

FromFaceToInnerVerticescljs

source

FromFaceToNeighbourFacescljs

source

FromMeshToFacescljs

source

FromMeshToVerticescljs

source

FromVertexToHoldingFacescljs

source

FromVertexToIncomingEdgescljs

source

FromVertexToNeighbourVerticescljs

source

FromVertexToOutgoingEdgescljs

source

Funnelcljs

source

funnelcljs

(funnel {:keys [debugSurface radius] :as opts})
source

geom-2-dcljs

(geom-2-d)
source

Geom2Dcljs

source

graphcljs

(graph)
source

Graphcljs

source

graph-edgecljs

(graph-edge {:keys [prev next rotPrevEdge rotNextEdge oppositeEdge sourceNode
                    destinationNode data]
             :as opts})
source

graph-nodecljs

(graph-node {:keys [prev next outgoingEdge successorNodes data] :as opts})
source

GraphEdgecljs

source

GraphNodecljs

source

image-data->bmp-datacljs

(image-data->bmp-data image-data)
source

img->image-datacljs

(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
sourceraw docstring

img->objectcljs

(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.
sourceraw docstring

IPathHandlercljsprotocol

debug-drawcljs

(debug-draw this)
(debug-draw this opts)

next!cljs

(next! this)

Move the entity one step closer to its destination. Updates entity.x / entity.y, returns nil.

Move the entity one step closer to its destination. Updates entity.x /
entity.y, returns nil.

set-destinationcljs

(set-destination this x y)

Set the destination for the entity, clearing out the current path.

Set the destination for the entity, clearing out the current path.

set-locationcljs

(set-location this x y)

Move the entity to a new location, this will clear out the current path. Use this instead of setting :x/:y on the entity directly, to prevent the path sampler from overwriting them on the next iteration.

Move the entity to a new location, this will clear out the current path.
Use this instead of setting :x/:y on the entity directly, to prevent the
path sampler from overwriting them on the next iteration.

set-meshcljs

(set-mesh this mesh)

Replace the mesh, this will clear the current path.

Replace the mesh, this will clear the current path.
source

linear-path-samplercljs

(linear-path-sampler {:keys [entity count samplingDistance path] :as opts})
source

LinearPathSamplercljs

source

matrix-2-dcljs

(matrix-2-d a_ b_ c_ d_ e_ f_ {:keys [a b c d e f] :as opts})
source

Matrix2Dcljs

source

meshcljs

(mesh width height {:keys [_vertices _edges _faces clipping] :as opts})
source

Meshcljs

source

node-datacljs

(node-data {:keys [index point] :as opts})
source

NodeDatacljs

source

objectcljs

(object {:keys [pivotX pivotY scaleX scaleY rotation x y matrix coordinates
                constraintShape hasChanged]
         :as opts})
source

Objectcljs

source

pairscljs

(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.
sourceraw docstring

path-findercljs

(path-finder {:keys [entity mesh] :as opts})
source

path-handlercljs

(path-handler {:keys [entity mesh sampling-distance view]
               :or {sampling-distance 5}})

Combined path-finder / path-sampler, hiding a bunch of implementation details, and helping to keep these different stateful objects in sync. See IPathHandler for method definitions.

Combined path-finder / path-sampler, hiding a bunch of implementation details,
and helping to keep these different stateful objects in sync.
See [[IPathHandler]] for method definitions.
sourceraw docstring

path-iteratorcljs

(path-iterator {:keys [entity path] :as opts})
source

PathFindercljs

source

PathIteratorcljs

source

point-2-dcljs

(point-2-d x_ y_ {:keys [x y] :as opts})
source

Point2Dcljs

source

polygoncljs

(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.
sourceraw docstring

potracecljs

(potrace)
source

Potracecljs

source

rand-generatorcljs

(rand-generator seed
                rangeMin_
                rangeMax_
                {:keys [rangeMin rangeMax seed] :as opts})
source

RandGeneratorcljs

source

rectcljs

(rect x y w h)
source

rect-meshcljs

(rect-mesh)
source

RectMeshcljs

source

resetcljs

(reset sampler-or-iterator)

Reset a linear-path-sampler or path-iterator

Reset a linear-path-sampler or path-iterator
sourceraw docstring

setup-typecljs

(setup-type type tag plain-vars getters setters)
source

shape-simplifiercljs

(shape-simplifier)
source

ShapeSimplifiercljs

source

simple-viewcljs

(simple-view targetCanvas
             {:keys [edgesColor edgesWidth edgesAlpha constraintsColor
                     constraintsWidth constraintsAlpha verticesColor
                     verticesRadius verticesAlpha pathsColor pathsWidth
                     pathsAlpha entitiesColor entitiesWidth entitiesAlpha
                     faceColor faceWidth faceAlpha]
              :as opts})
source

SimpleViewcljs

source

to-edncljs

(to-edn plain-vars getters)
source

toolscljs

(tools)
source

Toolscljs

source

Vertexcljs

source

vertexcljs

(vertex {:keys [colorDebug fromConstraintSegments edge] :as opts})
source

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

× close