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 provided Processing object. Fullscreen is enabled when user presses F11. We turn sketch <canvas> element to fullscreen storing old size in an atom. When user cancels fullscreen (F11 or Esc) we resize sketch to the old size.

Adds fullscreen support for provided Processing object.
Fullscreen is enabled when user presses F11. We turn
sketch <canvas> element to fullscreen storing old size
in an atom. When user cancels fullscreen (F11 or Esc)
we resize sketch 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 function such as draw, 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 - new version will be used. Hence we need this cryptic macro.

Wrap fns allows dynamic redefinition of function such as draw, 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 - 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