Liking cljdoc? Tell your friends :D

clunk.shape

These side-effecting functions draw various shapes to the game window.

Positions (pos) are [x y] vectors, so are dimensions (size).

Polygons (poly) are a vector of [x y] point vectors which are relative to the pos.

Colors are [r g b a] vectors.

These side-effecting functions draw various shapes to the game
window.

Positions (`pos`) are `[x y]` vectors, so are
dimensions (`size`).

Polygons (`poly`) are a vector of `[x y]` point vectors which are
relative to the `pos`.

Colors are `[r g b a]` vectors.
raw 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]
            poly
            [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

fill-concave-poly!clj

(fill-concave-poly! pos poly color)

Draw a concave polygon filled with the specified colour.

Draw a concave polygon filled with the specified colour.
sourceraw docstring

fill-convex-poly!clj

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

Draw a convex polygon filled with the specified colour.

Draw a convex polygon filled with the specified colour.
sourceraw docstring

fill-ellipse!clj

(fill-ellipse! pos size color)
source

fill-poly!clj

(fill-poly! pos poly color)

Draw a polygon filled with the specified colour.

Draw a polygon filled with the specified colour.
sourceraw docstring

fill-rect!clj

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

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

× close