Liking cljdoc? Tell your friends :D

quil.sketch


*applet*cljs

source

add-canvascljs

(add-canvas canvas-id)
source

add-fullscreen-supportcljs

(add-fullscreen-support applet)

Adds fullscreen support for the provided p5 object. Fullscreen is enabled when the user presses F11. We turn the sketch <canvas> element to fullscreen storing the old size in an atom. When the user cancels fullscreen (F11 or Esc) we resize the sketch back to the old size.

Adds fullscreen support for the provided `p5` object.
Fullscreen is enabled when the user presses `F11`. We turn
the sketch `<canvas>` element to fullscreen storing the old size
in an `atom`. When the user cancels fullscreen (`F11` or `Esc`)
we resize the sketch back to the old size.
sourceraw docstring

add-sketch-to-init-listcljs

(add-sketch-to-init-list sk)
source

current-appletcljs

(current-applet)
source

defsketchclj/smacro

(defsketch app-name & options)
source

destroy-previous-sketchcljs

(destroy-previous-sketch host-elem)
source

empty-body?cljs

(empty-body?)
source

in-fullscreen?cljs

(in-fullscreen?)
source

init-sketchescljs

(init-sketches)
source

make-sketchcljs

(make-sketch options)
source

rendering-modescljs

source

resolve-renderercljs

(resolve-renderer mode)
source

set-sizecljs

(set-size applet width height)
source

sizecljs

(size width height)
(size width height mode)
source

sketchcljs

(sketch & opts)
source

sketch-init-listcljs

source

with-sketchclj/smacro

(with-sketch applet & body)
source

wrap-fnsclj

(wrap-fns opts)

wrap-fns allows dynamic redefinition of a function such as draw and update in cljs. This is achieved by wrapping all provided functions to anonymous functions such that my-draw function turns into (fn [& args] (apply my-draw args)). This adds a level of indirection so that when quil calls draw, it invokes anonymous function which in turn always calls my-draw by name and if you redefine, the new version will be used. Hence we need this cryptic macro.

[[wrap-fns]] allows dynamic redefinition of a function such as `draw` and
`update` in cljs. This is achieved by wrapping all provided functions to
anonymous functions such that `my-draw` function turns into
`(fn [& args] (apply my-draw args))`. This adds a level of indirection
so that when quil calls `draw`, it invokes anonymous function which in
turn always calls `my-draw` by name and if you redefine, the new version
will be used. Hence we need this cryptic macro.
sourceraw docstring

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

× close