Liking cljdoc? Tell your friends :D

clunk.shape


all-earsclj

(all-ears points)

Return all the ears of a polygon

Return all the ears of a polygon
sourceraw docstring

default-line-widthclj

source

draw-ellipse!clj

(draw-ellipse! pos size color & opts)
source

draw-line!clj

(draw-line! [x1 y1]
            [x2 y2]
            [r g b a]
            &
            {:keys [line-width] :or {line-width default-line-width}})
source

draw-poly!clj

(draw-poly! [x y]
            points
            [r g b a]
            &
            {:keys [line-width] :or {line-width default-line-width}})
source

draw-rect!clj

(draw-rect! pos [w h] color & opts)
source

ellipse-pointsclj

(ellipse-points [w h] & {:keys [segments] :or {segments 32}})
source

fill-concave-poly!clj

(fill-concave-poly! pos points color)
source

fill-ellipse!clj

(fill-ellipse! pos size color)
source

fill-poly!clj

(fill-poly! [x y] points [r g b a])
source

fill-rect!clj

(fill-rect! [x y] [w h] [r g b a])
source

other-pointsclj

(other-points i points)

Return the points which are not in the ear starting at index i

Return the points which are not in the ear starting at index `i`
sourceraw docstring

triangulateclj

(triangulate poly)

Split a concave polygon with no holes or overlapping edges into a collection of triangles which can be drawn.

Split a concave polygon with no holes or overlapping edges into a
collection of triangles which can be drawn.
sourceraw docstring

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

× close