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.
(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`.
(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! 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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close