Liking cljdoc? Tell your friends :D
All platforms.

lambdaisland.cljbox2d.quil

Helpers for rendering a Box2D world to a Quil sketch

Iteates over all bodies and draws them with simple drawing primitives using the current stroke style and color. Supply a custom :draw function to a body's :user-data to customize the drawing.

Helpers for rendering a Box2D world to a Quil sketch

Iteates over all bodies and draws them with simple drawing primitives using
the current stroke style and color. Supply a custom `:draw` function to a
body's `:user-data` to customize the drawing.
raw docstring

draw!clj/s

(draw! entity)

Draw a world, body, or fixture. Will iterate over nested entities, and honor a :draw function present in the :user-data.

Draw a world, body, or fixture. Will iterate over nested entities, and honor a
`:draw` function present in the `:user-data`.
sourceraw docstring

IDrawclj/sprotocol

draw*!clj/s

(draw*! entity)

Draw the given entity to the sketch using the current stroke style

Draw the given entity to the sketch using the current stroke style

draw-shape!clj/s

(draw-shape! shape body)

Draw a Box2D shape to the sketch using the current stroke style

Draw a Box2D shape to the sketch using the current stroke style
source

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

× close