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