From f1998c321a4eec6d75b58d84aa8610971bf21979 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 31 Jul 2021 11:35:39 -0600 Subject: move static files into static sub-dir, refactor nix a bit --- src/assets/viz/2/quil/core.cljc | 4993 ------------------ src/assets/viz/2/quil/core.cljc.cache.json | 1 - src/assets/viz/2/quil/core.js | 5543 -------------------- src/assets/viz/2/quil/core.js.map | 1 - src/assets/viz/2/quil/middleware.cljc | 144 - src/assets/viz/2/quil/middleware.cljc.cache.json | 1 - src/assets/viz/2/quil/middleware.js | 118 - src/assets/viz/2/quil/middleware.js.map | 1 - .../viz/2/quil/middlewares/deprecated_options.cljc | 26 - .../middlewares/deprecated_options.cljc.cache.json | 1 - .../viz/2/quil/middlewares/deprecated_options.js | 95 - .../2/quil/middlewares/deprecated_options.js.map | 1 - src/assets/viz/2/quil/middlewares/fun_mode.cljc | 78 - .../2/quil/middlewares/fun_mode.cljc.cache.json | 1 - src/assets/viz/2/quil/middlewares/fun_mode.js | 142 - src/assets/viz/2/quil/middlewares/fun_mode.js.map | 1 - .../viz/2/quil/middlewares/navigation_2d.cljc | 89 - .../quil/middlewares/navigation_2d.cljc.cache.json | 1 - src/assets/viz/2/quil/middlewares/navigation_2d.js | 116 - .../viz/2/quil/middlewares/navigation_2d.js.map | 1 - .../viz/2/quil/middlewares/navigation_3d.cljc | 188 - .../quil/middlewares/navigation_3d.cljc.cache.json | 1 - src/assets/viz/2/quil/middlewares/navigation_3d.js | 261 - .../viz/2/quil/middlewares/navigation_3d.js.map | 1 - src/assets/viz/2/quil/sketch.cljs | 128 - src/assets/viz/2/quil/sketch.cljs.cache.json | 1 - src/assets/viz/2/quil/sketch.js | 341 -- src/assets/viz/2/quil/sketch.js.map | 1 - src/assets/viz/2/quil/util.cljc | 109 - src/assets/viz/2/quil/util.cljc.cache.json | 1 - src/assets/viz/2/quil/util.js | 168 - src/assets/viz/2/quil/util.js.map | 1 - 32 files changed, 12555 deletions(-) delete mode 100644 src/assets/viz/2/quil/core.cljc delete mode 100644 src/assets/viz/2/quil/core.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/core.js delete mode 100644 src/assets/viz/2/quil/core.js.map delete mode 100644 src/assets/viz/2/quil/middleware.cljc delete mode 100644 src/assets/viz/2/quil/middleware.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/middleware.js delete mode 100644 src/assets/viz/2/quil/middleware.js.map delete mode 100644 src/assets/viz/2/quil/middlewares/deprecated_options.cljc delete mode 100644 src/assets/viz/2/quil/middlewares/deprecated_options.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/middlewares/deprecated_options.js delete mode 100644 src/assets/viz/2/quil/middlewares/deprecated_options.js.map delete mode 100644 src/assets/viz/2/quil/middlewares/fun_mode.cljc delete mode 100644 src/assets/viz/2/quil/middlewares/fun_mode.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/middlewares/fun_mode.js delete mode 100644 src/assets/viz/2/quil/middlewares/fun_mode.js.map delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_2d.cljc delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_2d.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_2d.js delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_2d.js.map delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_3d.cljc delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_3d.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_3d.js delete mode 100644 src/assets/viz/2/quil/middlewares/navigation_3d.js.map delete mode 100644 src/assets/viz/2/quil/sketch.cljs delete mode 100644 src/assets/viz/2/quil/sketch.cljs.cache.json delete mode 100644 src/assets/viz/2/quil/sketch.js delete mode 100644 src/assets/viz/2/quil/sketch.js.map delete mode 100644 src/assets/viz/2/quil/util.cljc delete mode 100644 src/assets/viz/2/quil/util.cljc.cache.json delete mode 100644 src/assets/viz/2/quil/util.js delete mode 100644 src/assets/viz/2/quil/util.js.map (limited to 'src/assets/viz/2/quil') diff --git a/src/assets/viz/2/quil/core.cljc b/src/assets/viz/2/quil/core.cljc deleted file mode 100644 index dcdaa94..0000000 --- a/src/assets/viz/2/quil/core.cljc +++ /dev/null @@ -1,4993 +0,0 @@ -(ns ^{:doc "Wrappers and extensions around the core Processing.org API."} - quil.core - #?(:clj - (:import [processing.core PApplet PImage PGraphics PFont PConstants PShape] - [processing.opengl PShader] - [java.awt.event KeyEvent])) - #?(:clj - (:require quil.sketch - [clojure.set] - [quil.helpers.docs :as docs] - [quil.util :as u] - [quil.applet :as ap]) - - :cljs - (:require clojure.string - org.processingjs.Processing - [quil.sketch :as ap :include-macros true] - [quil.util :as u :include-macros true]))) - -(def ^{:dynamic true - :private true} - *graphics* nil) - -(def ^{:private true} no-fill-prop "no-fill-quil") - -(defn - ^{:requires-bindings true - :category "Environment" - :subcategory nil - :added "2.0" - :tag PGraphics} - current-graphics - "Graphics currently used for drawing. By default it is sketch graphics, - but if called inside with-graphics macro - graphics passed to the macro - is returned. This method should be used if you need to call some methods - that are not implemented by quil. Example: - (.beginDraw (current-graphics))." - [] - (or *graphics* - #?(:clj (.-g (ap/current-applet)) - :cljs (ap/current-applet)))) - -;; -------------------- PConstants section ----------------------- - -(u/generate-quil-constants #?(:clj :clj :cljs :cljs) - arc-modes (:open :chord :pie) - shape-modes (:points :lines :triangles :triangle-fan :triangle-strip :quads :quad-strip) - blend-modes (:blend :add :subtract :darkest :lightest :difference :exclusion :multiply - :screen :overlay :replace :hard-light :soft-light :dodge :burn) - color-modes (:rgb :hsb) - image-formats (:rgb :argb :alpha) - ellipse-modes (:center :radius :corner :corners) - hint-options (:enable-depth-test :disable-depth-test - :enable-depth-sort :disable-depth-sort - :enable-depth-mask :disable-depth-mask - :enable-opengl-errors :disable-opengl-errors - :enable-optimized-stroke :disable-optimized-stroke - :enable-stroke-perspective :disable-stroke-perspective - :enable-stroke-pure :disable-stroke-pure - :enable-texture-mipmaps :disable-texture-mipmaps) - image-modes (:corner :corners :center) - rect-modes (:corner :corners :center :radius) - p-shape-modes (:corner :corners :center) - stroke-cap-modes (:square :round :project :model) - stroke-join-modes (:miter :bevel :round) - horizontal-alignment-modes (:left :center :right) - vertical-alignment-modes (:top :bottom :center :baseline) - text-modes (:model :shape) - texture-modes (:image :normal) - texture-wrap-modes (:clamp :repeat) - filter-modes (:threshold :gray :invert :posterize :blur :opaque :erode :dilate) - cursor-modes (:arrow :cross :hand :move :text :wait)) - -;;; Useful trig constants -#?(:clj (def PI (float Math/PI)) - :cljs (def PI (.-PI js/Math))) -(def HALF-PI (/ PI (float 2.0))) -(def THIRD-PI (/ PI (float 3.0))) -(def QUARTER-PI (/ PI (float 4.0))) -(def TWO-PI (* PI (float 2.0))) - -(def DEG-TO-RAD (/ PI (float 180.0))) -(def RAD-TO-DEG (/ (float 180.0) PI)) - -#?(:clj - (def ^{:private true} - KEY-CODES {KeyEvent/VK_UP :up - KeyEvent/VK_DOWN :down - KeyEvent/VK_LEFT :left - KeyEvent/VK_RIGHT :right - KeyEvent/VK_ALT :alt - KeyEvent/VK_CONTROL :control - KeyEvent/VK_SHIFT :shift - KeyEvent/VK_WINDOWS :command - KeyEvent/VK_META :command - KeyEvent/VK_F1 :f1 - KeyEvent/VK_F2 :f2 - KeyEvent/VK_F3 :f3 - KeyEvent/VK_F4 :f4 - KeyEvent/VK_F5 :f5 - KeyEvent/VK_F6 :f6 - KeyEvent/VK_F7 :f7 - KeyEvent/VK_F8 :f8 - KeyEvent/VK_F9 :f9 - KeyEvent/VK_F10 :f10 - KeyEvent/VK_F11 :f11 - KeyEvent/VK_F12 :f12 - KeyEvent/VK_F13 :f13 - KeyEvent/VK_F14 :f14 - KeyEvent/VK_F15 :f15 - KeyEvent/VK_F16 :f16 - KeyEvent/VK_F17 :f17 - KeyEvent/VK_F18 :f18 - KeyEvent/VK_F19 :f19 - KeyEvent/VK_F20 :f20 - KeyEvent/VK_F21 :f21 - KeyEvent/VK_F22 :f22 - KeyEvent/VK_F23 :f23 - KeyEvent/VK_F24 :f24}) - - :cljs - (def ^{:private true} - KEY-CODES {38 :up - 40 :down - 37 :left - 39 :right - 18 :alt - 17 :control - 16 :shift - 157 :command - 112 :f1 - 113 :f2 - 114 :f3 - 115 :f4 - 116 :f5 - 117 :f6 - 118 :f7 - 119 :f8 - 120 :f9 - 121 :f10 - 122 :f11 - 123 :f12})) - -;; ------------------ end PConstants section --------------------- - -#?(:cljs - (defn - ^{:require-bindings true - :category "Output" - :subcategory "Text area" - :added "1.0"} - prc-println - "Writes to the text area of the Processing environment's console. - This is often helpful for looking at the data a program is producing. - Each call to this function creates a new line of output. - Individual elements can be separated with quotes (\"\") and joined with the string concatenation operator (+). - Also writes the content of an array to the text area of the Processing environment. - This is often helpful for looking at the data a program is producing. - A new line is put between each element of the array. This function can only print 1D arrays, - but can test to see if the content are null or not null for 2+ dimensional arrays." - [msg] - (.println (ap/current-applet) msg))) - -#?(:cljs - (defn - ^{:require-bindings true - :category "Output" - :subcategory "Text area" - :added "1.0"} - prc-print - "Writes to the console area of the Processing environment. - This is often helpful for looking at the data a program is producing. - The companion function println() works like print(), but creates a new line of text for each call to the function. - Individual elements can be separated with quotes (\"\") and joined with the addition operator (+). " - [msg] - (.print (ap/current-applet) msg))) - -#?(:cljs - (defn - ^{:requires-bindings true - :processing-name "getSketchById()" - :category nil - :subcategory nil - :added "1.0"} - get-sketch-by-id - "Returns sketch object by id of canvas element of sketch." - [id] - (.getInstanceById js/Processing id))) - -(defmacro with-sketch [applet & body] - (when-not (u/clj-compilation?) - `(quil.sketch/with-sketch ~applet ~@body))) - -(defn - ^{:requires-bindings true - :category "State" - :subcategory nil - :added "1.0"} - state-atom - "Retrieve sketch-specific state-atom. All changes to the - atom will be reflected in the state. - - (set-state! :foo 1) - (state :foo) ;=> 1 - (swap! (state-atom) update-in [:foo] inc) - (state :foo) ;=> 2" - #?(:clj ([] (-> (ap/current-applet) meta :state)) - :cljs ([] (. (ap/current-applet) -quil)))) - -(defn - ^{:requires-bindings true - :category "State" - :subcategory nil - :added "1.0"} - state - "Retrieve sketch-specific state by key. Must initially call - set-state! to store state. If no parameter passed whole - state map is returned. - - (set-state! :foo 1) - (state :foo) ;=> 1 - (state) ;=> {:foo 1}" - ([] @(state-atom)) - - ([key] (let [state (state)] - (when-not (contains? state key) - (throw #?(:clj (Exception. (str "Unable to find state with key: " key)) - :cljs (js/Error (str "Unable to find state with key: " key))))) - (get state key)))) - -(defn - ^{:requires-bindings true - :category "State" - :subcategory nil - :added "1.0"} - set-state! - "Set sketch-specific state. May only be called once (ideally in the - setup fn). Subsequent calls have no effect. - - Example: - (set-state! :foo 1 :bar (atom true) :baz (/ (width) 2))" - [& state-vals] - (let [state* (state-atom)] - (when-not @state* - (let [state-map (apply hash-map state-vals)] - (reset! state* state-map))))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name "abs()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - abs-int - "Calculates the absolute value (magnitude) of a number. The absolute - value of a number is always positive. Takes and returns an int." - [n] - (PApplet/abs (int n)))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name "abs()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - abs-float - "Calculates the absolute value (magnitude) of a number. The absolute - value of a number is always positive. Takes and returns a float." - [n] - (PApplet/abs (float n)))) - - -(defn - ^{:requires-bindings false - :processing-name "abs()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - abs - "Calculates the absolute value (magnitude) of a number. The - absolute value of a number is always positive. Dynamically casts to - an int or float appropriately" - [n] - #?(:clj - (if (u/int-like? n) - (abs-int n) - (abs-float n)) - :cljs - (.abs (ap/current-applet) n))) - -(defn - ^{:requires-bindings false - :processing-name "acos()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - acos - "The inverse of cos, returns the arc cosine of a value. This - function expects the values in the range of -1 to 1 and values are - returned in the range 0 to Math/PI (3.1415927)." - [n] - #?(:clj (PApplet/acos (float n)) - :cljs (.acos (ap/current-applet) n))) - -(defn - ^{:requires-bindings true - :processing-name "alpha()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - alpha - "Extracts the alpha value from a color." - [color] - (.alpha (current-graphics) (unchecked-int color))) - -(defn - ^{:requires-bindings true - :processing-name "ambient()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - ambient-float - "Sets the ambient reflectance for shapes drawn to the screen. This - is combined with the ambient light component of environment. The - color components set through the parameters define the - reflectance. For example in the default color mode, setting x=255, - y=126, z=0, would cause all the red light to reflect and half of the - green light to reflect. Used in combination with emissive, specular, - and shininess in setting the material properties of shapes." - ([gray] (.ambient (current-graphics) (float gray))) - ([x y z] (.ambient (current-graphics) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "ambient()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - ambient-int - "Sets the ambient reflectance for shapes drawn to the screen. This - is combined with the ambient light component of environment. The rgb - color components set define the reflectance. Used in combination - with emissive, specular, and shininess in setting the material - properties of shapes." - [rgb] - (.ambient (current-graphics) (int rgb))) - -(defn - ^{:requires-bindings true - :processing-name "ambient()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - ambient - "Sets the ambient reflectance for shapes drawn to the screen. This - is combined with the ambient light component of environment. The - color components set through the parameters define the - reflectance. For example in the default color mode, setting x=255, - y=126, z=0, would cause all the red light to reflect and half of the - green light to reflect. Used in combination with emissive, specular, - and shininess in setting the material properties of shapes." - ([rgb] - #?(:clj (if (u/int-like? rgb) (ambient-int rgb) (ambient-float rgb)) - :cljs (ambient-float rgb))) - ([x y z] (ambient-float x y z))) - -(defn - ^{:requires-bindings true - :processing-name "ambientLight()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - ambient-light - "Adds an ambient light. Ambient light doesn't come from a specific direction, - the rays have light have bounced around so much that objects are - evenly lit from all sides. Ambient lights are almost always used in - combination with other types of lights. Lights need to be included - in the draw to remain persistent in a looping program. Placing them - in the setup of a looping program will cause them to only have an - effect the first time through the loop. The effect of the - parameters is determined by the current color mode." - ([red green blue] - (.ambientLight (current-graphics) (float red) (float green) (float blue))) - ([red green blue x y z] - (.ambientLight (current-graphics) (float red) (float green) (float blue) - (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "applyMatrix()" - :category "Transform" - :subcategory nil - :added "1.0"} - apply-matrix - "Multiplies the current matrix by the one specified through the - parameters. This is very slow because it will try to calculate the - inverse of the transform, so avoid it whenever possible. The - equivalent function in OpenGL is glMultMatrix()." - #?(:clj - ([n00 n01 n02 n10 n11 n12] - (.applyMatrix (current-graphics) - (float n00) (float n01) (float n02) - (float n10) (float n11) (float n12)))) - ([n00 n01 n02 n03 - n10 n11 n12 n13 - n20 n21 n22 n23 - n30 n31 n32 n33] - (.applyMatrix (current-graphics) - (float n00) (float n01) (float n02) (float n03) - (float n10) (float n11) (float n12) (float n13) - (float n20) (float n21) (float n22) (float n23) - (float n30) (float n31) (float n32) (float n33)))) - -(defn - ^{:requires-bindings true - :processing-name "arc()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - arc - "Draws an arc in the display window. Arcs are drawn along the outer - edge of an ellipse defined by the x, y, width and height - parameters. The origin or the arc's ellipse may be changed with the - ellipse-mode function. The start and stop parameters specify the - angles at which to draw the arc. The mode is either :open, :chord or :pie." - ([x y width height start stop] - (.arc (current-graphics) (float x) (float y) (float width) (float height) - (float start) (float stop))) - - #?(:clj - ([x y width height start stop mode] - (let [arc-mode (u/resolve-constant-key mode arc-modes)] - (.arc (current-graphics) (float x) (float y) (float width) (float height) - (float start) (float stop) (int arc-mode)))))) - -(defn - ^{:requires-bindings false - :processing-name "asin()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - asin - "The inverse of sin, returns the arc sine of a value. This function - expects the values in the range of -1 to 1 and values are returned - in the range -PI/2 to PI/2." - [n] - #?(:clj (PApplet/asin (float n)) - :cljs (.asin (ap/current-applet) n))) - -(defn - ^{:requires-bindings false - :processing-name "atan()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - atan - "The inverse of tan, returns the arc tangent of a value. This - function expects the values in the range of -Infinity to - Infinity (exclusive) and values are returned in the range -PI/2 to - PI/2 ." - [n] - #?(:clj (PApplet/atan (float n)) - :cljs (.atan (ap/current-applet) n))) - -(defn - ^{:requires-bindings false - :processing-name "atan2()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - atan2 - "Calculates the angle (in radians) from a specified point to the - coordinate origin as measured from the positive x-axis. Values are - returned as a float in the range from PI to -PI. The atan2 function - is most often used for orienting geometry to the position of the - cursor. Note: The y-coordinate of the point is the first parameter - and the x-coordinate is the second due to the structure of - calculating the tangent." - [y x] - #?(:clj (PApplet/atan2 (float y) (float x)) - :cljs (.atan2 (ap/current-applet) y x))) - -(defn - ^{:requires-bindings false - :processing-name "PFont.list()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - available-fonts - "A sequence of strings representing the fonts on this system - available for use. - - Because of limitations in Java, not all fonts can be used and some - might work with one operating system and not others. When sharing a - sketch with other people or posting it on the web, you may need to - include a .ttf or .otf version of your font in the data directory of - the sketch because other people might not have the font installed on - their computer. Only fonts that can legally be distributed should be - included with a sketch." - [] - #?(:clj (seq (PFont/list)) - :cljs (seq (.list js/PFont)))) - -(defn - ^{:requires-bindings true - :processing-name "background()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - background-float - "Sets the color used for the background of the Processing - window. The default background is light gray. In the draw function, - the background color is used to clear the display window at the - beginning of each frame. - - It is not possible to use transparency (alpha) in background colors - with the main drawing surface, however they will work properly with - create-graphics. Converts args to floats." - ([gray] (.background (current-graphics) (float gray))) - ([gray alpha] (.background (current-graphics) (float gray) (float alpha))) - ([r g b] (.background (current-graphics) (float r) (float g) (float b))) - ([r g b a] (.background (current-graphics) (float r) (float g) (float b) (float a)))) - -(defn - ^{:requires-bindings true - :processing-name "background()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - background-int - "Sets the color used for the background of the Processing - window. The default background is light gray. In the draw function, - the background color is used to clear the display window at the - beginning of each frame. - - It is not possible to use transparency (alpha) in background colors - with the main drawing surface, however they will work properly with - create-graphics. Converts rgb to an int and alpha to a float." - ([rgb] (.background (current-graphics) (unchecked-int rgb))) - ([rgb alpha] (.background (current-graphics) (unchecked-int rgb) (float alpha)))) - -(defn - ^{:requires-bindings true - :processing-name "background()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - background - "Sets the color used for the background of the Processing - window. The default background is light gray. In the draw function, - the background color is used to clear the display window at the - beginning of each frame. - - It is not possible to use transparency (alpha) in background colors - with the main drawing surface, however they will work properly with - create-graphics. Converts args to floats." - #?(:clj ([rgb] (if (u/int-like? rgb) (background-int rgb) (background-float rgb))) - :cljs ([rgb] (.background (current-graphics) rgb))) - #?(:clj ([rgb alpha] (if (u/int-like? rgb) (background-int rgb alpha) (background-float rgb alpha))) - :cljs ([rgb alpha] (.background (current-graphics) rgb alpha))) - ([r g b] (background-float r g b)) - ([r g b a] (background-float r g b a))) - -(defn - ^{:requires-bindings true - :processing-name "background()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - background-image - "Specify an image to be used as the background for a sketch. Its - width and height must be the same size as the sketch window. Images - used as background will ignore the current tint setting." - [^PImage img] - (.background (current-graphics) img)) - -(defn - ^{:requires-bindings true - :processing-name "beginCamera()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - begin-camera - "Sets the matrix mode to the camera matrix so calls such as - translate, rotate, apply-matrix and reset-matrix affect the - camera. begin-camera should always be used with a following - end-camera and pairs of begin-camera and end-camera cannot be - nested. - - For most situations the camera function will be sufficient." - [] - (.beginCamera (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "beginContour()" - :category "Shape" - :subcategory "Vertex" - :added "2.0"} - begin-contour - "Use the begin-contour and end-contour function to create negative - shapes within shapes. These functions can only be within a - begin-shape/end-shape pair and they only work with the :p2d and :p3d - renderers." - [] - (.beginContour (current-graphics))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "beginRaw()" - :category "Output" - :subcategory "Files" - :added "1.0"} - begin-raw - "Enables the creation of vectors from 3D data. Requires - corresponding end-raw command. These commands will grab the shape - data just before it is rendered to the screen. At this stage, your - entire scene is nothing but a long list of individual lines and - triangles. This means that a shape created with sphere method will - be made up of hundreds of triangles, rather than a single object. Or - that a multi-segment line shape (such as a curve) will be rendered - as individual segments." - ([renderer filename] - (.beginRaw (ap/current-applet) (ap/resolve-renderer renderer) (u/absolute-path filename))))) - -(defn - ^{:requires-bindings true - :processing-name "beginShape()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - begin-shape - "Enables the creation of complex forms. begin-shape begins recording - vertices for a shape and end-shape stops recording. Use the mode - keyword to specify which shape create from the provided - vertices. With no mode specified, the shape can be any irregular - polygon. - - The available mode keywords are :points, :lines, :triangles, - :triangle-fan, :triangle-strip, - :quads, :quad-strip. - - After calling the begin-shape function, a series of vertex commands - must follow. To stop drawing the shape, call end-shape. The vertex - function with two parameters specifies a position in 2D and the - vertex function with three parameters specifies a position in - 3D. Each shape will be outlined with the current stroke color and - filled with the fill color. - - Transformations such as translate, rotate, and scale do not work - within begin-shape. It is also not possible to use other shapes, - such as ellipse or rect within begin-shape." - ([] (.beginShape (current-graphics))) - ([mode] - (let [mode (u/resolve-constant-key mode shape-modes)] - (.beginShape (current-graphics) (int mode))))) - -(defn - ^{:requires-bindings true - :processing-name "bezier()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - bezier - "Draws a Bezier curve on the screen. These curves are defined by a - series of anchor and control points. The first two parameters - specify the first anchor point and the last two parameters specify - the other anchor point. The middle parameters specify the control - points which define the shape of the curve." - ([x1 y1 cx1 cy1 cx2 cy2 x2 y2] - (.bezier (current-graphics) - (float x1) (float y1) - (float cx1) (float cy1) - (float cx2) (float cy2) - (float x2) (float y2))) - ([x1 y1 z1 cx1 cy1 cz1 cx2 cy2 cz2 x2 y2 z2] - (.bezier (current-graphics) - (float x1) (float y1) (float z1) - (float cx1) (float cy1) (float cz1) - (float cx2) (float cy2) (float cz2) - (float x2) (float y2) (float z2)))) - -(defn - ^{:requires-bindings true - :processing-name "bezierDetail()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - bezier-detail - "Sets the resolution at which Beziers display. The default value is - 20. This function is only useful when using the :p3d or :opengl - renderer as the default (:java2d) renderer does not use this - information." - [detail] - (.bezierDetail (current-graphics) (int detail))) - -(defn - ^{:requires-bindings true - :processing-name "bezierPoint()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - bezier-point - "Evaluates the Bezier at point t for points a, b, c, d. The - parameter t varies between 0 and 1, a and d are points on the curve, - and b and c are the control points. This can be done once with the x - coordinates and a second time with the y coordinates to get the - location of a bezier curve at t." - [a b c d t] - (.bezierPoint (current-graphics) (float a) (float b) (float c) - (float d) (float t))) - -(defn - ^{:requires-bindings true - :processing-name "bezierTangent()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - bezier-tangent - "Calculates the tangent of a point on a Bezier curve. - (See http://en.wikipedia.org/wiki/Tangent)" - [a b c d t] - (.bezierTangent (current-graphics) (float a) (float b) (float c) - (float d) (float t))) - -(defn - ^{:requires-bindings true - :processing-name "bezierVertex()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - bezier-vertex - "Specifies vertex coordinates for Bezier curves. Each call to - bezier-vertex defines the position of two control points and one - anchor point of a Bezier curve, adding a new segment to a line or - shape. The first time bezier-vertex is used within a begin-shape - call, it must be prefaced with a call to vertex to set the first - anchor point. This function must be used between begin-shape and - end-shape and only when there is no parameter specified to - begin-shape." - ([cx1 cy1 cx2 cy2 x y] - (.bezierVertex (current-graphics) - (float cx1) (float cy1) - (float cx2) (float cy2) - (float x) (float y))) - ([cx1 cy1 cz1 cx2 cy2 cz2 x y z] - (.bezierVertex (current-graphics) - (float cx1) (float cy1) (float cz1) - (float cx2) (float cy2) (float cz2) - (float x) (float y) (float z)))) - -(defn - ^{:require-binding false - :processing-name "binary()" - :category "Data" - :subcategory "Conversion" - :added "1.0"} - binary - "Returns a string representing the binary value of an int, char or - byte. When converting an int to a string, it is possible to specify - the number of digits used." - ([val] - #?(:clj (PApplet/binary (int val)) - :cljs (.binary (ap/current-applet) val))) - ([val num-digits] - #?(:clj (PApplet/binary (int val) (int num-digits)) - :cljs (.binary (ap/current-applet) val num-digits)))) - -(defn - ^{:requires-bindings true - :processing-name "blend()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - blend - "Blends a region of pixels from one image into another with full alpha - channel support. If src is not specified it defaults to current-graphics. - If dest is not specified it defaults to current-graphics. - - Note: blend-mode function is recommended to use instead of this one. - - Available blend modes are: - - :blend - linear interpolation of colours: C = A*factor + B - :add - additive blending with white clip: - C = min(A*factor + B, 255) - :subtract - subtractive blending with black clip: - C = max(B - A*factor, 0) - :darkest - only the darkest colour succeeds: - C = min(A*factor, B) - :lightest - only the lightest colour succeeds: - C = max(A*factor, B) - :difference - subtract colors from underlying image. - :exclusion - similar to :difference, but less extreme. - :multiply - Multiply the colors, result will always be darker. - :screen - Opposite multiply, uses inverse values of the colors. - :overlay - A mix of :multiply and :screen. Multiplies dark values - and screens light values. - :hard-light - :screen when greater than 50% gray, :multiply when - lower. - :soft-light - Mix of :darkest and :lightest. Works like :overlay, - but not as harsh. - :dodge - Lightens light tones and increases contrast, ignores - darks. - Called \"Color Dodge\" in Illustrator and Photoshop. - :burn - Darker areas are applied, increasing contrast, ignores - lights. Called \"Color Burn\" in Illustrator and - Photoshop." - ([x y width height dx dy dwidth dheight mode] - (blend (current-graphics) (current-graphics) x y width height dx dy dwidth dheight mode)) - ([^PImage src-img x y width height dx dy dwidth dheight mode] - (blend src-img (current-graphics) x y width height dx dy dwidth dheight mode)) - ([^PImage src-img ^PImage dest-img x y width height dx dy dwidth dheight mode] - (let [mode (u/resolve-constant-key mode blend-modes)] - (.blend dest-img src-img (int x) (int y) (int width) (int height) - (int dx) (int dy) (int dwidth) (int dheight) (int mode))))) - -(defn - ^{:requires-bindings false - :processing-name "blendColor()" - :processing-link nil - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - blend-color - "Blends two color values together based on the blending mode given specified - with the mode keyword. - - Available blend modes are: - - :blend - linear interpolation of colours: C = A*factor + B - :add - additive blending with white clip: - C = min(A*factor + B, 255) - :subtract - subtractive blending with black clip: - C = max(B - A*factor, 0) - :darkest - only the darkest colour succeeds: - C = min(A*factor, B) - :lightest - only the lightest colour succeeds: - C = max(A*factor, B) - :difference - subtract colors from underlying image. - :exclusion - similar to :difference, but less extreme. - :multiply - Multiply the colors, result will always be darker. - :screen - Opposite multiply, uses inverse values of the colors. - :overlay - A mix of :multiply and :screen. Multiplies dark values - and screens light values. - :hard-light - :screen when greater than 50% gray, :multiply when - lower. - :soft-light - Mix of :darkest and :lightest. Works like :overlay, - but not as harsh. - :dodge - Lightens light tones and increases contrast, ignores - darks. - Called \"Color Dodge\" in Illustrator and Photoshop. - :burn - Darker areas are applied, increasing contrast, ignores - lights. Called \"Color Burn\" in Illustrator and - Photoshop." - [c1 c2 mode] - (let [mode (u/resolve-constant-key mode blend-modes)] - #?(:clj (PApplet/blendColor (unchecked-int c1) (unchecked-int c2) (int mode)) - :cljs (.blendColor (current-graphics) c1 c2 mode)))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "blendMode()" - :category "Image" - :subcategory "Rendering" - :added "2.0"} - blend-mode - "Blends the pixels in the display window according to the defined mode. - There is a choice of the following modes to blend the source pixels (A) - with the ones of pixels already in the display window (B): - - :blend - linear interpolation of colours: C = A*factor + B - :add - additive blending with white clip: - C = min(A*factor + B, 255) - :subtract - subtractive blending with black clip: - C = max(B - A*factor, 0) - :darkest - only the darkest colour succeeds: - C = min(A*factor, B) - :lightest - only the lightest colour succeeds: - C = max(A*factor, B) - :exclusion - similar to :difference, but less extreme. - :multiply - Multiply the colors, result will always be darker. - :screen - Opposite multiply, uses inverse values of the colors. - :replace - the pixels entirely replace the others and don't utilize - alpha (transparency) values - - Note: :hard-light, :soft-light, :dodge, :overlay, :dodge, :burn, :difference - modes are not supported by this function. - - factor is alpha value of pixel being drawed" - ([mode] - (let [mode (u/resolve-constant-key mode blend-modes)] - (.blendMode (current-graphics) mode))))) - -(defn - ^{:requires-bindings true - :processing-name "blue()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - blue - "Extracts the blue value from a color, scaled to match current color-mode. - Returns a float." - [color] - (.blue (current-graphics) (unchecked-int color))) - -(defn - ^{:requires-bindings true - :processing-name "box()" - :category "Shape" - :subcategory "3D Primitives" - :added "1.0"} - box - "Creates an extruded rectangle." - ([size] (.box (current-graphics) (float size))) - ([width height depth] (.box (current-graphics) (float width) (float height) (float depth)))) - -(defn - ^{:requires-bindings true - :processing-name "brightness()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - brightness - "Extracts the brightness value from a color. Returns a float." - [color] - (.brightness (current-graphics) (unchecked-int color))) - -(defn - ^{:requires-bindings true - :processing-name "camera()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - camera - "Sets the position of the camera through setting the eye position, - the center of the scene, and which axis is facing upward. Moving the - eye position and the direction it is pointing (the center of the - scene) allows the images to be seen from different angles. The - version without any parameters sets the camera to the default - position, pointing to the center of the display window with the Y - axis as up. The default values are: - - eyeX: (/ (width) 2.0) - eyeY: (/ (height) 2.0) - eyeZ: (/ (/ (height) 2.0) (tan (/ (* Math/PI 60.0) 360.0))) - centerX: (/ (width) 2.0) - centerY: (/ (height) 2.0) - centerZ: 0 - upX: 0 - upY: 1 - upZ: 0 - - Similar imilar to gluLookAt() in OpenGL, but it first clears the - current camera settings." - ([] (.camera (current-graphics))) - ([eyeX eyeY eyeZ centerX centerY centerZ upX upY upZ] - (.camera (current-graphics) (float eyeX) (float eyeY) (float eyeZ) - (float centerX) (float centerY) (float centerZ) - (float upX) (float upY) (float upZ)))) - -(defn - ^{:requires-bindings false - :processing-name "ceil()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - ceil - "Calculates the closest int value that is greater than or equal to - the value of the parameter. For example, (ceil 9.03) returns the - value 10." - [n] - #?(:clj (PApplet/ceil (float n)) - :cljs (.ceil (ap/current-applet) n))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "clear()" - :category "Color" - :subcategory "Setting" - :added "2.4.0"} - clear - "Clears the pixels within a buffer. This function only works on - graphics objects created with the (create-graphics) function meaning - that you should call it only inside (with-graphics) macro. Unlike - the main graphics context (the display window), pixels in additional - graphics areas created with (create-graphics) can be entirely or - partially transparent. This function clears everything in a graphics - object to make all of the pixels 100% transparent." - [] - (.clear (current-graphics)))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "clip()" - :category "Rendering" - :subcategory nil - :added "2.4.0"} - clip - "Limits the rendering to the boundaries of a rectangle defined by - the parameters. The boundaries are drawn based on the state of - the (image-mode) fuction, either :corner, :corners, or :center. - To disable use (no-clip)." - [x y w h] - (.clip (current-graphics) (float x) (float y) (float w) (float h)))) - -(defn - ^{:requires-bindings true - :processing-name "color()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - color - "Creates an integer representation of a color The parameters are - interpreted as RGB or HSB values depending on the current - color-mode. The default mode is RGB values from 0 to 255 and - therefore, the function call (color 255 204 0) will return a bright - yellow. Args are cast to floats. - - r - red or hue value - g - green or saturation value - b - blue or brightness value - a - alpha value" - ([gray] (.color (current-graphics) (float gray))) - ([gray alpha] (.color (current-graphics) (float gray) (float alpha))) - ([r g b] (.color (current-graphics) (float r) (float g) (float b))) - ([r g b a] (.color (current-graphics) (float r) (float g) (float b) (float a)))) - -(defn - ^{:requires-bindings true - :processing-name "colorMode()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - color-mode - "Changes the way Processing interprets color data. Available modes - are :rgb and :hsb.By default, the parameters for fill, stroke, - background, and color are defined by values between 0 and 255 using - the :rgb color model. The color-mode fn is used to change the - numerical range used for specifying colors and to switch color - systems. For example, calling - (color-mode :rgb 1.0) will specify that values are specified between - 0 and 1. The limits for defining colors are altered by setting the - parameters range1, range2, range3, and range 4." - ([mode] - (let [mode (u/resolve-constant-key mode color-modes)] - (.colorMode (current-graphics) (int mode)))) - ([mode max] - (let [mode (u/resolve-constant-key mode color-modes)] - (.colorMode (current-graphics) (int mode) (float max)))) - ([mode max-x max-y max-z] - (let [mode (u/resolve-constant-key mode color-modes)] - (.colorMode (current-graphics) (int mode) (float max-x) (float max-y) (float max-z)))) - ([mode max-x max-y max-z max-a] - (let [mode (u/resolve-constant-key mode color-modes)] - (.colorMode (current-graphics) (int mode) (float max-x) (float max-y) (float max-z) (float max-a))))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name "constrain()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - constrain-float - "Constrains a value to not exceed a maximum and minimum value. All - args are cast to floats." - [amt low high] - (PApplet/constrain (float amt) (float low) (float high)))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name "constrain()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - constrain-int - "Constrains a value to not exceed a maximum and minimum value. All - args are cast to ints." - [amt low high] - (PApplet/constrain (int amt) (int low) (int high)))) - - -(defn - ^{:requires-bindings false - :processing-name "constrain()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - constrain - "Constrains a value to not exceed a maximum and minimum value." - [amt low high] - #?(:clj - (if (u/int-like? amt) - (constrain-int amt low high) - (constrain-float amt low high)) - :cljs (.constrain (ap/current-applet) amt low high))) - -(defn - ^{:requires-bindings true - :processing-name "copy()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - copy - "Copies a region of pixels from the one image to another. If src-img - is not specified it defaults to current-graphics. If dest-img is not - specified - it defaults to current-graphics. If the source - and destination regions aren't the same size, it will automatically - resize the source pixels to fit the specified target region. No - alpha information is used in the process, however if the source - image has an alpha channel set, it will be copied as well. " - ([[sx sy swidth sheight] [dx dy dwidth dheight]] - (.copy (current-graphics) - (int sx) (int sy) (int swidth) (int sheight) - (int dx) (int dy) (int dwidth) (int dheight))) - - ([^PImage src-img [sx sy swidth sheight] [dx dy dwidth dheight]] - (copy src-img (current-graphics) [sx sy swidth sheight] [dx dy dwidth dheight])) - - ([^PImage src-img ^PImage dest-img [sx sy swidth sheight] [dx dy dwidth dheight]] - (.copy dest-img src-img (int sx) (int sy) (int swidth) (int sheight) - (int dx) (int dy) (int dwidth) (int dheight)))) - -(defn - ^{:requires-bindings false - :processing-name "cos()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - cos - "Calculates the cosine of an angle. This function expects the values - of the angle parameter to be provided in radians (values from 0 to - Math/PI*2). Values are returned in the range -1 to 1." - [angle] - #?(:clj (PApplet/cos (float angle)) - :cljs (.cos (ap/current-applet) angle))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name nil - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - font-available? - "Returns true if font (specified as a string) is available on this - system, false otherwise" - [font-str] - (if (some #{font-str} (available-fonts)) - true - false))) - -(defn - ^{:requires-bindings true - :processing-name "createFont()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - create-font - "Dynamically converts a font to the format used by Processing (a - PFont) from either a font name that's installed on the computer, or - from a .ttf or .otf file inside the sketches 'data' folder. This - function is an advanced feature for precise control. - - Use available-fonts to obtain the names for the fonts recognized by - the computer and are compatible with this function. - - The size parameter states the font size you want to generate. The - smooth parameter specifies if the font should be antialiased or not, - and the charset parameter is an array of chars that specifies the - characters to generate. - - This function creates a bitmapped version of a font It loads a font - by name, and converts it to a series of images based on the size of - the font. When possible, the text function will use a native font - rather than the bitmapped version created behind the scenes with - create-font. For instance, when using the default renderer - setting (JAVA2D), the actual native version of the font will be - employed by the sketch, improving drawing quality and - performance. With the :p2d, :p3d, and :opengl renderer settings, the - bitmapped version will be used. While this can drastically improve - speed and appearance, results are poor when exporting if the sketch - does not include the .otf or .ttf file, and the requested font is - not available on the machine running the sketch." - ([name size] (.createFont (ap/current-applet) (str name) (float size))) - ([name size smooth] (.createFont (ap/current-applet) (str name) (float size) smooth)) - ([name size smooth ^chars charset] - (.createFont (ap/current-applet) (str name) (float size) smooth charset))) - -(defn - ^{:requires-bindings true - :processing-name "createGraphics()" - :category "Image" - :subcategory "Rendering" - :added "1.0"} - create-graphics - "Creates and returns a new PGraphics object of the types :p2d, :p3d, - :java2d, :pdf. By default :java2d is used. Use this class if you - need to draw into an off-screen graphics buffer. It's not possible - to use create-graphics with the :opengl renderer, because it doesn't - allow offscreen use. The :pdf renderer requires the filename parameter. - - Note: don't use create-graphics in draw in clojurescript, it leaks memory. - You should create graphic in setup and reuse it in draw instead of creating - a new one. - - It's important to call any drawing commands between (.beginDraw graphics) and - (.endDraw graphics) statements or use with-graphics macro. This is also true - for any commands that affect drawing, such as smooth or color-mode. - - If you're using :pdf renderer - don't forget to call (.dispose graphics) - as last command inside with-graphics macro, otherwise graphics won't be - saved. - - Unlike the main drawing surface which is completely opaque, surfaces - created with create-graphics can have transparency. This makes it - possible to draw into a graphics and maintain the alpha channel. By - using save to write a PNG or TGA file, the transparency of the - graphics object will be honored." - ([w h] - (.createGraphics (ap/current-applet) (int w) (int h) #?(:cljs :p2d))) - ([w h renderer] - (.createGraphics (ap/current-applet) (int w) (int h) (ap/resolve-renderer renderer))) - ([w h renderer path] - (.createGraphics (ap/current-applet) (int w) (int h) (ap/resolve-renderer renderer) - #?(:clj (u/absolute-path path) - :cljs path)))) - -(defn - ^{:requires-bindings true - :processing-name "createImage()" - :category "Image" - :subcategory nil - :added "1.0"} - create-image - "Creates a new PImage (the datatype for storing images). This - provides a fresh buffer of pixels to play with. Set the size of the - buffer with the width and height parameters. The format parameter - defines how the pixels are stored. See the PImage reference for more - information. - - Possible formats: :rgb, :argb, :alpha (grayscale alpha channel) - - Prefer using create-image over initialising new PImage instances - directly." - [w h format] - (let [format (u/resolve-constant-key format image-formats)] - (.createImage (ap/current-applet) (int w) (int h) (int format)))) - -(defn - ^{:requires-bindings true - :processing-name "PGraphics.fillColor" - :processing-link "http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#fillColor" - :category "Color" - :subcategory "Creating & Reading"} - current-fill - "Return the current fill color." - [] - (.-fillColor (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "PGraphics.strokeColor" - :processing-link "http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#strokeColor" - :category "Color" - :subcategory "Creating & Reading"} - current-stroke - "Return the current stroke color." - [] - (.-strokeColor (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "cursor()" - :category "Environment" - :subcategory nil - :added "1.0"} - cursor - "Sets the cursor to a predefined symbol or makes it - visible if already hidden (after no-cursor was called). - - Available modes: :arrow, :cross, :hand, :move, :text, :wait - - See cursor-image for specifying a generic image as the cursor - symbol." - ([] (.cursor (ap/current-applet))) - ([cursor-mode] - (let [cursor-mode (u/resolve-constant-key cursor-mode cursor-modes)] - (.cursor (ap/current-applet) - #?(:clj (int cursor-mode) - :cljs (str cursor-mode)))))) - -(defn - ^{:requires-bindings true - :processing-name "cursor()" - :category "Environment" - :subcategory nil - :added "1.0"} - cursor-image - "Set the cursor to a predefined image. The horizontal and vertical - active spots of the cursor may be specified with hx and hy. - It is recommended to make the size 16x16 or 32x32 pixels." - ([^PImage img] (.cursor (ap/current-applet) img)) - ([^PImage img hx hy] (.cursor (ap/current-applet) img (int hx) (int hy)))) - -(defn - ^{:requires-bindings true - :processing-name "curve()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - curve - "Draws a curved line on the screen. The first and second parameters - specify the beginning control point and the last two parameters - specify the ending control point. The middle parameters specify the - start and stop of the curve. Longer curves can be created by putting - a series of curve fns together or using curve-vertex. An additional - fn called curve-tightness provides control for the visual quality of - the curve. The curve fn is an implementation of Catmull-Rom - splines." - ([x1 y1 x2 y2 x3 y3 x4 y4] - (.curve (current-graphics) - (float x1) (float y1) - (float x2) (float y2) - (float x3) (float y3) - (float x4) (float y4))) - ([x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4] - (.curve (current-graphics) - (float x1) (float y1) (float z1) - (float x2) (float y2) (float z2) - (float x3) (float y3) (float z3) - (float x4) (float y4) (float z4)))) - -(defn - ^{:requires-bindings true - :processing-name "curveDetail()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - curve-detail - "Sets the resolution at which curves display. The default value is - 20. This function is only useful when using the :p3d or :opengl - renderer as the default (:java2d) renderer does not use this - information." - [detail] - (.curveDetail (current-graphics) (int detail))) - -(defn - ^{:requires-bindings true - :processing-name "curvePoint()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - curve-point - "Evalutes the curve at point t for points a, b, c, d. The parameter - t varies between 0 and 1, a and d are points on the curve, and b c - and are the control points. This can be done once with the x - coordinates and a second time with the y coordinates to get the - location of a curve at t." - [a b c d t] - (.curvePoint (current-graphics) (float a) (float b) (float c) (float d) (float t))) - -(defn - ^{:requires-bindings true - :processing-name "curveTangent()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - curve-tangent - "Calculates the tangent of a point on a curve. - See: http://en.wikipedia.org/wiki/Tangent" - [a b c d t] - (.curveTangent (current-graphics) (float a) (float b) (float c) (float d) (float t))) - -(defn - ^{:requires-bindings true - :processing-name "curveTightness()" - :category "Shape" - :subcategory "Curves" - :added "1.0"} - curve-tightness - "Modifies the quality of forms created with curve and - curve-vertex. The parameter squishy determines how the curve fits - to the vertex points. The value 0.0 is the default value for - squishy (this value defines the curves to be Catmull-Rom splines) - and the value 1.0 connects all the points with straight - lines. Values within the range -5.0 and 5.0 will deform the curves - but will leave them recognizable and as values increase in - magnitude, they will continue to deform." - [ti] - (.curveTightness (current-graphics) (float ti))) - -(defn - ^{:requires-bindings true - :processing-name "curveVertex()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - curve-vertex - "Specifies vertex coordinates for curves. This function may only be - used between begin-shape and end-shape and only when there is no - mode keyword specified to begin-shape. The first and last points in a - series of curve-vertex lines will be used to guide the beginning and - end of a the curve. A minimum of four points is required to draw a - tiny curve between the second and third points. Adding a fifth point - with curve-vertex will draw the curve between the second, third, and - fourth points. The curve-vertex function is an implementation of - Catmull-Rom splines." - ([x y] (.curveVertex (current-graphics) (float x) (float y))) - ([x y z] (.curveVertex (current-graphics) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings false - :processing-name "day()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - day - "Get the current day of the month (1 through 31)." - [] - #?(:clj (PApplet/day) - :cljs (.day (ap/current-applet)))) - -(defn - ^{:requires-bindings false - :processing-name "degrees()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - degrees - "Converts a radian measurement to its corresponding value in - degrees. Radians and degrees are two ways of measuring the same - thing. There are 360 degrees in a circle and (* 2 Math/PI) radians - in a circle. For example, (= 90° (/ Math/PI 2) 1.5707964). All - trigonometric methods in Processing require their parameters to be - specified in radians." - [radians] - #?(:clj (PApplet/degrees (float radians)) - :cljs (.degrees (ap/current-applet) radians))) - -(defn - ^{:requires-bindings true - :processing-name "delay()" - :processing-link nil - :category "Structure" - :subcategory nil - :added "1.0"} - delay-frame - "Forces the program to stop running for a specified time. Delay - times are specified in thousandths of a second, therefore the - function call (delay 3000) will stop the program for three - seconds. Because the screen is updated only at the end of draw, - the program may appear to 'freeze', because the screen will not - update when the delay fn is used. This function has no affect - inside setup." - [freeze-ms] - (.delay (ap/current-applet) (int freeze-ms))) - -(defn - ^{:requires-bindings true - :processing-name "directionalLight()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - directional-light - "Adds a directional light. Directional light comes from one - direction and is stronger when hitting a surface squarely and weaker - if it hits at a gentle angle. After hitting a surface, a - directional lights scatters in all directions. Lights need to be - included in the draw fn to remain persistent in a looping - program. Placing them in the setup fn of a looping program will cause - them to only have an effect the first time through the loop. The - affect of the r, g, and b parameters is determined by the current - color mode. The nx, ny, and nz parameters specify the direction the - light is facing. For example, setting ny to -1 will cause the - geometry to be lit from below (the light is facing directly upward)" - [r g b nx ny nz] - (.directionalLight (current-graphics) (float r) (float g) (float b) - (float nx) (float ny) (float nz))) - -(defn - ^{:requires-bindings false - :processing-name "dist()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - dist - "Calculates the distance between two points" - ([x1 y1 x2 y2] - #?(:clj (PApplet/dist (float x1) (float y1) (float x2) (float y2)) - :cljs (.dist (ap/current-applet) x1 y1 x2 y2))) - ([x1 y1 z1 x2 y2 z2] - #?(:clj (PApplet/dist (float x1) (float y1) (float z1) (float x2) (float y2) (float z2)) - :cljs (.dist (ap/current-applet) x1 y1 z1 x2 y2 z2)))) - -(defmacro - ^{:requires-bindings true - :processing-name nil - :category "Output" - :subcategory "Files" - :added "2.5"} - do-record - "Macro for drawing on graphics which saves result in the file at the end. - Similar to 'with-graphics' macro. do-record assumed to be used with :pdf - graphics. Example: - - (q/do-record (q/create-graphics 200 200 :pdf \"output.pdf\") - (q/fill 250 0 0) - (q/ellipse 100 100 150 150)) - " - [graphics & body] - `(let [gr# ~graphics] - (with-graphics gr# - ~@body) - (.dispose gr#))) - -(defn - ^{:requires-bindings true - :processing-name "ellipse()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - ellipse - "Draws an ellipse (oval) in the display window. An ellipse with an - equal width and height is a circle. The origin may be changed with - the ellipse-mode function" - [x y width height] - (.ellipse (current-graphics) (float x) (float y) (float width) (float height))) - -(defn - ^{:requires-bindings true - :processing-name "ellipseMode()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - ellipse-mode - "Modifies the origin of the ellispse according to the specified mode: - - :center - specifies the location of the ellipse as - the center of the shape. (Default). - :radius - similar to center, but the width and height parameters to - ellipse specify the radius of the ellipse, rather than the - diameter. - :corner - draws the shape from the upper-left corner of its bounding - box. - :corners - uses the four parameters to ellipse to set two opposing - corners of the ellipse's bounding box." - [mode] - (let [mode (u/resolve-constant-key mode ellipse-modes)] - (.ellipseMode (current-graphics) (int mode)))) - -(defn - ^{:requires-bindings true - :processing-name "emissive()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - emissive-float - "Sets the emissive color of the material used for drawing shapes - drawn to the screen. Used in combination with ambient, specular, and - shininess in setting the material properties of shapes. Converts all - args to floats" - ([float-val] (.emissive (current-graphics) (float float-val))) - ([r g b] (.emissive (current-graphics) (float r) (float g) (float b)))) - -(defn - ^{:requires-bindings true - :processing-name "emissive()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - emissive-int - "Sets the emissive color of the material used for drawing shapes - drawn to the screen. Used in combination with ambient, specular, and - shininess in setting the material properties of shapes. Converts all - args to ints" - [int-val] (.emissive (current-graphics) (int int-val))) - - -(defn - ^{:requires-bindings true - :processing-name "emissive()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - emissive - "Sets the emissive color of the material used for drawing shapes - drawn to the screen. Used in combination with ambient, specular, and - shininess in setting the material properties of shapes. - - If passed one arg - it is assumed to be an int (i.e. a color), - multiple args are converted to floats." - ([c] - #?(:clj (if (u/int-like? c) (emissive-int c) (emissive-float c)) - :cljs (emissive-float c))) - ([r g b] (emissive-float r g b))) - -(defn - ^{:requires-bindings true - :processing-name "endCamera()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - end-camera - "Unsets the matrix mode from the camera matrix. See begin-camera." - [] - (.endCamera (current-graphics))) - - -(defn - ^{:requires-bindings true - :processing-name "endContour()" - :category "Shape" - :subcategory "Vertex" - :added "2.0"} - end-contour - "Use the begin-contour and end-contour function to create negative - shapes within shapes. These functions can only be within a - begin-shape/end-shape pair and they only work with the :p2d and :p3d - renderers." - [] - (.endContour (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "endRaw()" - :category "Output" - :subcategory "Files" - :added "1.0"} - end-raw - "Complement to begin-raw; they must always be used together. See - the begin-raw docstring for details." - [] - (.endRaw (current-graphics))) - - -(defn - ^{:requires-bindings true - :processing-name "endShape()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - end-shape - "May only be called after begin-shape. When end-shape is called, - all of image data defined since the previous call to begin-shape is - written into the image buffer. The keyword :close may be passed to - close the shape (to connect the beginning and the end)." - ([] (.endShape (current-graphics))) - ([mode] - (when-not (= :close mode) - #?(:clj (throw (Exception. (str "Unknown mode value: " mode ". Expected :close"))) - :cljs nil)) - (.endShape (current-graphics) - #?(:clj PApplet/CLOSE - :cljs 2)))) - -(defn - ^{:requires-bindings true - :processing-name "exit()" - :category "Structure" - :subcategory nil - :added "1.0"} - exit - "Quits/stops/exits the program. Rather than terminating - immediately, exit will cause the sketch to exit after draw has - completed (or after setup completes if called during the setup - method). " - [] - (.exit (ap/current-applet))) - -(defn - ^{:requires-bindings false - :processing-name "exp()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - exp - "Returns Euler's number e (2.71828...) raised to the power of the - value parameter." - [val] - #?(:clj (PApplet/exp (float val)) - :cljs (.exp (ap/current-applet) val))) - -#?(:cljs - (defn- clear-no-fill-cljs - "Sets custom property on graphcs object indicating that it has - fill color." - [graphics] - (aset graphics no-fill-prop false))) - -(defn - ^{:requires-bindings true - :processing-name "fill()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - fill-float - "Sets the color used to fill shapes. For example, (fill 204 102 0), - will specify that all subsequent shapes will be filled with orange." - ([gray] - (.fill (current-graphics) (float gray)) - #?(:cljs (clear-no-fill-cljs (current-graphics)))) - ([gray alpha] - (.fill (current-graphics) (float gray) (float alpha)) - #?(:cljs (clear-no-fill-cljs (current-graphics)))) - ([r g b] - (.fill (current-graphics) (float r) (float g) (float b)) - #?(:cljs (clear-no-fill-cljs (current-graphics)))) - ([r g b alpha] - (.fill (current-graphics) (float r) (float g) (float b) (float alpha)) - #?(:cljs (clear-no-fill-cljs (current-graphics))))) - -(defn - ^{:requires-bindings true - :processing-name "fill()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - fill-int - "Sets the color used to fill shapes." - ([rgb] - (.fill (current-graphics) (unchecked-int rgb)) - #?(:cljs (clear-no-fill-cljs (current-graphics)))) - ([rgb alpha] - (.fill (current-graphics) (unchecked-int rgb) (float alpha)) - #?(:cljs (clear-no-fill-cljs (current-graphics))))) - -(defn - ^{:requires-bindings true - :processing-name "fill()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - fill - "Sets the color used to fill shapes." - ([rgb] - #?(:clj (if (u/int-like? rgb) (fill-int rgb) (fill-float rgb)) - :cljs (fill-float rgb))) - - ([rgb alpha] - #?(:clj (if (u/int-like? rgb) (fill-int rgb alpha) (fill-float rgb alpha)) - :cljs (fill-float rgb alpha))) - - ([r g b] (fill-float r g b)) - ([r g b a] (fill-float r g b a))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "displayDensity()" - :category "Environment" - :subcategory nil - :added "2.4.0"} - display-density - "This function returns the number 2 if the screen is a high-density - screen (called a Retina display on OS X or high-dpi on Windows and - Linux) and a 1 if not. This information is useful for a program to - adapt to run at double the pixel density on a screen that supports - it. Can be used in conjunction with (pixel-density)" - ([] (.displayDensity (ap/current-applet))) - ([display] (PApplet/displayDensity display)))) - -(defn - ^{:requires-bindings true - :processing-name "filter()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - display-filter - "Originally named filter in Processing Language. - Filters the display window with the specified mode and level. - Level defines the quality of the filter and mode may be one of the - following keywords: - - :threshold - converts the image to black and white pixels depending - if they are above or below the threshold defined by - the level parameter. The level must be between - 0.0 (black) and 1.0 (white). If no level is specified, - 0.5 is used. - :gray - converts any colors in the image to grayscale - equivalents. Doesn't work with level. - :invert - sets each pixel to its inverse value. Doesn't work with - level. - :posterize - limits each channel of the image to the number of - colors specified as the level parameter. The parameter can - be set to values between 2 and 255, but results are most - noticeable in the lower ranges. - :blur - executes a Guassian blur with the level parameter - specifying the extent of the blurring. If no level - parameter is used, the blur is equivalent to Guassian - blur of radius 1. - :opaque - sets the alpha channel to entirely opaque. Doesn't work - with level. - :erode - reduces the light areas. Doesn't work with level. - :dilate - increases the light areas. Doesn't work with level." - ([mode] - (.filter (current-graphics) - (int (u/resolve-constant-key mode filter-modes)))) - - ([mode level] - (let [mode (u/resolve-constant-key mode filter-modes)] - (.filter (current-graphics) (int mode) (float level))))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "filter()" - :category "Image" - :subcategory "Pixels" - :added "2.0"} - filter-shader - "Originally named filter in Processing Language. - Filters the display window with given shader (only in :p2d and :p3d modes)." - [^PShader shader-obj] (.filter (current-graphics) shader-obj))) - -(defn - ^{:requires-bindings false - :processing-name "floor()" - :category "Math" - :subcategory "Calculation" - :added "2.0"} - floor - "Calculates the closest int value that is less than or equal to the - value of the parameter. For example, (floor 9.03) returns the value 9." - [n] - #?(:clj (PApplet/floor (float n)) - :cljs (.floor (ap/current-applet) n))) - -(defn - ^{:requires-bindings true - :processing-name "focused" - :category "Environment" - :subcategory nil - :added "1.0"} - focused - "Returns a boolean value representing whether the applet has focus." - [] (.-focused (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "frameCount" - :category "Environment" - :subcategory nil - :added "1.0"} - frame-count - "The system variable frameCount contains the number of frames - displayed since the program started. Inside setup() the value is 0 - and after the first iteration of draw it is 1, etc." - [] - #?(:clj (.frameCount (ap/current-applet)) - :cljs (.-frameCount (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "frameRate" - :category "Environment" - :subcategory nil - :added "1.0"} - current-frame-rate - "Returns the current framerate" - [] - #?(:clj (.frameRate (ap/current-applet)) - :cljs (.-__frameRate (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "frameRate()" - :category "Environment" - :subcategory nil - :added "1.0"} - frame-rate - "Specifies a new target framerate (number of frames to be displayed every - second). If the processor is not fast enough to maintain the - specified rate, it will not be achieved. For example, the function - call (frame-rate 30) will attempt to refresh 30 times a second. It - is recommended to set the frame rate within setup. The default rate - is 60 frames per second." - [new-rate] - (do - #?(:cljs (reset! (.-target-frame-rate (ap/current-applet)) new-rate)) - (.frameRate (ap/current-applet) (float new-rate)))) - -(defn - ^{:requires-bindings true - :processing-name "frustum()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - frustum - "Sets a perspective matrix defined through the parameters. Works - like glFrustum, except it wipes out the current perspective matrix - rather than muliplying itself with it." - [left right bottom top near far] - (.frustum (current-graphics) (float left) (float right) (float bottom) (float top) - (float near) (float far))) - -(defn - ^{:requires-bindings true - :processing-name "get()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - get-pixel - "Reads the color of any pixel or grabs a section of an image. If no - parameters are specified, a copy of entire image is returned. Get the - value of one pixel by specifying an x,y coordinate. Get a section of - the image by specifying an additional width and height parameter. - If the pixel requested is outside of the image window, black is returned. - The numbers returned are scaled according to the current color ranges, - but only RGB values are returned by this function. For example, even though - you may have drawn a shape with (color-mode :hsb), the numbers returned - will be in RGB. - - Getting the color of a single pixel with (get x y) is easy, but not - as fast as grabbing the data directly using the pixels fn. - - If no img specified - current-graphics is used." - ([] (get-pixel (current-graphics))) - ([^PImage img] (.get img)) - ([x y] (get-pixel (current-graphics) x y)) - ([^PImage img x y] (.get img (int x) (int y))) - ([x y w h] (get-pixel (current-graphics) x y w h)) - ([^PImage img x y w h] (.get img (int x) (int y) (int w) (int h)))) - -(defn - ^{:requires-bindings true - :processing-name "green()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - green - "Extracts the green value from a color, scaled to match current - color-mode. This value is always returned as a float so be careful - not to assign it to an int value." - [col] - (.green (current-graphics) (unchecked-int col))) - -(defn - ^{:require-binding false - :processing-name "hex()" - :category "Data" - :subcategory "Conversion"} - hex - "Converts a byte, char, int, or color to a String containing the - equivalent hexadecimal notation. For example color(0, 102, 153) will - convert to the String \"FF006699\". This function can help make your - geeky debugging sessions much happier. " - ([val] - #?(:clj (PApplet/hex (int val)) - :cljs (.hex (ap/current-applet) val))) - ([val num-digits] - #?(:clj (PApplet/hex (int val) (int num-digits)) - :cljs (.hex (ap/current-applet) val num-digits)))) - -(defn - ^{:requires-bindings true - :processing-name "getHeight()" - :processing-link nil - :category "Environment" - :subcategory nil - :added "1.0"} - height - "Height of the display window. The value of height is zero until - size is called." - [] - (.-height (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "hint()" - :processing-link nil - :category "Rendering" - :subcategory nil - :added "1.0"} - hint - "Set various hints and hacks for the renderer. This is used to - handle obscure rendering features that cannot be implemented in a - consistent manner across renderers. Many options will often graduate - to standard features instead of hints over time. - - Options: - - :enable-native-fonts - Use the native version fonts when they are - installed, rather than the bitmapped version from a .vlw - file. This is useful with the default (or JAVA2D) renderer - setting, as it will improve font rendering speed. This is not - enabled by default, because it can be misleading while testing - because the type will look great on your machine (because you have - the font installed) but lousy on others' machines if the identical - font is unavailable. This option can only be set per-sketch, and - must be called before any use of text-font. - - :disable-native-fonts - Disables native font support. - - :disable-depth-test - Disable the zbuffer, allowing you to draw on - top of everything at will. When depth testing is disabled, items - will be drawn to the screen sequentially, like a painting. This - hint is most often used to draw in 3D, then draw in 2D on top of - it (for instance, to draw GUI controls in 2D on top of a 3D - interface). Starting in release 0149, this will also clear the - depth buffer. Restore the default with :enable-depth-test - but note that with the depth buffer cleared, any 3D drawing that - happens later in draw will ignore existing shapes on the screen. - - :enable-depth-test - Enables the zbuffer. - - :enable-depth-sort - Enable primitive z-sorting of triangles and - lines in :p3d and :opengl rendering modes. This can slow - performance considerably, and the algorithm is not yet perfect. - - :disable-depth-sort - Disables hint :enable-depth-sort - - :disable-opengl-errors - Speeds up the OPENGL renderer setting - by not checking for errors while running. - - :enable-opengl-errors - Turns on OpenGL error checking - - :enable-depth-mask - :disable-depth-mask - - :enable-optimized-stroke - :disable-optimized-stroke - :enable-retina-pixels - :disable-retina-pixels - :enable-stroke-perspective - :disable-stroke-perspective - :enable-stroke-pure - :disable-stroke-pure - :enable-texture-mipmaps - :disable-texture-mipmaps -" - [hint-type] - (let [hint-type (if (keyword? hint-type) - (get hint-options hint-type) - hint-type)] - (.hint (current-graphics) (int hint-type)))) - -(defn - ^{:requires-bindings false - :processing-name "hour()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - hour - "Returns the current hour as a value from 0 - 23." - [] - #?(:clj (PApplet/hour) - :cljs (.hour (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "hue()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - hue - "Extracts the hue value from a color." - [col] - (.hue (current-graphics) (unchecked-int col))) - - -(defn - ^{:requires-bindings true - :processing-name "image()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - image - "Displays images to the screen. Processing currently works with GIF, - JPEG, and Targa images. The color of an image may be modified with - the tint function and if a GIF has transparency, it will maintain - its transparency. The img parameter specifies the image to display - and the x and y parameters define the location of the image from its - upper-left corner. The image is displayed at its original size - unless the width and height parameters specify a different size. The - image-mode fn changes the way the parameters work. A call to - (image-mode :corners) will change the width and height parameters to - define the x and y values of the opposite corner of the image. - - Starting with release 0124, when using the default (JAVA2D) - renderer, smooth will also improve image quality of resized - images." - (#?(:clj [^PImage img x y] - :cljs [img x y]) - (.image (current-graphics) img (float x) (float y))) - - (#?(:clj [^PImage img x y c d] - :cljs [img x y c d]) - (.image (current-graphics) img (float x) (float y) (float c) (float d)))) - -(defn - ^{:requires-bindings true - :processing-name "PImage.filter()" - :category "Image" - :subcategory "Pixels" - :added "2.0"} - image-filter - "Originally named filter in Processing Language. - Filters given image with the specified mode and level. - Level defines the quality of the filter and mode may be one of - the following keywords: - - :threshold - converts the image to black and white pixels depending - if they are above or below the threshold defined by - the level parameter. The level must be between - 0.0 (black) and 1.0 (white). If no level is specified, - 0.5 is used. - :gray - converts any colors in the image to grayscale - equivalents. Doesn't work with level. - :invert - sets each pixel to its inverse value. Doesn't work with - level. - :posterize - limits each channel of the image to the number of - colors specified as the level parameter. The parameter can - be set to values between 2 and 255, but results are most - noticeable in the lower ranges. - :blur - executes a Guassian blur with the level parameter - specifying the extent of the blurring. If no level - parameter is used, the blur is equivalent to Guassian - blur of radius 1. - :opaque - sets the alpha channel to entirely opaque. Doesn't work - with level. - :erode - reduces the light areas. Doesn't work with level. - :dilate - increases the light areas. Doesn't work with level." - ([^PImage img mode] - (let [mode (u/resolve-constant-key mode filter-modes)] - (.filter img (int mode)))) - ([^PImage img mode level] - (let [mode (u/resolve-constant-key mode filter-modes)] - (.filter img (int mode) (float level))))) - -(defn - ^{:requires-bindings true - :processing-name "imageMode()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - image-mode - "Modifies the location from which images draw. The default mode is :corner. - Available modes are: - - :corner - specifies the location to be the upper left corner and - uses the fourth and fifth parameters of image to set the - image's width and height. - - :corners - uses the second and third parameters of image to set the - location of one corner of the image and uses the fourth - and fifth parameters to set the opposite corner. - - :center - draw images centered at the given x and y position." - [mode] - (let [mode (u/resolve-constant-key mode image-modes)] - (.imageMode (current-graphics) (int mode)))) - -(defn - ^{:requires-bindings true - :processing-name "keyCode" - :category "Input" - :subcategory "Keyboard" - :added "1.0"} - key-code - "The variable keyCode is used to detect special keys such as the UP, - DOWN, LEFT, RIGHT arrow keys and ALT, CONTROL, SHIFT. When checking - for these keys, it's first necessary to check and see if the key is - coded. This is done with the conditional (= (key) CODED). - - The keys included in the ASCII specification (BACKSPACE, TAB, ENTER, - RETURN, ESC, and DELETE) do not require checking to see if they key - is coded, and you should simply use the key variable instead of - key-code If you're making cross-platform projects, note that the - ENTER key is commonly used on PCs and Unix and the RETURN key is - used instead on Macintosh. Check for both ENTER and RETURN to make - sure your program will work for all platforms. - - For users familiar with Java, the values for UP and DOWN are simply - shorter versions of Java's KeyEvent.VK_UP and - KeyEvent.VK_DOWN. Other keyCode values can be found in the Java - KeyEvent reference." - [] - (.-keyCode (ap/current-applet))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name nil - :category "Input" - :subcategory "Keyboard" - :added "2.4.0"} - key-modifiers - "Set of key modifiers that were pressed when event happened. - Possible modifiers :ctrl, :alt, :shift, :meta. Not available in - ClojureScript." - [] - (let [modifiers - (if-let [^processing.event.Event - event (-> (ap/current-applet) meta :key-event deref)] - [(if (.isAltDown event) :alt nil) - (if (.isShiftDown event) :shift nil) - (if (.isControlDown event) :control nil) - (if (.isMetaDown event) :meta nil)] - [])] - (set (remove nil? modifiers))))) - -(defn - ^{:requires-bindings true - :processing-name "keyPressed" - :category "Input" - :subcategory "Keyboard" - :added "1.0"} - key-pressed? - "true if any key is currently pressed, false otherwise." - [] - #?(:clj (.-keyPressed (ap/current-applet)) - :cljs (.-__keyPressed (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "lightFalloff()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - light-falloff - "Sets the falloff rates for point lights, spot lights, and ambient - lights. The parameters are used to determine the falloff with the - following equation: - - d = distance from light position to vertex position - falloff = 1 / (CONSTANT + d * LINEAR + (d*d) * QUADRATIC) - - Like fill, it affects only the elements which are created after it - in the code. The default value is (light-falloff 1.0 0.0 0.0). - Thinking about an ambient light with a falloff can be tricky. It is - used, for example, if you wanted a region of your scene to be lit - ambiently one color and another region to be lit ambiently by - another color, you would use an ambient light with location and - falloff. You can think of it as a point light that doesn't care - which direction a surface is facing." - [constant linear quadratic] - (.lightFalloff (current-graphics) (float constant) (float linear) (float quadratic))) - -(defn - ^{:requires-bindings true - :processing-name "lerpColor()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - lerp-color - "Calculates a color or colors between two color at a specific - increment. The amt parameter is the amount to interpolate between - the two values where 0.0 equal to the first point, 0.1 is very near - the first point, 0.5 is half-way in between, etc." - [c1 c2 amt] - (.lerpColor (current-graphics) (unchecked-int c1) (unchecked-int c2) (float amt))) - -(defn - ^{:requires-bindings false - :processing-name "lerp()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - lerp - "Calculates a number between two numbers at a specific - increment. The amt parameter is the amount to interpolate between - the two values where 0.0 equal to the first point, 0.1 is very near - the first point, 0.5 is half-way in between, etc. The lerp function - is convenient for creating motion along a straight path and for - drawing dotted lines." - [start stop amt] - #?(:clj (PApplet/lerp (float start) (float stop) (float amt)) - :cljs (.lerp (ap/current-applet) start stop amt))) - -(defn - ^{:requires-bindings true - :processing-name "lights()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - lights - "Sets the default ambient light, directional light, falloff, and - specular values. The defaults are: - - (ambient-light 128 128 128) - (directional-light 128 128 128 0 0 -1) - (light-falloff 1 0 0) - (light-specular 0 0 0). - - Lights need to be included in the draw to remain persistent in a - looping program. Placing them in the setup of a looping program - will cause them to only have an effect the first time through the - loop." - [] - (.lights (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "lightSpecular()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - light-specular - "Sets the specular color for lights. Like fill, it affects only the - elements which are created after it in the code. Specular refers to - light which bounces off a surface in a perferred direction (rather - than bouncing in all directions like a diffuse light) and is used - for creating highlights. The specular quality of a light interacts - with the specular material qualities set through the specular and - shininess functions." - [r g b] - (.lightSpecular (current-graphics) (float r) (float g) (float b))) - -(defn - ^{:requires-bindings true - :processing-name "line()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - line - "Draws a line (a direct path between two points) to the screen. The - version of line with four parameters draws the line in 2D. To color - a line, use the stroke function. A line cannot be filled, therefore - the fill method will not affect the color of a line. 2D lines are - drawn with a width of one pixel by default, but this can be changed - with the stroke-weight function. The version with six parameters - allows the line to be placed anywhere within XYZ space. " - ([p1 p2] (apply line (concat p1 p2))) - ([x1 y1 x2 y2] (.line (current-graphics) (float x1) (float y1) (float x2) (float y2))) - ([x1 y1 z1 x2 y2 z2] - (.line (current-graphics) (float x1) (float y1) (float z1) - (float x2) (float y2) (float z2)))) - -(defn - ^{:requires-bindings true - :processing-name "loadFont()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - load-font - "Loads a font into a variable of type PFont. To load correctly, - fonts must be located in the data directory of the current sketch. - To create a font to use with Processing use the create-font fn. - - Like load-image and other methods that load data, the load-font fn - should not be used inside draw, because it will slow down the sketch - considerably, as the font will be re-loaded from the disk (or - network) on each frame. - - For most renderers, Processing displays fonts using the .vlw font - format, which uses images for each letter, rather than defining them - through vector data. When hint :enable-native-fonts is used with the - JAVA2D renderer, the native version of a font will be used if it is - installed on the user's machine. - - Using create-font (instead of load-font) enables vector data to be - used with the JAVA2D (default) renderer setting. This can be helpful - when many font sizes are needed, or when using any renderer based on - JAVA2D, such as the PDF library." - [filename] - (.loadFont (ap/current-applet) (str filename))) - -(defn - ^{:requires-bindings true - :processing-name "loadImage()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - load-image - "Loads an image into a variable of type PImage. Four types of - images ( .gif, .jpg, .tga, .png) images may be loaded. To load - correctly, images must be located in the data directory of the - current sketch. In most cases, load all images in setup to preload - them at the start of the program. Loading images inside draw will - reduce the speed of a program. - - The filename parameter can also be a URL to a file found online. - - If an image is not loaded successfully, the null value is returned - and an error message will be printed to the console. The error - message does not halt the program, however the null value may cause - a NullPointerException if your code does not check whether the value - returned from load-image is nil. - - Depending on the type of error, a PImage object may still be - returned, but the width and height of the image will be set to - -1. This happens if bad image data is returned or cannot be decoded - properly. Sometimes this happens with image URLs that produce a 403 - error or that redirect to a password prompt, because load-image - will attempt to interpret the HTML as image data." - [filename] - (.loadImage (ap/current-applet) (str filename))) - -(defn - ^{:requires-bindings true - :processing-name "loadShader()" - :category "Rendering" - :subcategory "Shaders" - :added "2.0"} - load-shader - "Loads a shader into the PShader object. Shaders are compatible with the - P2D and P3D renderers, but not with the default renderer." - ([fragment-filename] - (.loadShader (current-graphics) fragment-filename)) - ([fragment-filename vertex-filename] - (.loadShader (current-graphics) fragment-filename vertex-filename))) - -(defn - ^{:requires-bindings true - :processing-name "loadShape()" - :category "Shape" - :subcategory "Loading & Displaying" - :added "1.0"} - load-shape - "Load a geometry from a file as a PShape." - [filename] - (.loadShape (ap/current-applet) filename)) - -(defn - ^{:requires-bindings false - :processing-name "log()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - log - "Calculates the natural logarithm (the base-e logarithm) of a - number. This function expects the values greater than 0.0." - [val] - #?(:clj (PApplet/log (float val)) - :cljs (.log (ap/current-applet) val))) - -(defn - ^{:requires-bindings false - :processing-name "mag()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - mag - "Calculates the magnitude (or length) of a vector. A vector is a - direction in space commonly used in computer graphics and linear - algebra. Because it has no start position, the magnitude of a vector - can be thought of as the distance from coordinate (0,0) to its (x,y) - value. Therefore, mag is a shortcut for writing (dist 0 0 x y)." - ([a b] - #?(:clj (PApplet/mag (float a) (float b)) - :cljs (.mag (ap/current-applet) a b))) - ([a b c] - #?(:clj (PApplet/mag (float a) (float b) (float c)) - :cljs (.mag (ap/current-applet) a b c)))) - -(defn - ^{:requires-bindings false - :processing-name "map()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - map-range - "Re-maps a number from one range to another. - - Numbers outside the range are not clamped to 0 and 1, because - out-of-range values are often intentional and useful." - [val low1 high1 low2 high2] - #?(:clj (PApplet/map (float val) (float low1) (float high1) (float low2) (float high2)) - :cljs (.map (ap/current-applet) val low1 high1 low2 high2))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name "PImage.mask()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - mask-image - "Masks part of an image from displaying by loading another image and - using it as an alpha channel. This mask image should only contain - grayscale data, but only the blue color channel is used. The mask - image needs to be the same size as the image to which it is - applied. - - If single argument function is used - masked image is sketch itself - or graphics if used inside with-graphics macro. If you're passing - graphics to this function - it works only with :p3d and :opengl renderers. - - This method is useful for creating dynamically generated alpha - masks." - ([^PImage mask] (mask-image (current-graphics) mask)) - ([^PImage img ^PImage mask] (.mask img mask)))) - -(defn - ^{:requires-bindings true - :processing-name "millis()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - millis - "Returns the number of milliseconds (thousandths of a second) since - starting the sketch. This information is often used for timing - animation sequences." - [] - (.millis (ap/current-applet))) - -(defn - ^{:requires-bindings false - :processing-name "minute()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - minute - "Returns the current minute as a value from 0 - 59" - [] - #?(:clj (PApplet/minute) - :cljs (.minute (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "modelX()" - :category "Lights, Camera" - :subcategory "Coordinates" - :added "1.0"} - model-x - "Returns the three-dimensional x, y, z position in model space. This - returns the x value for a given coordinate based on the current set - of transformations (scale, rotate, translate, etc.) The x value can - be used to place an object in space relative to the location of the - original point once the transformations are no longer in use." - [x y z] - (.modelX (current-graphics) (float x) (float y) (float z))) - -(defn - ^{:requires-bindings true - :processing-name "modelY()" - :category "Lights, Camera" - :subcategory "Coordinates" - :added "1.0"} - model-y - "Returns the three-dimensional x, y, z position in model space. This - returns the y value for a given coordinate based on the current set - of transformations (scale, rotate, translate, etc.) The y value can - be used to place an object in space relative to the location of the - original point once the transformations are no longer in use." - [x y z] - (.modelY (current-graphics) (float x) (float y) (float z))) - -(defn - ^{:requires-bindings true - :processing-name "modelZ()" - :category "Lights, Camera" - :subcategory "Coordinates" - :added "1.0"} - model-z - "Returns the three-dimensional x, y, z position in model space. This - returns the z value for a given coordinate based on the current set - of transformations (scale, rotate, translate, etc.) The z value can - be used to place an object in space relative to the location of the - original point once the transformations are no longer in use." - [x y z] - (.modelZ (current-graphics) (float x) (float y) (float z))) - -(defn - ^{:requires-bindings false - :processing-name "month()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - month - "Returns the current month as a value from 1 - 12." - [] - #?(:clj (PApplet/month) - :cljs (.month (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "mouseButton" - :category "Input" - :subcategory "Mouse" - :added "1.0"} - mouse-button - "The value of the system variable mouseButton is either :left, :right, - or :center depending on which button is pressed. nil if no button pressed" - [] - (let [button-code (.-mouseButton (ap/current-applet))] - #?(:clj - (condp = button-code - PConstants/LEFT :left - PConstants/RIGHT :right - PConstants/CENTER :center - nil) - - :cljs - (condp = button-code - 37 :left - 39 :right - 3 :center - nil)))) - -(defn - ^{:requires-bindings true - :processing-name "mousePressed" - :category "Input" - :subcategory "Mouse" - :added "1.0"} - mouse-pressed? - "Variable storing if a mouse button is pressed. The value of the - system variable mousePressed is true if a mouse button is pressed - and false if a button is not pressed." - [] - #?(:clj (.-mousePressed (ap/current-applet)) - :cljs (.-__mousePressed (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "mouseX" - :category "Input" - :subcategory "Mouse" - :added "1.0"} - mouse-x - "Current horizontal coordinate of the mouse." - [] - (.-mouseX (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "mouseY" - :category "Input" - :subcategory "Mouse" - :added "1.0"} - mouse-y - "Current vertical coordinate of the mouse." - [] - (.-mouseY (ap/current-applet))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "noClip()" - :category "Rendering" - :subcategory nil - :added "2.4.0"} - no-clip - "Disables the clipping previously started by the clip() function." - [] - (.noClip (current-graphics)))) - -(defn - ^{:requires-bindings true - :processing-name "noCursor()" - :category "Environment" - :subcategory nil - :added "1.0"} - no-cursor - "Hides the cursor from view. Will not work when running the in full - screen (Present) mode." - [] - (.noCursor (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "noFill()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - no-fill - "Disables filling geometry. If both no-stroke and no-fill are called, - nothing will be drawn to the screen." [] - (.noFill (current-graphics)) - #?(:cljs (aset (current-graphics) no-fill-prop true))) - -(defn - ^{:requires-bindings true - :processing-name "random2d()" - :category "Math" - :subcategory "Random" - :added "2.6"} - random-2d - "Returns a new 2D unit vector in a random direction" [] - (let [theta (.random (ap/current-applet) TWO-PI)] - [(Math/cos theta) (Math/sin theta)])) - -(defn - ^{:requires-bindings true - :processing-name "random3d()" - :category "Math" - :subcategory "Random" - :added "2.6"} - random-3d - "Returns a new 3D unit vector in a random direction" [] - (let [theta (.random (ap/current-applet) TWO-PI) - phi (.random (ap/current-applet) (- HALF-PI) HALF-PI) - vx (* (Math/cos theta) (Math/sin phi)) - vy (* (Math/sin theta) (Math/sin phi)) - vz (Math/cos phi)] - [vx vy vz])) - -(defn - ^{:requires-bindings true - :processing-name "noise()" - :category "Math" - :subcategory "Random" - :added "1.0"} - noise - "Returns the Perlin noise value at specified coordinates. Perlin - noise is a random sequence generator producing a more natural - ordered, harmonic succession of numbers compared to the standard - random function. It was invented by Ken Perlin in the 1980s and - been used since in graphical applications to produce procedural - textures, natural motion, shapes, terrains etc. - - The main difference to the random function is that Perlin noise is - defined in an infinite n-dimensional space where each pair of - coordinates corresponds to a fixed semi-random value (fixed only for - the lifespan of the program). The resulting value will always be - between 0.0 and 1.0. Processing can compute 1D, 2D and 3D noise, - depending on the number of coordinates given. The noise value can be - animated by moving through the noise space and the 2nd and 3rd - dimensions can also be interpreted as time. - - The actual noise is structured similar to an audio signal, in - respect to the function's use of frequencies. Similar to the concept - of harmonics in physics, perlin noise is computed over several - octaves which are added together for the final result. - - Another way to adjust the character of the resulting sequence is the - scale of the input coordinates. As the function works within an - infinite space the value of the coordinates doesn't matter as such, - only the distance between successive coordinates does (eg. when - using noise within a loop). As a general rule the smaller the - difference between coordinates, the smoother the resulting noise - sequence will be. Steps of 0.005-0.03 work best for most - applications, but this will differ depending on use." - ([x] (.noise (ap/current-applet) (float x))) - ([x y] (.noise (ap/current-applet) (float x) (float y))) - ([x y z] (.noise (ap/current-applet) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "noiseDetail()" - :category "Math" - :subcategory "Random" - :added "1.0"} - noise-detail - "Adjusts the character and level of detail produced by the Perlin - noise function. Similar to harmonics in physics, noise is computed - over several octaves. Lower octaves contribute more to the output - signal and as such define the overal intensity of the noise, whereas - higher octaves create finer grained details in the noise - sequence. By default, noise is computed over 4 octaves with each - octave contributing exactly half than its predecessor, starting at - 50% strength for the 1st octave. This falloff amount can be changed - by adding an additional function parameter. Eg. a falloff factor of - 0.75 means each octave will now have 75% impact (25% less) of the - previous lower octave. Any value between 0.0 and 1.0 is valid, - however note that values greater than 0.5 might result in greater - than 1.0 values returned by noise. - - By changing these parameters, the signal created by the noise - function can be adapted to fit very specific needs and - characteristics." - ([octaves] (.noiseDetail (ap/current-applet) (int octaves))) - ([octaves falloff] (.noiseDetail (ap/current-applet) (int octaves) (float falloff)))) - -(defn - ^{:requires-bindings true - :processing-name "noiseSeed()" - :category "Math" - :subcategory "Random" - :added "1.0"} - noise-seed - "Sets the seed value for noise. By default, noise produces different - results each time the program is run. Set the value parameter to a - constant to return the same pseudo-random numbers each time the - software is run." - [val] - (.noiseSeed (ap/current-applet) (int val))) - -(defn - ^{:requires-bindings true - :processing-name "noLights()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - no-lights - "Disable all lighting. Lighting is turned off by default and enabled - with the lights fn. This function can be used to disable lighting so - that 2D geometry (which does not require lighting) can be drawn - after a set of lighted 3D geometry." - [] - (.noLights (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "noLoop()" - :category "Structure" - :subcategory nil - :added "1.0"} - no-loop - "Stops Processing from continuously executing the code within - draw. If start-loop is called, the code in draw will begin to run - continuously again. If using no-loop in setup, it should be the last - line inside the block. - - When no-loop is used, it's not possible to manipulate or access the - screen inside event handling functions such as mouse-pressed or - key-pressed. Instead, use those functions to call redraw or - loop which will run draw, which can update the screen - properly. This means that when no-loop has been called, no drawing - can happen, and functions like save-frame may not be used. - - Note that if the sketch is resized, redraw will be called to - update the sketch, even after no-oop has been - specified. Otherwise, the sketch would enter an odd state until - loop was called." - [] - (.noLoop (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "norm()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - norm - "Normalize a value to exist between 0 and 1 (inclusive)." - [val start stop] - #?(:clj (PApplet/norm (float val) (float start) (float stop)) - :cljs (.norm (ap/current-applet) val start stop))) - -(defn - ^{:requires-bindings true - :processing-name "normal()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - normal - "Sets the current normal vector. This is for drawing three - dimensional shapes and surfaces and specifies a vector perpendicular - to the surface of the shape which determines how lighting affects - it. Processing attempts to automatically assign normals to shapes, - but since that's imperfect, this is a better option when you want - more control. This function is identical to glNormal3f() in OpenGL." - [nx ny nz] - (.normal (current-graphics) (float nx) (float ny) (float nz))) - -(defn - ^{:requires-bindings true - :processing-name "noSmooth()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - no-smooth - "Draws all geometry with jagged (aliased) edges. Must be called inside - :settings handler." - [] (.noSmooth (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "noStroke()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - no-stroke - "Disables drawing the stroke (outline). If both no-stroke and - no-fill are called, nothing will be drawn to the screen." - [] - (.noStroke (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "noTint()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - no-tint - "Removes the current fill value for displaying images and reverts to - displaying images with their original hues." - [] - (.noTint (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "ortho()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - ortho - "Sets an orthographic projection and defines a parallel clipping - volume. All objects with the same dimension appear the same size, - regardless of whether they are near or far from the camera. The - parameters to this function specify the clipping volume where left - and right are the minimum and maximum x values, top and bottom are - the minimum and maximum y values, and near and far are the minimum - and maximum z values. If no parameters are given, the default is - used: (ortho 0 width 0 height -10 10)" - ([] (.ortho (current-graphics))) - ([left right bottom top] - (.ortho (current-graphics) (float left) (float right) (float bottom) (float top))) - ([left right bottom top near far] - (.ortho (current-graphics) (float left) (float right) (float bottom) (float top) (float near) (float far)))) - -(defn - ^{:requires-bindings true - :processing-name "perspective()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - perspective - "Sets a perspective projection applying foreshortening, making - distant objects appear smaller than closer ones. The parameters - define a viewing volume with the shape of truncated pyramid. Objects - near to the front of the volume appear their actual size, while - farther objects appear smaller. This projection simulates the - perspective of the world more accurately than orthographic - projection. The version of perspective without parameters sets the - default perspective and the version with four parameters allows the - programmer to set the area precisely. The default values are: - perspective(PI/3.0, width/height, cameraZ/10.0, cameraZ*10.0) where - cameraZ is ((height/2.0) / tan(PI*60.0/360.0));" - ([] (.perspective (current-graphics))) - ([fovy aspect z-near z-far] - (.perspective (current-graphics) (float fovy) (float aspect) - (float z-near) (float z-far)))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "pixelDensity()" - :category "Environment" - :subcategory nil - :added "2.4.0"} - pixel-density - "It makes it possible for Processing to render using all of the pixels - on high resolutions screens like Apple Retina displays and Windows - High-DPI displays. Possible values 1 or 2. Must be called only from - :settings handler. To get density of the current screen you can use - (display-density) function." - [density] - (.pixelDensity (ap/current-applet) density))) - -(defn - ^{:requires-bindings true - :processing-name "pixels[]" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - pixels - "Array containing the values for all the pixels in the display - window or image. This array is therefore the size of the display window. If - this array is modified, the update-pixels fn must be called to update - the changes. Calls .loadPixels before obtaining the pixel array." - ([] (pixels (current-graphics))) - - #?(:clj - ([^PImage img] - (.loadPixels img) - (.-pixels img)) - - :cljs - ([img] - (.loadPixels img) - (let [pix-array (.toArray (.-pixels img))] - (set! (.-stored-pix-array img) pix-array) - pix-array)))) - -(defn - ^{:requires-bindings true - :processing-name "pmouseX" - :category "Input" - :subcategory "Mouse" - :added "1.0"} - pmouse-x - "Horizontal coordinate of the mouse in the previous frame" - [] - (.-pmouseX (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "pmouseY" - :category "Input" - :subcategory "Mouse" - :added "1.0"} - pmouse-y - "Vertical coordinate of the mouse in the previous frame" - [] - (.-pmouseY (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "point()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - point - "Draws a point, a coordinate in space at the dimension of one - pixel. The first parameter is the horizontal value for the point, - the second value is the vertical value for the point, and the - optional third value is the depth value. Drawing this shape in 3D - using the z parameter requires the :P3D or :opengl renderer to be - used." - ([x y] (.point (current-graphics) (float x)(float y))) - ([x y z] (.point (current-graphics) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "pointLight()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - point-light - "Adds a point light. Lights need to be included in the draw() to - remain persistent in a looping program. Placing them in the setup() - of a looping program will cause them to only have an effect the - first time through the loop. The affect of the r, g, and b - parameters is determined by the current color mode. The x, y, and z - parameters set the position of the light" - [r g b x y z] - (.pointLight (current-graphics) (float r) (float g) (float b) (float x) (float y) (float z))) - -(defn - ^{:requires-bindings true - :processing-name "popMatrix()" - :category "Transform" - :subcategory nil - :added "1.0"} - pop-matrix - "Pops the current transformation matrix off the matrix - stack. Understanding pushing and popping requires understanding the - concept of a matrix stack. The push-matrix fn saves the current - coordinate system to the stack and pop-matrix restores the prior - coordinate system. push-matrix and pop-matrix are used in conjuction - with the other transformation methods and may be embedded to control - the scope of the transformations." - [] - (.popMatrix (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "popStyle()" - :category "Structure" - :subcategory nil - :added "1.0"} - pop-style - "Restores the prior settings on the 'style stack'. Used in - conjunction with push-style. Together they allow you to change the - style settings and later return to what you had. When a new style is - started with push-style, it builds on the current style information. - The push-style and pop-style functions can be nested to provide more - control" - [] - (.popStyle (current-graphics))) - -(defn - ^{:requires-bindings false - :processing-name "pow()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - pow - "Facilitates exponential expressions. The pow() function is an - efficient way of multiplying numbers by themselves (or their - reciprocal) in large quantities. For example, (pow 3 5) is - equivalent to the expression (* 3 3 3 3 3) and (pow 3 -5) is - equivalent to (/ 1 (* 3 3 3 3 3))." - [num exponent] - #?(:clj (PApplet/pow (float num) (float exponent)) - :cljs (.pow (ap/current-applet) num exponent))) - -(defn - ^{:requires-bindings true - :processing-name "printCamera()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - print-camera - "Prints the current camera matrix to std out. Useful for debugging." - [] - (.printCamera (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "printMatrix()" - :category "Transform" - :subcategory nil - :added "1.0"} - print-matrix - "Prints the current matrix to std out. Useful for debugging." - [] - (.printMatrix (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "printProjection()" - :category "Lights, Camera" - :subcategory "Camera" - :added "1.0"} - print-projection - "Prints the current projection matrix to std out. Useful for - debugging" - [] - (.printProjection (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "pushMatrix()" - :category "Transform" - :subcategory nil - :added "1.0"} - push-matrix - "Pushes the current transformation matrix onto the matrix - stack. Understanding push-matrix and pop-matrix requires - understanding the concept of a matrix stack. The push-matrix - function saves the current coordinate system to the stack and - pop-matrix restores the prior coordinate system. push-matrix and - pop-matrix are used in conjuction with the other transformation - methods and may be embedded to control the scope of the - transformations." - [] - (.pushMatrix (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "pushStyle()" - :category "Structure" - :subcategory nil - :added "1.0"} - push-style - "Saves the current style settings onto a 'style stack'. Use with - pop-style which restores the prior settings. Note that these - functions are always used together. They allow you to change the - style settings and later return to what you had. When a new style is - started with push-style, it builds on the current style - information. The push-style and pop-style fns can be embedded to - provide more control. - - The style information controlled by the following functions are - included in the style: fill, stroke, tint, stroke-weight, - stroke-cap, stroke-join, image-mode, rect-mode, ellipse-mode, - shape-mode, color-mode, text-align, text-font, text-mode, text-size, - text-leading, emissive, specular, shininess, and ambient" - [] - (.pushStyle (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "quad()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - quad - "A quad is a quadrilateral, a four sided polygon. It is similar to a - rectangle, but the angles between its edges are not constrained to - be ninety degrees. The first pair of parameters (x1,y1) sets the - first vertex and the subsequent pairs should proceed clockwise or - counter-clockwise around the defined shape." - [x1 y1 x2 y2 x3 y3 x4 y4] - (.quad (current-graphics) - (float x1) (float y1) - (float x2) (float y2) - (float x3) (float y3) - (float x4) (float y4))) - -(defn - ^{:requires-bindings true - :processing-name "quadraticVertex()" - :category "Shape" - :subcategory "Vertex" - :added "2.0"} - quadratic-vertex - "Specifies vertex coordinates for quadratic Bezier curves. Each call to - quadratic-vertex defines the position of one control points and one - anchor point of a Bezier curve, adding a new segment to a line or shape. - The first time quadratic-vertex is used within a begin-shape call, it - must be prefaced with a call to vertex to set the first anchor point. - This function must be used between begin-shape and end-shape and only - when there is no MODE parameter specified to begin-shape. Using the 3D - version requires rendering with :p3d." - ([cx cy x3 y3] - (.quadraticVertex (current-graphics) (float cx) (float cy) (float x3) (float y3))) - ([cx cy cz x3 y3 z3] - (.quadraticVertex (current-graphics) (float cx) (float cy) (float cz) (float x3) (float y3) (float z3)))) - -(defn - ^{:requires-bindings false - :processing-name "radians()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - radians - "Converts a degree measurement to its corresponding value in - radians. Radians and degrees are two ways of measuring the same - thing. There are 360 degrees in a circle and 2*PI radians in a - circle. For example, 90° = PI/2 = 1.5707964. All trigonometric - methods in Processing require their parameters to be specified in - radians." - [degrees] - #?(:clj (PApplet/radians (float degrees)) - :cljs (.radians (ap/current-applet) degrees))) - -(defn - ^{:requires-bindings true - :processing-name "random()" - :category "Math" - :subcategory "Random" - :added "1.0"} - random - "Generates random numbers. Each time the random function is called, - it returns an unexpected value within the specified range. If one - parameter is passed to the function it will return a float between - zero and the value of the high parameter. The function call (random - 5) returns values between 0 and 5 (starting at zero, up to but not - including 5). If two parameters are passed, it will return a float - with a value between the parameters. The function call - (random -5 10.2) returns values starting at -5 up to (but not - including) 10.2." - ([max] (.random (ap/current-applet) (float max))) - ([min max] (.random (ap/current-applet) (float min) (float max)))) - -(defn - ^{:requires-bindings true - :processing-name "randomGaussian()" - :category "Math" - :subcategory "Random" - :added "2.0"} - random-gaussian - "Returns a float from a random series of numbers having a mean of 0 and - standard deviation of 1. Each time the randomGaussian() function is called, - it returns a number fitting a Gaussian, or normal, distribution. - There is theoretically no minimum or maximum value that randomGaussian() - might return. Rather, there is just a very low probability that values far - from the mean will be returned; and a higher probability that numbers near - the mean will be returned. ." - [] - (.randomGaussian (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "randomSeed()" - :category "Math" - :subcategory "Random" - :added "1.0"} - random-seed - "Sets the seed value for random. By default, random produces - different results each time the program is run. Set the value - parameter to a constant to return the same pseudo-random numbers - each time the software is run." - [w] - (.randomSeed (ap/current-applet) (float w))) - -(defn - ^{:requires-bindings true - :processing-name "key" - :category "Input" - :subcategory "Keyboard" - :added "1.0"} - raw-key - "Contains the value of the most recent key on the keyboard that was - used (either pressed or released). - - For non-ASCII keys, use the keyCode variable. The keys included in - the ASCII specification (BACKSPACE, TAB, ENTER, RETURN, ESC, and - DELETE) do not require checking to see if they key is coded, and you - should simply use the key variable instead of keyCode If you're - making cross-platform projects, note that the ENTER key is commonly - used on PCs and Unix and the RETURN key is used instead on - Macintosh. Check for both ENTER and RETURN to make sure your program - will work for all platforms." - [] - (.-key (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "rect()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - rect - "Draws a rectangle to the screen. A rectangle is a four-sided shape - with every angle at ninety degrees. By default, the first two - parameters set the location of the upper-left corner, the third - sets the width, and the fourth sets the height. These parameters - may be changed with rect-mode. - - To draw a rounded rectangle, add a fifth parameter, which is used as - the radius value for all four corners. To use a different radius value - for each corner, include eight parameters." - ([x y width height] - (.rect (current-graphics) (float x) (float y) (float width) (float height))) - ([x y width height r] - (.rect (current-graphics) (float x) (float y) (float width) (float height) (float r))) - ([x y width height top-left-r top-right-r bottom-right-r bottom-left-r] - (.rect (current-graphics) (float x) (float y) (float width) (float height) - (float top-left-r) (float top-right-r) (float bottom-right-r) (float bottom-left-r)))) - -(defn - ^{:requires-bindings true - :processing-name "rectMode()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - rect-mode - "Modifies the location from which rectangles draw. The default mode - is :corner. Available modes are: - - - :corner - Specifies the location to be the upper left corner of the - shape and uses the third and fourth parameters of rect to - specify the width and height. - - :corners - Uses the first and second parameters of rect to set the - location of one corner and uses the third and fourth - parameters to set the opposite corner. - - :center - Draws the image from its center point and uses the third - and forth parameters of rect to specify the image's width - and height. - - :radius - Draws the image from its center point and uses the third - and forth parameters of rect() to specify half of the - image's width and height." - - [mode] - (let [mode (u/resolve-constant-key mode rect-modes)] - (.rectMode (current-graphics) (int mode)))) - -(defn - ^{:requires-bindings true - :processing-name "red()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - red - "Extracts the red value from a color, scaled to match current color-mode." - [c] - (.red (current-graphics) (unchecked-int c))) - -(defn - ^{:requires-bindings true - :processing-name "redraw()" - :category "Structure" - :subcategory nil - :added "1.0"} - redraw - "Executes the code within the draw fn one time. This functions - allows the program to update the display window only when necessary, - for example when an event registered by mouse-pressed or - key-pressed occurs. - - In structuring a program, it only makes sense to call redraw - within events such as mouse-pressed. This is because redraw does - not run draw immediately (it only sets a flag that indicates an - update is needed). - - Calling redraw within draw has no effect because draw is - continuously called anyway." - [] - (.redraw (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "requestImage()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - request-image - "This function load images on a separate thread so that your sketch - does not freeze while images load during setup. While the image is - loading, its width and height will be 0. If an error occurs while - loading the image, its width and height will be set to -1. You'll - know when the image has loaded properly because its width and height - will be greater than 0. Asynchronous image loading (particularly - when downloading from a server) can dramatically improve - performance." - [filename] (.requestImage (ap/current-applet) (str filename))) - -(defn - ^{:requires-bindings true - :processing-name "resetMatrix()" - :category "Transform" - :subcategory nil - :added "1.0"} - reset-matrix - "Replaces the current matrix with the identity matrix. The - equivalent function in OpenGL is glLoadIdentity()" - [] - (.resetMatrix (current-graphics))) - -#?(:clj - (def ^{:private true} - shader-modes {:points PApplet/POINTS - :lines PApplet/LINES - :triangles PApplet/TRIANGLES})) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "resetShader()" - :category "Rendering" - :subcategory "Shaders" - :added "2.0"} - reset-shader - "Restores the default shaders. Code that runs after (reset-shader) will - not be affected by previously defined shaders. Optional 'kind' parameter - - type of shader, either :points, :lines, or :triangles" - ([] (.resetShader (current-graphics))) - ([kind] - (let [mode (u/resolve-constant-key kind shader-modes)] - (.resetShader (current-graphics) mode))))) - -(defn - ^{:requires-bindings true - :processing-name "resize()" - :category "Image" - :processing-link "http://processing.org/reference/PImage_resize_.html" - :added "2.1.0"} - resize - "Resize the image to a new width and height. - To make the image scale proportionally, use 0 as the value for the wide or - high parameter. For instance, to make the width of an image 150 pixels, - and change the height using the same proportion, use resize(150, 0). - - Even though a PGraphics is technically a PImage, it is not possible - to rescale the image data found in a PGraphics. - (It's simply not possible to do this consistently across renderers: - technically infeasible with P3D, or what would it even do with PDF?) - If you want to resize PGraphics content, first get a copy of its image data - using the get() method, and call resize() on the PImage that is returned." - [^PImage img w h] - (.resize img w h)) - -(defn - ^{:requires-bindings true - :processing-name "rotate()" - :category "Transform" - :subcategory nil - :added "1.0"} - rotate - "Rotates a shape the amount specified by the angle parameter. Angles - should be specified in radians (values from 0 to TWO-PI) or - converted to radians with the radians function. - - Objects are always rotated around their relative position to the - origin and positive numbers rotate objects in a clockwise - direction. Transformations apply to everything that happens after - and subsequent calls to the function accumulates the effect. For - example, calling (rotate HALF-PI) and then (rotate HALF-PI) is the - same as (rotate PI). All tranformations are reset when draw begins - again. - - Technically, rotate multiplies the current transformation matrix by - a rotation matrix. This function can be further controlled by the - push-matrix and pop-matrix." - ([angle] (.rotate (current-graphics) (float angle))) - ([angle vx vy vz] (.rotate (current-graphics) (float angle) - (float vx) (float vy) (float vz)))) - -(defn - ^{:requires-bindings true - :processing-name "rotateX()" - :category "Transform" - :subcategory nil - :added "1.0"} - rotate-x - "Rotates a shape around the x-axis the amount specified by the angle - parameter. Angles should be specified in radians (values from 0 to - (* PI 2)) or converted to radians with the radians function. Objects - are always rotated around their relative position to the origin and - positive numbers rotate objects in a counterclockwise - direction. Transformations apply to everything that happens after - and subsequent calls to the function accumulates the effect. For - example, calling (rotate-x HALF-PI) and then (rotate-x HALF-PI) is - the same as (rotate-x PI). If rotate-x is called within the draw fn, - the transformation is reset when the loop begins again. This - function requires either the :p3d or :opengl renderer." - [angle] - (.rotateX (current-graphics) (float angle))) - -(defn - ^{:requires-bindings true - :processing-name "rotateY()" - :category "Transform" - :subcategory nil - :added "1.0"} - rotate-y - "Rotates a shape around the y-axis the amount specified by the angle - parameter. Angles should be specified in radians (values from 0 - to (* PI 2)) or converted to radians with the radians function. - Objects are always rotated around their relative position to the - origin and positive numbers rotate objects in a counterclockwise - direction. Transformations apply to everything that happens after - and subsequent calls to the function accumulates the effect. For - example, calling (rotate-y HALF-PI) and then (rotate-y HALF-PI) is - the same as (rotate-y PI). If rotate-y is called within the draw fn, - the transformation is reset when the loop begins again. This - function requires either the :p3d or :opengl renderer." - [angle] - (.rotateY (current-graphics) (float angle))) - -(defn - ^{:requires-bindings true - :processing-name "rotateZ()" - :category "Transform" - :subcategory nil - :added "1.0"} - rotate-z - "Rotates a shape around the z-axis the amount specified by the angle - parameter. Angles should be specified in radians (values from 0 - to (* PI 2)) or converted to radians with the radians function. - Objects are always rotated around their relative position to the - origin and positive numbers rotate objects in a counterclockwise - direction. Transformations apply to everything that happens after - and subsequent calls to the function accumulates the effect. For - example, calling (rotate-z HALF-PI) and then (rotate-z HALF-PI) is - the same as (rotate-z PI). If rotate-y is called within the draw fn, - the transformation is reset when the loop begins again. This - function requires either the :p3d or :opengl renderer." - [angle] - (.rotateZ (current-graphics) (float angle))) - -(defn - ^{:requires-bindings false - :processing-name "round()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - round - "Calculates the integer closest to the value parameter. For example, - (round 9.2) returns the value 9." - [val] - #?(:clj (PApplet/round (float val)) - :cljs (.round (ap/current-applet) val))) - -(defn - ^{:requires-bindings true - :processing-name "saturation()" - :category "Color" - :subcategory "Creating & Reading" - :added "1.0"} - saturation - "Extracts the saturation value from a color." - [c] - (.saturation (current-graphics) (unchecked-int c))) - -(defn - ^{:requires-bindings true - :processing-name "save()" - :category "Output" - :subcategory "Image" - :added "1.0"} - save - "Saves an image from the display window. Images are saved in TIFF, - TARGA, JPEG, and PNG format depending on the extension within the - filename parameter. For example, image.tif will have a TIFF image - and image.png will save a PNG image. If no extension is included in - the filename, the image will save in TIFF format and .tif will be - added to the name. All images saved from the main drawing window - will be opaque. To save images without a background, use - create-graphics." - [filename] - (.save (current-graphics) (str filename))) - -(defn - ^{:requires-bindings true - :processing-name "saveFrame()" - :category "Output" - :subcategory "Image" - :added "1.0"} - save-frame - "Saves an image identical to the current display window as a - file. May be called multple times - each file saved will have a - unique name. Name and image formate may be modified by passing a - string parameter of the form \"foo-####.ext\" where foo- can be any - arbitrary string, #### will be replaced with the current frame id - and .ext is one of .tiff, .targa, .png, .jpeg or .jpg - - Examples: - (save-frame) - (save-frame \"pretty-pic-####.jpg\")" - ([] (.saveFrame (ap/current-applet))) - ([name] (.saveFrame (ap/current-applet) (str name)))) - -(defn - ^{:requires-bindings true - :processing-name "scale()" - :category "Transform" - :subcategory nil - :added "1.0"} - scale - "Increases or decreases the size of a shape by expanding and - contracting vertices. Objects always scale from their relative - origin to the coordinate system. Scale values are specified as - decimal percentages. For example, the function call (scale 2) - increases the dimension of a shape by 200%. Transformations apply to - everything that happens after and subsequent calls to the function - multiply the effect. For example, calling (scale 2) and then - (scale 1.5) is the same as (scale 3). If scale is called within - draw, the transformation is reset when the loop begins again. Using - this fuction with the z parameter requires specfying :p3d or :opengl - as the renderer. This function can be further controlled by - push-matrix and pop-matrix." - ([s] (.scale (current-graphics) (float s))) - ([sx sy] (.scale (current-graphics) (float sx) (float sy))) - ([sx sy sz] (.scale (current-graphics) (float sx) (float sy) (float sz)))) - -#?(:clj - (defn- ^java.awt.Dimension current-screen - [] - (let [default-toolkit (java.awt.Toolkit/getDefaultToolkit)] - (.getScreenSize default-toolkit)))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name nil - :category "Environment" - :subcategory nil - :added "1.0"} - screen-width - "Returns the width of the main screen in pixels." - [] - (.width (current-screen)))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name nil - :category "Environment" - :subcategory nil - :added "1.0"} - screen-height - "Returns the height of the main screen in pixels." - [] - (.height (current-screen)))) - -(defn - ^{:requires-bindings true - :processing-name "screenX()" - :category "Lights, Camera" - :subcategory "Coordinates" - :added "1.0"} - screen-x - "Takes a three-dimensional x, y, z position and returns the x value - for where it will appear on a (two-dimensional) screen, once - affected by translate, scale or any other transformations" - ([x y] (.screenX (current-graphics) (float x) (float y))) - ([x y z] (.screenX (current-graphics) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "screenY()" - :category "Lights, Camera" - :subcategory "Coordinates" - :added "1.0"} - screen-y - "Takes a three-dimensional x, y, z position and returns the y value - for where it will appear on a (two-dimensional) screen, once - affected by translate, scale or any other transformations" - ([x y] (.screenY (current-graphics) (float x) (float y))) - ([x y z] (.screenY (current-graphics) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "screenZ()" - :category "Lights, Camera" - :subcategory "Coordinates" - :added "1.0"} - screen-z - "Given an x, y, z coordinate, returns its z value. - This value can be used to determine if an x, y, z coordinate is in - front or in back of another (x, y, z) coordinate. The units are - based on how the zbuffer is set up, and don't relate to anything - 'real'. They're only useful for in comparison to another value - obtained from screen-z, or directly out of the zbuffer" - [x y z] - (.screenZ (current-graphics) (float x) (float y) (float z))) - -(defn - ^{:requires-bindings false - :processing-name "second()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - seconds - "Returns the current second as a value from 0 - 59." - [] - #?(:clj (PApplet/second) - :cljs (.second (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "set()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - set-pixel - "Changes the color of any pixel in the display window. The x and y - parameters specify the pixel to change and the color parameter - specifies the color value. The color parameter is affected by the - current color mode (the default is RGB values from 0 to 255). - - Setting the color of a single pixel with (set x, y) is easy, but not - as fast as putting the data directly into pixels[]. - - This function ignores imageMode(). - - Due to what appears to be a bug in Apple's Java implementation, the - point() and set() methods are extremely slow in some circumstances - when used with the default renderer. Using :p2d or :p3d will fix the - problem. Grouping many calls to point or set-pixel together can also - help. (Bug 1094)" - ([x y c] (set-pixel (current-graphics) x y c)) - ([^PImage img x y c] - (.set img (int x) (int y) (int c)))) - -(defn - ^{:requires-bindings true - :processing-name "set()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - set-image - "Writes an image directly into the display window. The x and y - parameters define the coordinates for the upper-left corner of the - image." - [x y ^PImage src] - (.set (current-graphics) (int x) (int y) src)) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "shader()" - :category "Rendering" - :subcategory "Shaders" - :added "2.0"} - shader - "Applies the shader specified by the parameters. It's compatible with the :p2d - and :p3drenderers, but not with the default :java2d renderer. Optional 'kind' - parameter - type of shader, either :points, :lines, or :triangles" - ([shader] (.shader (current-graphics) shader)) - ([shader kind] - (let [mode (u/resolve-constant-key kind shader-modes)] - (.shader (current-graphics) shader mode))))) - -(defn - ^{:requires-bindings true - :processing-name "shape()" - :category "Shape" - :subcategory "Loading & Displaying" - :added "1.0"} - shape - "Displays shapes to the screen. The shapes must have been loaded - with load-shape. Processing currently works with SVG shapes - only. The sh parameter specifies the shape to display and the x and - y parameters define the location of the shape from its upper-left - corner. The shape is displayed at its original size unless the width - and height parameters specify a different size. The shape-mode - fn changes the way the parameters work. A call to - (shape-mode :corners), for example, will change the width and height - parameters to define the x and y values of the opposite corner of - the shape. - - Note complex shapes may draw awkwardly with the renderers :p2d, :p3d, and - :opengl. Those renderers do not yet support shapes that have holes - or complicated breaks." - ([^PShape sh] (.shape (current-graphics) sh)) - ([^PShape sh x y] (.shape (current-graphics) sh (float x) (float y))) - ([^PShape sh x y width height] (.shape (current-graphics) sh (float x) (float y) (float width) (float height)))) - -(defn - ^{:requires-bindings true - :processing-name "shearX()" - :category "Transform" - :subcategory nil - :added "1.0"} - shear-x - "Shears a shape around the x-axis the amount specified by the angle - parameter. Angles should be specified in radians (values from 0 to - PI*2) or converted to radians with the radians() function. Objects - are always sheared around their relative position to the origin and - positive numbers shear objects in a clockwise direction. - Transformations apply to everything that happens after and - subsequent calls to the function accumulates the effect. For - example, calling (shear-x (/ PI 2)) and then (shear-x (/ PI 2)) is - the same as (shear-x PI). If shear-x is called within the draw fn, - the transformation is reset when the loop begins again. This - function works in P2D or JAVA2D mode. - - Technically, shear-x multiplies the current transformation matrix - by a rotation matrix. This function can be further controlled by the - push-matrix and pop-matrix fns." - [angle] - (.shearX (current-graphics) (float angle))) - -(defn - ^{:requires-bindings true - :processing-name "shearY()" - :category "Transform" - :subcategory nil - :added "1.0"} - shear-y - "Shears a shape around the y-axis the amount specified by the angle - parameter. Angles should be specified in radians (values from 0 to - PI*2) or converted to radians with the radians() function. Objects - are always sheared around their relative position to the origin and - positive numbers shear objects in a clockwise direction. - Transformations apply to everything that happens after and - subsequent calls to the function accumulates the effect. For - example, calling (shear-y (/ PI 2)) and then (shear-y (/ PI 2)) is - the same as (shear-y PI). If shear-y is called within the draw fn, - the transformation is reset when the loop begins again. This - function works in P2D or JAVA2D mode. - - Technically, shear-y multiplies the current transformation matrix - by a rotation matrix. This function can be further controlled by the - push-matrix and pop-matrix fns." - [angle] - (.shearY (current-graphics) (float angle))) - -(defn ^{:requires-bindings true - :processing-name "shapeMode()" - :category "Shape" - :subcategory "Loading & Displaying" - :added "1.0"} - shape-mode - "Modifies the location from which shapes draw. Available modes are - :corner, :corners and :center. Default is :corner. - - :corner - specifies the location to be the upper left corner of the - shape and uses the third and fourth parameters of shape - to specify the width and height. - - :corners - uses the first and second parameters of shape to set - the location of one corner and uses the third and fourth - parameters to set the opposite corner. - - :center - draws the shape from its center point and uses the third - and forth parameters of shape to specify the width and - height. " - [mode] - (let [mode (u/resolve-constant-key mode p-shape-modes)] - (.shapeMode (current-graphics) (int mode)))) - -(defn - ^{:requires-bindings true - :processing-name "shininess()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - shininess - "Sets the amount of gloss in the surface of shapes. Used in - combination with ambient, specular, and emissive in setting - the material properties of shapes." - [shine] - (.shininess (current-graphics) (float shine))) - -(defn - ^{:requires-bindings false - :processing-name "sin()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - sin - "Calculates the sine of an angle. This function expects the values - of the angle parameter to be provided in radians (values from 0 to - 6.28). A float within the range -1 to 1 is returned." - [angle] - #?(:clj (PApplet/sin (float angle)) - :cljs (.sin (ap/current-applet) angle))) - -(defn - ^{:requires-bindings true - :processing-name "smooth()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - smooth - "Draws all geometry with smooth (anti-aliased) edges. This will slow - down the frame rate of the application, but will enhance the visual - refinement. - - Must be called inside :settings handler. - - The level parameter (int) increases the level of smoothness with the - P2D and P3D renderers. This is the level of over sampling applied to - the graphics buffer. The value '2' will double the rendering size - before scaling it down to the display size. This is called '2x - anti-aliasing.' The value 4 is used for 4x anti-aliasing and 8 is - specified for 8x anti-aliasing. If level is set to 0, it will disable - all smoothing; it's the equivalent of the function noSmooth(). - The maximum anti-aliasing level is determined by the hardware of the - machine that is running the software. - - Note that smooth will also improve image quality of resized images." - ([] (.smooth #?(:clj (ap/current-applet) - :cljs (current-graphics)))) - ([level] (.smooth #?(:clj (ap/current-applet) - :cljs (current-graphics)) - (int level)))) - -(defn - ^{:requires-bindings true - :processing-name "specular()" - :category "Lights, Camera" - :subcategory "Material Properties" - :added "1.0"} - specular - "Sets the specular color of the materials used for shapes drawn to - the screen, which sets the color of hightlights. Specular refers to - light which bounces off a surface in a perferred direction (rather - than bouncing in all directions like a diffuse light). Used in - combination with emissive, ambient, and shininess in setting - the material properties of shapes." - ([gray] (.specular (current-graphics) (float gray))) - ([x y z] (.specular (current-graphics) (float x) (float y) (float z)))) - -(defn - ^{:requires-bindings true - :processing-name "sphere()" - :category "Shape" - :subcategory "3D Primitives" - :added "1.0"} - sphere - "Generates a hollow ball made from tessellated triangles." - [radius] (.sphere (current-graphics) (float radius))) - -(defn - ^{:requires-bindings true - :processing-name "sphereDetail()" - :category "Shape" - :subcategory "3D Primitives" - :added "1.0"} - sphere-detail - "Controls the detail used to render a sphere by adjusting the number - of vertices of the sphere mesh. The default resolution is 30, which - creates a fairly detailed sphere definition with vertices every - 360/30 = 12 degrees. If you're going to render a great number of - spheres per frame, it is advised to reduce the level of detail using - this function. The setting stays active until sphere-detail is - called again with a new parameter and so should not be called prior - to every sphere statement, unless you wish to render spheres with - different settings, e.g. using less detail for smaller spheres or - ones further away from the camera. To controla the detail of the - horizontal and vertical resolution independently, use the version of - the functions with two parameters." - ([res] (.sphereDetail (current-graphics) (int res))) - ([ures vres] (.sphereDetail (current-graphics) (int ures) (int vres)))) - -(defn - ^{:requires-bindings true - :processing-name "spotLight()" - :category "Lights, Camera" - :subcategory "Lights" - :added "1.0"} - spot-light - "Adds a spot light. Lights need to be included in the draw to - remain persistent in a looping program. Placing them in the setup - of a looping program will cause them to only have an effect the - first time through the loop. The affect of the r, g, and b - parameters is determined by the current color mode. The x, y, and z - parameters specify the position of the light and nx, ny, nz specify - the direction or light. The angle parameter affects angle of the - spotlight cone." - ([r g b x y z nx ny nz angle concentration] - (.spotLight (current-graphics) r g b x y z nx ny nz angle concentration)) - ([[r g b] [x y z] [nx ny nz] angle concentration] - (.spotLight (current-graphics) r g b x y z nx ny nz angle concentration))) - -(defn - ^{:requires-bindings false - :processing-name "sq()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - sq - "Squares a number (multiplies a number by itself). The result is - always a positive number, as multiplying two negative numbers always - yields a positive result. For example, -1 * -1 = 1." - [a] - #?(:clj (PApplet/sq (float a)) - :cljs (.sq (ap/current-applet) a))) - -(defn - ^{:requires-bindings false - :processing-name "sqrt()" - :category "Math" - :subcategory "Calculation" - :added "1.0"} - sqrt - "Calculates the square root of a number. The square root of a number - is always positive, even though there may be a valid negative - root. The square root s of number a is such that (= a (* s s)) . It - is the opposite of squaring." - [a] - #?(:clj (PApplet/sqrt (float a)) - :cljs (.sqrt (ap/current-applet) a))) - -(defn - ^{:requires-bindings true - :processing-name "loop()" - :category "Structure" - :subcategory nil - :added "1.0"} - start-loop - "Causes Processing to continuously execute the code within - draw. If no-loop is called, the code in draw stops executing." - [] - (.loop (ap/current-applet))) - -(defn - ^{:requires-bindings true - :processing-name "stroke()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - stroke-float - "Sets the color used to draw lines and borders around - shapes. Converts all args to floats" - ([gray] (.stroke (current-graphics) (float gray))) - ([gray alpha] (.stroke (current-graphics) (float gray) (float alpha))) - ([x y z] (.stroke (current-graphics) (float x) (float y) (float z))) - ([x y z a] (.stroke (current-graphics) (float x) (float y) (float z) (float a)))) - -(defn - ^{:requires-bindings true - :processing-name "stroke()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - stroke-int - "Sets the color used to draw lines and borders around - shapes. Converts rgb to int and alpha to a float." - ([rgb] (.stroke (current-graphics) (unchecked-int rgb))) - ([rgb alpha] (.stroke (current-graphics) (unchecked-int rgb) (float alpha)))) - -(defn - ^{:requires-bindings true - :processing-name "stroke()" - :category "Color" - :subcategory "Setting" - :added "1.0"} - stroke - "Sets the color used to draw lines and borders around shapes. This - color is either specified in terms of the RGB or HSB color depending - on the current color-mode (the default color space is RGB, with - each value in the range from 0 to 255)." - ([rgb] - #?(:clj (if (u/int-like? rgb) (stroke-int rgb) (stroke-float rgb)) - :cljs (stroke-float rgb))) - - ([rgb alpha] - #?(:clj (if (u/int-like? rgb) (stroke-int rgb alpha) (stroke-float rgb alpha)) - :cljs (stroke-float rgb alpha))) - - ([x y z] (stroke-float x y z)) - ([x y z a] (stroke-float x y z a))) - -(defn - ^{:requires-bindings true - :processing-name "strokeCap()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - stroke-cap - "Sets the style for rendering line endings. These ends are either - squared, extended, or rounded and specified with the corresponding - parameters :square, :project, and :round. The default cap is :round." - [cap-mode] - (let [cap-mode (u/resolve-constant-key cap-mode stroke-cap-modes)] - (.strokeCap (current-graphics) - #?(:clj (int cap-mode) - :cljs (str cap-mode))))) - -(defn - ^{:requires-bindings true - :processing-name "strokeJoin()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - stroke-join - "Sets the style of the joints which connect line - segments. These joints are either mitered, beveled, or rounded and - specified with the corresponding parameters :miter, :bevel, and - :round. The default joint is :miter. - - This function is not available with the :p2d, :p3d, or :opengl - renderers." - [join-mode] - (let [join-mode (u/resolve-constant-key join-mode stroke-join-modes)] - (.strokeJoin (current-graphics) - #?(:clj (int join-mode) - :cljs (str join-mode))))) - -(defn - ^{:requires-bindings true - :processing-name "strokeWeight()" - :category "Shape" - :subcategory "Attributes" - :added "1.0"} - stroke-weight - "Sets the width of the stroke used for lines, points, and the border - around shapes. All widths are set in units of pixels. " - [weight] - (.strokeWeight (current-graphics) (float weight))) - -(defn - ^{:requires-bindings false - :processing-name "tan()" - :category "Math" - :subcategory "Trigonometry" - :added "1.0"} - tan - "Calculates the ratio of the sine and cosine of an angle. This - function expects the values of the angle parameter to be provided in - radians (values from 0 to PI*2). Values are returned in the range - infinity to -infinity." - [angle] - #?(:clj (PApplet/tan (float angle)) - :cljs (.tan (ap/current-applet) angle))) - -(defn - ^{:requires-bindings true - :category "Environment" - :subcategory nil - :added "1.5.0"} - target-frame-rate - "Returns the target framerate specified with the fn frame-rate" - [] - #?(:clj @(ap/target-frame-rate) - :cljs @(.-target-frame-rate (ap/current-applet)))) - -(defn- no-fill? - "Returns whether fill is disabled for current graphics." - [^PGraphics graphics] - #?(:clj (not (.-fill graphics)) - :cljs (true? (aget graphics no-fill-prop)))) - -(defn - ^{:requires-bindings true - :processing-name "text()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - text-char - "Draws a char to the screen in the specified position. See text fn - for more details." - ([c x y] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) (char c) (float x) (float y)))) - ([c x y z] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) (char c) (float x) (float y) (float z))))) - -(defn - ^{:requires-bindings true - :processing-name "text()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - text-num - "Draws a number to the screen in the specified position. See text fn - for more details." - ([num x y] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) (float num) (float x) (float y)))) - ([num x y z] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) (float num) (float x) (float y) (float z))))) - -(defn - ^{:requires-bindings true - :processing-name "text()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - text - "Draws text to the screen in the position specified by the x and y - parameters and the optional z parameter. A default font will be used - unless a font is set with the text-font fn. Change the color of the - text with the fill fn. The text displays in relation to the - text-align fn, which gives the option to draw to the left, right, and - center of the coordinates. - - The x1, y1, x2 and y2 parameters define a - rectangular area to display within and may only be used with string - data. For text drawn inside a rectangle, the coordinates are - interpreted based on the current rect-mode setting." - ([^String s x y] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) s (float x) (float y)))) - ([^String s x y z] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) s (float x) (float y) (float z)))) - ([^String s x1 y1 x2 y2] - (when-not (no-fill? (current-graphics)) - (.text (current-graphics) s (float x1) (float y1) (float x2) (float y2))))) - -(defn - ^{:requires-bindings true - :processing-name "textAlign()" - :category "Typography" - :subcategory "Attributes" - :added "1.0"} - text-align - "Sets the current alignment for drawing text. Available modes are: - - horizontal - :left, :center, and :right - vertical - :top, :bottom, :center, and :baseline - - An optional second parameter specifies the vertical alignment - mode. :baseline is the default. The :top and :center parameters are - straightforward. The :bottom parameter offsets the line based on the - current text-descent. For multiple lines, the final line will be - aligned to the bottom, with the previous lines appearing above it. - - When using text with width and height parameters, :baseline is - ignored, and treated as :top. (Otherwise, text would by default draw - outside the box, since :baseline is the default setting. :baseline is - not a useful drawing mode for text drawn in a rectangle.) - - The vertical alignment is based on the value of text-ascent, which - many fonts do not specify correctly. It may be necessary to use a - hack and offset by a few pixels by hand so that the offset looks - correct. To do this as less of a hack, use some percentage of - text-ascent or text-descent so that the hack works even if you - change the size of the font." - ([align] - (let [align (u/resolve-constant-key align horizontal-alignment-modes)] - (.textAlign (current-graphics) (int align)))) - ([align-x align-y] - (let [align-x (u/resolve-constant-key align-x horizontal-alignment-modes) - align-y (u/resolve-constant-key align-y vertical-alignment-modes)] - (.textAlign (current-graphics) (int align-x) (int align-y))))) - -(defn - ^{:requires-bindings true - :processing-name "textAscent()" - :category "Typography" - :subcategory "Metrics" - :added "1.0"} - text-ascent - "Returns the ascent of the current font at its current size. This - information is useful for determining the height of the font above - the baseline. For example, adding the text-ascent and text-descent - values will give you the total height of the line." - [] - (.textAscent (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "textDescent()" - :category "Typography" - :subcategory "Metrics" - :added "1.0"} - text-descent - "Returns descent of the current font at its current size. This - information is useful for determining the height of the font below - the baseline. For example, adding the text-ascent and text-descent - values will give you the total height of the line." - [] - (.textDescent (current-graphics))) - -(defn - ^{:requires-bindings true - :processing-name "textFont()" - :category "Typography" - :subcategory "Loading & Displaying" - :added "1.0"} - text-font - "Sets the current font that will be drawn with the text - function. Fonts must be loaded with load-font before it can be - used. This font will be used in all subsequent calls to the text - function. If no size parameter is input, the font will appear at its - original size until it is changed with text-size. - - Because fonts are usually bitmaped, you should create fonts at the - sizes that will be used most commonly. Using textFont without the - size parameter will result in the cleanest-looking text. - - With the default (JAVA2D) and PDF renderers, it's also possible to - enable the use of native fonts via the command - (hint :enable-native-fonts). This will produce vector text in JAVA2D - sketches and PDF output in cases where the vector data is available: - when the font is still installed, or the font is created via the - create-font fn" - ([^PFont font] (.textFont (current-graphics) font)) - ([^PFont font size] (.textFont (current-graphics) font (int size)))) - -(defn - ^{:requires-bindings true - :processing-name "textLeading()" - :category "Typography" - :subcategory "Attributes" - :added "1.0"} - text-leading - "Sets the spacing between lines of text in units of pixels. This - setting will be used in all subsequent calls to the text function." - [leading] - (.textLeading (current-graphics) (float leading))) - -(defn - ^{:requires-bindings true - :processing-name "textMode()" - :category "Typography" - :subcategory "Attributes" - :added "1.0"} - text-mode - "Sets the way text draws to the screen - available modes - are :model and :shape - - In the default configuration (the :model mode), it's possible to - rotate, scale, and place letters in two and three dimensional space. - - The :shape mode draws text using the glyph outlines of individual - characters rather than as textures. This mode is only supported with - the PDF and OPENGL renderer settings. With the PDF renderer, you - must specify the :shape text-mode before any other drawing occurs. - If the outlines are not available, then :shape will be ignored and - :model will be used instead. - - The :shape option in OPENGL mode can be combined with begin-raw to - write vector-accurate text to 2D and 3D output files, for instance - DXF or PDF. :shape is not currently optimized for OPENGL, so if - recording shape data, use :model until you're ready to capture the - geometry with begin-raw." - [mode] - (let [mode (u/resolve-constant-key mode text-modes)] - (.textMode (current-graphics) (int mode)))) - -(defn - ^{:requires-bindings true - :processing-name "textSize()" - :category "Typography" - :subcategory "Attributes" - :added "1.0"} - text-size - "Sets the current font size. This size will be used in all - subsequent calls to the text fn. Font size is measured in - units of pixels." - [size] - (.textSize (current-graphics) (float size))) - -(defn - ^{:requires-bindings true - :processing-name "texture()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - texture - "Sets a texture to be applied to vertex points. The texture fn must - be called between begin-shape and end-shape and before any calls to - vertex. - - When textures are in use, the fill color is ignored. Instead, use - tint to specify the color of the texture as it is applied to the - shape." - #?(:clj [^PImage img] - :cljs [img]) - (.texture (current-graphics) img)) - -(defn - ^{:requires-bindings true - :processing-name "textureMode()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - texture-mode - "Sets the coordinate space for texture mapping. There are two - options, :image and :normal. - - :image refers to the actual coordinates of the image and :normal - refers to a normalized space of values ranging from 0 to 1. The - default mode is :image. In :image, if an image is 100 x 200 pixels, - mapping the image onto the entire size of a quad would require the - points (0,0) (0,100) (100,200) (0,200). The same mapping in - NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1)." - [mode] - (let [mode (u/resolve-constant-key mode texture-modes)] - (.textureMode (current-graphics) (int mode)))) - -#?(:clj - (defn - ^{:requires-bindings true - :processing-name "textureWrap()" - :category "Shape" - :subcategory "Vertex" - :added "2.0"} - texture-wrap - "Defines if textures repeat or draw once within a texture map. The two - parameters are :clamp (the default behavior) and :repeat. This function - only works with the :p2d and :p3d renderers." - [mode] - (let [mode (u/resolve-constant-key mode texture-wrap-modes)] - (.textureWrap (current-graphics) mode)))) - -(defn - ^{:requires-bindings true - :processing-name "textWidth()" - :category "Typography" - :subcategory "Attributes" - :added "1.0"} - text-width - "Calculates and returns the width of any text string." - [^String data] - (.textWidth (current-graphics) data)) - -(defn - ^{:requires-bindings true - :processing-name "tint()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - tint-float - "Sets the fill value for displaying images. Images can be tinted to - specified colors or made transparent by setting the alpha. - - To make an image transparent, but not change it's color, use white - as the tint color and specify an alpha value. For instance, - tint(255, 128) will make an image 50% transparent (unless - colorMode() has been used). - - The value for the parameter gray must be less than or equal to the - current maximum value as specified by colorMode(). The default - maximum value is 255. - - Also used to control the coloring of textures in 3D." - ([gray] (.tint (current-graphics) (float gray))) - ([gray alpha] (.tint (current-graphics) (float gray) (float alpha))) - ([r g b] (.tint (current-graphics) (float r)(float g) (float b))) - ([r g b a] (.tint (current-graphics) (float g) (float g) (float b) (float a)))) - -(defn - ^{:requires-bindings true - :processing-name "tint()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - tint-int - "Sets the fill value for displaying images. Images can be tinted to - specified colors or made transparent by setting the alpha. - - To make an image transparent, but not change it's color, use white - as the tint color and specify an alpha value. For instance, - tint(255, 128) will make an image 50% transparent (unless - colorMode() has been used). - - The value for the parameter gray must be less than or equal to the - current maximum value as specified by colorMode(). The default - maximum value is 255. - - Also used to control the coloring of textures in 3D." - ([rgb] (.tint (current-graphics) (unchecked-int rgb))) - ([rgb alpha] (.tint (current-graphics) (unchecked-int rgb) (float alpha)))) - -(defn - ^{:requires-bindings true - :processing-name "tint()" - :category "Image" - :subcategory "Loading & Displaying" - :added "1.0"} - tint - "Sets the fill value for displaying images. Images can be tinted to - specified colors or made transparent by setting the alpha. - - To make an image transparent, but not change it's color, use white - as the tint color and specify an alpha value. For instance, - tint(255, 128) will make an image 50% transparent (unless - colorMode() has been used). - - The value for the parameter gray must be less than or equal to the - current maximum value as specified by colorMode(). The default - maximum value is 255. - - Also used to control the coloring of textures in 3D." - #?(:clj ([rgb] (if (u/int-like? rgb) (tint-int rgb) (tint-float rgb))) - :cljs ([rgb] (.tint (current-graphics) rgb))) - #?(:clj ([rgb alpha] (if (u/int-like? rgb) (tint-int rgb alpha) (tint-float rgb alpha))) - :cljs ([rgb alpha] (.tint (current-graphics) rgb alpha))) - ([r g b] (tint-float r g b)) - ([r g b a] (tint-float r g b a))) - -(defn - ^{:requires-bindings true - :processing-name "translate()" - :category "Transform" - :subcategory nil - :added "1.0"} - translate - "Specifies an amount to displace objects within the display - window. The x parameter specifies left/right translation, the y - parameter specifies up/down translation, and the z parameter - specifies translations toward/away from the screen. Transformations - apply to everything that happens after and subsequent calls to the - function accumulates the effect. For example, calling (translate 50 - 0) and then (translate 20, 0) is the same as (translate 70, 0). If - translate is called within draw, the transformation is reset when - the loop begins again. This function can be further controlled by - the push-matrix and pop-matrix." - ([v] (apply translate v)) - ([tx ty] (.translate (current-graphics) (float tx) (float ty))) - ([tx ty tz] (.translate (current-graphics) (float tx) (float ty) (float tz)))) - -(defn - ^{:requires-bindings true - :processing-name "triangle()" - :category "Shape" - :subcategory "2D Primitives" - :added "1.0"} - triangle - "A triangle is a plane created by connecting three points. The first - two arguments specify the first point, the middle two arguments - specify the second point, and the last two arguments specify the - third point." - [x1 y1 x2 y2 x3 y3] - (.triangle (current-graphics) - (float x1) (float y1) - (float x2) (float y2) - (float x3) (float y3))) - -(defn - ^{:require-binding false - :processing-name "unbinary()" - :category "Data" - :subcategory "Conversion" - :added "1.0"} - unbinary - "Unpack a binary string to an integer. See binary for converting - integers to strings." - [str-val] - #?(:clj (PApplet/unbinary (str str-val)) - :cljs (.unbinary (ap/current-applet) (str str-val)))) - -(defn - ^{:require-binding false - :processing-name "hex()" - :category "Data" - :subcategory "Conversion"} - unhex - "Converts a String representation of a hexadecimal number to its - equivalent integer value." - [hex-str] - #?(:clj (PApplet/unhex (str hex-str)) - :cljs (.unhex (ap/current-applet) (str hex-str)))) - -(defn - ^{:requires-bindings true - :processing-name "updatePixels()" - :category "Image" - :subcategory "Pixels" - :added "1.0"} - update-pixels - "Updates the display window or image with the data in the pixels array. - Use in conjunction with (pixels). If you're only reading pixels from - the array, there's no need to call update-pixels unless there are - changes. - - Certain renderers may or may not seem to require pixels or - update-pixels. However, the rule is that any time you want to - manipulate the pixels array, you must first call pixels, and - after changes have been made, call update-pixels. Even if the - renderer may not seem to use this function in the current Processing - release, this will always be subject to change." - ([] (update-pixels (current-graphics))) - #?(:clj - ([^PImage img] (.updatePixels img)) - - :cljs - ([img] - (when-let [pix-array (.-stored-pix-array img)] - (.set (.-pixels img) pix-array) - (set! (.-stored-pix-array img) nil)) - (.updatePixels img)))) - -(defn - ^{:requires-bindings true - :processing-name "vertex()" - :category "Shape" - :subcategory "Vertex" - :added "1.0"} - vertex - "All shapes are constructed by connecting a series of - vertices. vertex is used to specify the vertex coordinates for - points, lines, triangles, quads, and polygons and is used - exclusively within the begin-shape and end-shape fns. - - Drawing a vertex in 3D using the z parameter requires the :p3d or - :opengl renderers to be used. - - This function is also used to map a texture onto the geometry. The - texture fn declares the texture to apply to the geometry and the u - and v coordinates set define the mapping of this texture to the - form. By default, the coordinates used for u and v are specified in - relation to the image's size in pixels, but this relation can be - changed with texture-mode." - ([x y] (.vertex (current-graphics) (float x) (float y))) - ([x y z] (.vertex (current-graphics) (float x) (float y) (float z))) - ([x y u v] (.vertex (current-graphics) (float x) (float y) (float u) (float v))) - ([x y z u v] - (.vertex (current-graphics) (float x) (float y) (float z) (float u) (float v)))) - -(defn - ^{:requires-bindings false - :processing-name "year()" - :category "Input" - :subcategory "Time & Date" - :added "1.0"} - year - "Returns the current year as an integer (2003, 2004, 2005, etc)." - [] - #?(:clj (PApplet/year) - :cljs (.year (ap/current-applet)))) - -(defn - ^{:requires-bindings true - :processing-name "getWidth()" - :processing-link nil - :category "Environment" - :subcategory nil - :added "1.0"} - width - "Width of the display window. The value of width is zero until size is - called." - [] - (.-width (ap/current-applet))) - -(defmacro - ^{:requires-bindings true - :processing-name nil - :category "Color" - :subcategory "Utility Macros" - :added "1.7"} - with-fill - "Temporarily set the fill color for the body of this macro. - The code outside of with-fill form will have the previous fill color set. - - The fill color has to be in a vector! - Example: (with-fill [255] ...) - (with-fill [10 80 98] ...)" - [fill-args & body] - `(let [old-fill# (quil.core/current-fill)] - (apply quil.core/fill ~fill-args) - ~@body - (quil.core/fill old-fill#))) - -(defmacro - ^{:requires-bindings true - :processing-name nil - :category "Color" - :subcategory "Utility Macros" - :added "1.7"} - with-stroke - "Temporarily set the stroke color for the body of this macro. - The code outside of with-stroke form will have the previous stroke color set. - - The stroke color has to be in a vector! - Example: (with-stroke [255] ...) - (with-stroke [10 80 98] ...)" - [stroke-args & body] - `(let [old-stroke# (quil.core/current-stroke)] - (apply quil.core/stroke ~stroke-args) - ~@body - (quil.core/stroke old-stroke#))) - -(defmacro - ^{:requires-bindings true - :processing-name nil - :category "Transform" - :subcategory "Utility Macros" - :added "1.0"} - with-translation - "Performs body with translation, restores current transformation on - exit." - [translation-vector & body] - `(let [tr# ~translation-vector] - (quil.core/push-matrix) - (try - (quil.core/translate tr#) - ~@body - (finally - (quil.core/pop-matrix))))) - -(defmacro - ^{:requires-bindings true - :processing-name nil - :category "Transform" - :subcategory "Utility Macros" - :added "1.0"} - with-rotation - "Performs body with rotation, restores current transformation on exit. - Accepts a vector [angle] or [angle x-axis y-axis z-axis]. - - Example: - (with-rotation [angle] - (vertex 1 2))" - [rotation & body] - `(let [tr# ~rotation] - (quil.core/push-matrix) - (try - (apply quil.core/rotate tr#) - ~@body - (finally - (quil.core/pop-matrix))))) - -(defmacro - ^{:requires-bindings true - :processing-name nil - :category "Rendering" - :added "1.7"} - with-graphics - "All subsequent calls of any drawing function will draw on given - graphics. 'with-graphics' cannot be nested (you can draw simultaneously - only on 1 graphics)" - [graphics & body] - `(let [gr# ~graphics] - (binding [quil.core/*graphics* gr#] - (.beginDraw gr#) - ~@body - (.endDraw gr#)))) - -(defn ^{:requires-bindings false - :category "Environment" - :subcategory nil - :added "1.0"} - sketch - "Create and start a new visualisation applet. Can be used to create - new sketches programmatically. See documentation for 'defsketch' for - list of available options." - [& opts] - #?(:clj (apply ap/applet opts) - :cljs (apply ap/sketch opts))) - -(defmacro ^{:requires-bindings false - :category "Environment" - :subcategory nil - :added "1.0"} - defsketch - "Define and start a sketch and bind it to a var with the symbol - app-name. If any of the options to the various callbacks are - symbols, it wraps them in a call to var to ensure they aren't - inlined and that redefinitions to the original fns are reflected in - the visualisation. - - Available options: - - :size - A vector of width and height for the sketch or :fullscreen. - Defaults to [500 300]. If you're using :fullscreen you may - want to enable present mode - :features [:present] - - :renderer - Specifies the renderer type. One of :p2d, :p3d, :java2d, - :opengl, :pdf). Defaults to :java2d. :dxf renderer - can't be used as sketch renderer. Use begin-raw method - instead. In clojurescript only :p2d and :p3d renderers - are supported. - - :output-file - Specifies an output file path. Only used in :pdf mode. - Not supported in clojurescript. - - :title - A string which will be displayed at the top of - the sketch window. Not supported in clojurescript. - - :features - A vector of keywords customizing sketch behaviour. - Supported features: - - :keep-on-top - Sketch window will always be above other - windows. Note: some platforms might not - support always-on-top windows. - Not supported in clojurescript. - - :exit-on-close - Shutdown JVM when sketch is closed. - Not supported in clojurescript. - - :resizable - Makes sketch resizable. - Not supported in clojurescript. - - :no-safe-fns - Do not catch and print exceptions thrown - inside functions provided to sketch (like - draw, mouse-click, key-pressed and - other). By default all exceptions thrown - inside these functions are catched. This - prevents sketch from breaking when bad - function was provided and allows you to - fix it and reload it on fly. You can - disable this behaviour by enabling - :no-safe-fns feature. - Not supported in clojurescript. - - :present - Switch to present mode (fullscreen without - borders, OS panels). You may want to use - this feature together with :size :fullscreen. - Not supported in clojurescript. - - :no-start - Disables autostart if sketch was created using - defsketch macro. To start sketch you have to - call function created defsketch. - Supported only in clojurescript. - - :global-key-events - Allows a sketch to receive any - keyboard event sent to the page, - regardless of whether the canvas it is - loaded in has focus or not. - Supported only in clojurescript. - - Usage example: :features [:keep-on-top :present] - - :bgcolor - Sets background color for unused space in present mode. - Color is specified in hex format: #XXXXXX. - Example: :bgcolor \"#00FFFF\" (cyan background) - Not supported in clojurescript. - - :display - Sets what display should be used by this sketch. - Displays are numbered starting from 0. Example: :display 1. - Not supported in clojurescript. - - :setup - A function to be called once when setting the sketch up. - - :draw - A function to be repeatedly called at most n times per - second where n is the target frame-rate set for - the visualisation. - - :host - String id of canvas element or DOM element itself. - Specifies host for the sketch. Must be specified in sketch, - may be omitted in defsketch. If ommitted in defsketch, - :host is set to the name of the sketch. If element with - specified id is not found on the page and page is empty - - new canvas element will be created. Used in clojurescript. - - :focus-gained - Called when the sketch gains focus. - Not supported in clojurescript. - - :focus-lost - Called when the sketch loses focus. - Not supported in clojurescript. - - :mouse-entered - Called when the mouse enters the sketch window. - - :mouse-exited - Called when the mouse leaves the sketch window - - :mouse-pressed - Called every time a mouse button is pressed. - - :mouse-released - Called every time a mouse button is released. - - :mouse-clicked - called once after a mouse button has been pressed - and then released. - - :mouse-moved - Called every time the mouse moves and a button is - not pressed. - - :mouse-dragged - Called every time the mouse moves and a button is - pressed. - - :mouse-wheel - Called every time mouse wheel is rotated. - Takes 1 argument - wheel rotation, an int. - Negative values if the mouse wheel was rotated - up/away from the user, and positive values - if the mouse wheel was rotated down/ towards the user - - :key-pressed - Called every time any key is pressed. - - :key-released - Called every time any key is released. - - :key-typed - Called once every time non-modifier keys are - pressed. - - :on-close - Called once, when sketch is closed - Not supported in clojurescript. - - :middleware - Vector of middleware to be applied to the sketch. - Middleware will be applied in the same order as in comp - function: [f g] will be applied as (f (g options)). - - :settings - cousin of :setup. A function to be called once when - setting sketch up. Should be used only for (smooth) and - (no-smooth). Due to Processing limitations these functions - cannot be used neither in :setup nor in :draw." - [app-name & options] - #?(:clj - (if (u/clj-compilation?) - `(ap/defapplet ~app-name ~@options) - `(quil.sketch/defsketch ~app-name ~@options)) - :cljs - `(quil.sketch$macros/defsketch ~app-name ~@options))) - -(defn ^{:requires-bindings false - :processing-name nil - :category "Input" - :subcategory "Keyboard" - :added "1.6"} - key-coded? - "Returns true if char c is a 'coded' char i.e. it is necessary to - fetch the key-code as an integer and use that to determine the - specific key pressed. See key-keyword." - [c] - #?(:clj (= PConstants/CODED (int c)) - ; See https://github.com/google/closure-compiler/issues/1676 - :cljs (= 65535 (.charCodeAt (js/String c))))) - -(defn ^{:requires-bindings true - :processing-name nil - :category "Input" - :subcategory "Keyboard" - :added "1.6"} - key-as-keyword - "Returns a keyword representing the currently pressed key. Modifier - keys are represented as: :up, :down, :left, :right, :alt, :control, - :shift, :command, :f1-24" - [] - (let [key-char (raw-key) - code (key-code)] - (if (key-coded? key-char) - (get KEY-CODES code :unknown-key) - ; Workaround for closure compiler incorrect string casts. - ; See https://github.com/google/closure-compiler/issues/1676 - (keyword #?(:clj (str key-char) - :cljs (js/String key-char)))))) - -#?(:clj - (defn - ^{:requires-bindings false - :processing-name nil - :category "Debugging" - :added "1.6"} - debug - "Prints msg and then sleeps the current thread for delay-ms. Useful - for debugging live running sketches. delay-ms defaults to 300. " - ([msg] (debug msg 300)) - ([msg delay-ms] - (println msg) - (Thread/sleep delay-ms)))) - -;;; doc utils - -#?(:clj - (def ^{:private true} - fn-metas - "Returns a seq of metadata maps for all fns related to the original - Processing API (but may not have a direct Processing API equivalent)." - (->> *ns* ns-publics vals (map meta)))) - -#?(:clj - (defn show-cats - "Print out a list of all the categories and subcategories, - associated index nums and fn count (in parens)." - [] - (doseq [[cat-idx cat] (docs/sorted-category-map fn-metas)] - (println cat-idx (:name cat)) - (doseq [[subcat-idx subcat] (:subcategories cat)] - (println " " subcat-idx (:name subcat)))))) - -#?(:clj - (defn show-fns - "If given a number, print all the functions within category or - subcategory specified by the category index (use show-cats to see a - list of index nums). - - If given a string or a regular expression, print all the functions - whose name or category name contains that string. - - If a category is specified, it will not print out the fns in any of - cat's subcategories." - [q] - (letfn [(list-category [cid c & {:keys [only]}] - (let [category-fns (:fns c) - display-fns (if (nil? only) - category-fns - (clojure.set/intersection - (set only) (set category-fns))) - names (sort (map str display-fns))] - (when-not (empty? names)) - (println cid (:name c)) - (docs/pprint-wrapped-lines names :fromcolumn 4))) - (show-fns-by-cat-idx [cat-idx] - (let [c (get (docs/all-category-map fn-metas) (str cat-idx))] - (list-category cat-idx c))) - (show-fns-by-name-regex [re] - (doseq [[cid c] (sort-by key (docs/all-category-map fn-metas))] - (let [in-cat-name? (re-find re (:name c)) - matching-fns (filter #(re-find re (str %)) (:fns c)) - in-fn-names? (not (empty? matching-fns))] - (cond - in-cat-name? (list-category cid c) ;; print an entire category - in-fn-names? (list-category cid c :only matching-fns)))))] - (cond - (string? q) (show-fns-by-name-regex (re-pattern (str "(?i)" q))) - (isa? (type q) java.util.regex.Pattern) (show-fns-by-name-regex q) - :else (show-fns-by-cat-idx q))))) - -#?(:clj - (defn show-meths - "Takes a string representing the start of a method name in the - original Processing API and prints out all matches alongside the - Processing-core equivalent." - [orig-name] - (let [res (docs/matching-processing-methods fn-metas orig-name)] - (u/print-definition-list res)))) diff --git a/src/assets/viz/2/quil/core.cljc.cache.json b/src/assets/viz/2/quil/core.cljc.cache.json deleted file mode 100644 index e2cfeb3..0000000 --- a/src/assets/viz/2/quil/core.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Processing",["^ ","~$prototype",["^ ","~$PConstants",["^ "]],"~$getInstanceById",["^ "]],"~$Math",["^ ","~$PI",["^ "]],"~$Error",["^ "],"~$PFont",["^ ","~$list",["^ "]],"~$String",["^ "],"~$Object",["^ ","~$charCodeAt",["^ "]]],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.core","~:imports",null,"~:requires",["^ ","~$clojure.string","^F","~$org.processingjs.Processing","^G","~$ap","~$quil.sketch","^I","^I","~$u","~$quil.util","^J","^J"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$rotate-x",["^ ","~:category","Transform","~:protocol-inline",null,"~:meta",["^ ","^O","Transform","~:added","1.0","~:subcategory",null,"~:file","/home/mediocregopher/src/viz/out/quil/core.cljc","~:end-column",11,"~:processing-name","rotateX()","~:column",3,"~:requires-bindings",true,"~:line",3464,"~:end-line",3464,"~:arglists",["~#list",["~$quote",["^10",[["~$angle"]]]]],"~:doc","Rotates a shape around the x-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0 to\n (* PI 2)) or converted to radians with the radians function. Objects\n are always rotated around their relative position to the origin and\n positive numbers rotate objects in a counterclockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate-x HALF-PI) and then (rotate-x HALF-PI) is\n the same as (rotate-x PI). If rotate-x is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function requires either the :p3d or :opengl renderer."],"^R","1.0","^B","~$quil.core/rotate-x","^S",null,"^T","out/quil/core.cljc","^U",11,"^V","rotateX()","~:method-params",["^10",[["^12"]]],"~:protocol-impl",null,"~:arglists-meta",["^10",[null,null]],"^W",1,"~:variadic?",false,"^X",true,"^Y",3458,"~:ret-tag","~$any","^Z",3464,"~:max-fixed-arity",1,"~:fn-var",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Rotates a shape around the x-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0 to\n (* PI 2)) or converted to radians with the radians function. Objects\n are always rotated around their relative position to the origin and\n positive numbers rotate objects in a counterclockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate-x HALF-PI) and then (rotate-x HALF-PI) is\n the same as (rotate-x PI). If rotate-x is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function requires either the :p3d or :opengl renderer."],"~$text-modes",["^ ","^B","~$quil.core/text-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",68,"^U",12,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",68,"^W",2,"^Z",68,"^U",12],"~:tag","~$cljs.core/IMap"],"~$print-projection",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",19,"^V","printProjection()","^W",3,"^X",true,"^Y",3098,"^Z",3098,"^[",["^10",["^11",["^10",[[]]]]],"^13","Prints the current projection matrix to std out. Useful for\n debugging"],"^R","1.0","^B","~$quil.core/print-projection","^S","Camera","^T","out/quil/core.cljc","^U",19,"^V","printProjection()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3092,"^19","^1:","^Z",3098,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Prints the current projection matrix to std out. Useful for\n debugging"],"~$raw-key",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Keyboard","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","key","^W",3,"^X",true,"^Y",3257,"^Z",3257,"^[",["^10",["^11",["^10",[[]]]]],"^13","Contains the value of the most recent key on the keyboard that was\n used (either pressed or released).\n\n For non-ASCII keys, use the keyCode variable. The keys included in\n the ASCII specification (BACKSPACE, TAB, ENTER, RETURN, ESC, and\n DELETE) do not require checking to see if they key is coded, and you\n should simply use the key variable instead of keyCode If you're\n making cross-platform projects, note that the ENTER key is commonly\n used on PCs and Unix and the RETURN key is used instead on\n Macintosh. Check for both ENTER and RETURN to make sure your program\n will work for all platforms."],"^R","1.0","^B","~$quil.core/raw-key","^S","Keyboard","^T","out/quil/core.cljc","^U",10,"^V","key","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3251,"^19","^1:","^Z",3257,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Contains the value of the most recent key on the keyboard that was\n used (either pressed or released).\n\n For non-ASCII keys, use the keyCode variable. The keys included in\n the ASCII specification (BACKSPACE, TAB, ENTER, RETURN, ESC, and\n DELETE) do not require checking to see if they key is coded, and you\n should simply use the key variable instead of keyCode If you're\n making cross-platform projects, note that the ENTER key is commonly\n used on PCs and Unix and the RETURN key is used instead on\n Macintosh. Check for both ENTER and RETURN to make sure your program\n will work for all platforms."],"~$text-char",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"~:top-fn",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]],"^[",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","text()","^W",3,"^X",true,"^Y",4144,"^Z",4144,"^[",["^10",["^11",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]]]],"^13","Draws a char to the screen in the specified position. See text fn\n for more details."],"^R","1.0","^B","~$quil.core/text-char","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]],"^[",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","text()","^15",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4138,"^Z",4144,"^1;",4,"^1<",true,"^[",["^10",[["~$c","~$x","~$y"],["~$c","~$x","~$y","~$z"]]],"^13","Draws a char to the screen in the specified position. See text fn\n for more details."],"~$display-filter",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$mode"],["^1I","~$level"]]],"^[",["^10",[["^1I"],["^1I","^1J"]]],"^17",["^10",[null,null]]],"^V","filter()","^W",3,"^X",true,"^Y",1777,"^Z",1777,"^[",["^10",["^11",["^10",[["^1I"],["^1I","^1J"]]]]],"^13","Originally named filter in Processing Language.\n Filters the display window with the specified mode and level.\n Level defines the quality of the filter and mode may be one of the\n following keywords:\n\n :threshold - converts the image to black and white pixels depending\n if they are above or below the threshold defined by\n the level parameter. The level must be between\n 0.0 (black) and 1.0 (white). If no level is specified,\n 0.5 is used.\n :gray - converts any colors in the image to grayscale\n equivalents. Doesn't work with level.\n :invert - sets each pixel to its inverse value. Doesn't work with\n level.\n :posterize - limits each channel of the image to the number of\n colors specified as the level parameter. The parameter can\n be set to values between 2 and 255, but results are most\n noticeable in the lower ranges.\n :blur - executes a Guassian blur with the level parameter\n specifying the extent of the blurring. If no level\n parameter is used, the blur is equivalent to Guassian\n blur of radius 1.\n :opaque - sets the alpha channel to entirely opaque. Doesn't work\n with level.\n :erode - reduces the light areas. Doesn't work with level.\n :dilate - increases the light areas. Doesn't work with level."],"^R","1.0","^B","~$quil.core/display-filter","^S","Pixels","^T","out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^1I"],["^1I","^1J"]]],"^[",["^10",[["^1I"],["^1I","^1J"]]],"^17",["^10",[null,null]]],"^V","filter()","^15",["^10",[["^1I"],["^1I","^1J"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1771,"^Z",1777,"^1;",2,"^1<",true,"^[",["^10",[["^1I"],["^1I","^1J"]]],"^13","Originally named filter in Processing Language.\n Filters the display window with the specified mode and level.\n Level defines the quality of the filter and mode may be one of the\n following keywords:\n\n :threshold - converts the image to black and white pixels depending\n if they are above or below the threshold defined by\n the level parameter. The level must be between\n 0.0 (black) and 1.0 (white). If no level is specified,\n 0.5 is used.\n :gray - converts any colors in the image to grayscale\n equivalents. Doesn't work with level.\n :invert - sets each pixel to its inverse value. Doesn't work with\n level.\n :posterize - limits each channel of the image to the number of\n colors specified as the level parameter. The parameter can\n be set to values between 2 and 255, but results are most\n noticeable in the lower ranges.\n :blur - executes a Guassian blur with the level parameter\n specifying the extent of the blurring. If no level\n parameter is used, the blur is equivalent to Guassian\n blur of radius 1.\n :opaque - sets the alpha channel to entirely opaque. Doesn't work\n with level.\n :erode - reduces the light areas. Doesn't work with level.\n :dilate - increases the light areas. Doesn't work with level."],"~$rotate-z",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","rotateZ()","^W",3,"^X",true,"^Y",3506,"^Z",3506,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Rotates a shape around the z-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0\n to (* PI 2)) or converted to radians with the radians function.\n Objects are always rotated around their relative position to the\n origin and positive numbers rotate objects in a counterclockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate-z HALF-PI) and then (rotate-z HALF-PI) is\n the same as (rotate-z PI). If rotate-y is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function requires either the :p3d or :opengl renderer."],"^R","1.0","^B","~$quil.core/rotate-z","^S",null,"^T","out/quil/core.cljc","^U",11,"^V","rotateZ()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3500,"^19","^1:","^Z",3506,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Rotates a shape around the z-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0\n to (* PI 2)) or converted to radians with the radians function.\n Objects are always rotated around their relative position to the\n origin and positive numbers rotate objects in a counterclockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate-z HALF-PI) and then (rotate-z HALF-PI) is\n the same as (rotate-z PI). If rotate-y is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function requires either the :p3d or :opengl renderer."],"~$random-gaussian",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","2.0","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",18,"^V","randomGaussian()","^W",3,"^X",true,"^Y",3226,"^Z",3226,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a float from a random series of numbers having a mean of 0 and\n standard deviation of 1. Each time the randomGaussian() function is called,\n it returns a number fitting a Gaussian, or normal, distribution.\n There is theoretically no minimum or maximum value that randomGaussian()\n might return. Rather, there is just a very low probability that values far\n from the mean will be returned; and a higher probability that numbers near\n the mean will be returned. ."],"^R","2.0","^B","~$quil.core/random-gaussian","^S","Random","^T","out/quil/core.cljc","^U",18,"^V","randomGaussian()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3220,"^19","^1:","^Z",3226,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a float from a random series of numbers having a mean of 0 and\n standard deviation of 1. Each time the randomGaussian() function is called,\n it returns a number fitting a Gaussian, or normal, distribution.\n There is theoretically no minimum or maximum value that randomGaussian()\n might return. Rather, there is just a very low probability that values far\n from the mean will be returned; and a higher probability that numbers near\n the mean will be returned. ."],"~$blend",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",11,"^15",["^10",[["~$x","~$y","~$width","~$height","~$dx","~$dy","~$dwidth","~$dheight","^1I"],["~$src-img","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$dest-img","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]],"^[",["^10",[["~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","^1X","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]],"^17",["^10",[null,null,null]]],"^V","blend()","^W",3,"^X",true,"^Y",778,"^Z",778,"^[",["^10",["^11",["^10",[["~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","^1X","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]]]],"^13","Blends a region of pixels from one image into another with full alpha\n channel support. If src is not specified it defaults to current-graphics.\n If dest is not specified it defaults to current-graphics.\n\n Note: blend-mode function is recommended to use instead of this one.\n\n Available blend modes are:\n\n :blend - linear interpolation of colours: C = A*factor + B\n :add - additive blending with white clip:\n C = min(A*factor + B, 255)\n :subtract - subtractive blending with black clip:\n C = max(B - A*factor, 0)\n :darkest - only the darkest colour succeeds:\n C = min(A*factor, B)\n :lightest - only the lightest colour succeeds:\n C = max(A*factor, B)\n :difference - subtract colors from underlying image.\n :exclusion - similar to :difference, but less extreme.\n :multiply - Multiply the colors, result will always be darker.\n :screen - Opposite multiply, uses inverse values of the colors.\n :overlay - A mix of :multiply and :screen. Multiplies dark values\n and screens light values.\n :hard-light - :screen when greater than 50% gray, :multiply when\n lower.\n :soft-light - Mix of :darkest and :lightest. Works like :overlay,\n but not as harsh.\n :dodge - Lightens light tones and increases contrast, ignores\n darks.\n Called \"Color Dodge\" in Illustrator and Photoshop.\n :burn - Darker areas are applied, increasing contrast, ignores\n lights. Called \"Color Burn\" in Illustrator and\n Photoshop."],"^R","1.0","^B","~$quil.core/blend","^S","Pixels","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",11,"^15",["^10",[["~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","^1X","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]],"^[",["^10",[["~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","^1X","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]],"^17",["^10",[null,null,null]]],"^V","blend()","^15",["^10",[["~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","^1X","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",772,"^Z",778,"^1;",11,"^1<",true,"^[",["^10",[["~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"],["^1W","^1X","~$x","~$y","^1Q","^1R","^1S","^1T","^1U","^1V","^1I"]]],"^13","Blends a region of pixels from one image into another with full alpha\n channel support. If src is not specified it defaults to current-graphics.\n If dest is not specified it defaults to current-graphics.\n\n Note: blend-mode function is recommended to use instead of this one.\n\n Available blend modes are:\n\n :blend - linear interpolation of colours: C = A*factor + B\n :add - additive blending with white clip:\n C = min(A*factor + B, 255)\n :subtract - subtractive blending with black clip:\n C = max(B - A*factor, 0)\n :darkest - only the darkest colour succeeds:\n C = min(A*factor, B)\n :lightest - only the lightest colour succeeds:\n C = max(A*factor, B)\n :difference - subtract colors from underlying image.\n :exclusion - similar to :difference, but less extreme.\n :multiply - Multiply the colors, result will always be darker.\n :screen - Opposite multiply, uses inverse values of the colors.\n :overlay - A mix of :multiply and :screen. Multiplies dark values\n and screens light values.\n :hard-light - :screen when greater than 50% gray, :multiply when\n lower.\n :soft-light - Mix of :darkest and :lightest. Works like :overlay,\n but not as harsh.\n :dodge - Lightens light tones and increases contrast, ignores\n darks.\n Called \"Color Dodge\" in Illustrator and Photoshop.\n :burn - Darker areas are applied, increasing contrast, ignores\n lights. Called \"Color Burn\" in Illustrator and\n Photoshop."],"~$frame-count",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","frameCount","^W",3,"^X",true,"^Y",1853,"^Z",1853,"^[",["^10",["^11",["^10",[[]]]]],"^13","The system variable frameCount contains the number of frames\n displayed since the program started. Inside setup() the value is 0\n and after the first iteration of draw it is 1, etc."],"^R","1.0","^B","~$quil.core/frame-count","^S",null,"^T","out/quil/core.cljc","^U",14,"^V","frameCount","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1847,"^19","^1:","^Z",1853,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","The system variable frameCount contains the number of frames\n displayed since the program started. Inside setup() the value is 0\n and after the first iteration of draw it is 1, etc."],"~$with-graphics",["^ ","^O","Rendering","^P",null,"^Q",["^ ","^O","Rendering","^R","1.7","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["~$graphics","~$body"]]]],"^[",["^10",[["^21","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^W",3,"^X",true,"^Y",4709,"~:macro",true,"^Z",4709,"^[",["^10",["^11",["^10",[["^21","~$&","^22"]]]]],"^13","All subsequent calls of any drawing function will draw on given\n graphics. 'with-graphics' cannot be nested (you can draw simultaneously\n only on 1 graphics)"],"^R","1.7","^B","~$quil.core/with-graphics","^T","out/quil/core.cljc","^U",16,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^21","^22"]]]],"^[",["^10",[["^21","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^15",["^10",[["^10",["^21","^22"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",true,"^Y",4704,"^23",true,"^19","^1:","^Z",4709,"^1;",1,"^1<",false,"^[",["^10",[["^21","~$&","^22"]]],"^13","All subsequent calls of any drawing function will draw on given\n graphics. 'with-graphics' cannot be nested (you can draw simultaneously\n only on 1 graphics)"],"~$model-y",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Coordinates","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","modelY()","^W",3,"^X",true,"^Y",2539,"^Z",2539,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Returns the three-dimensional x, y, z position in model space. This\n returns the y value for a given coordinate based on the current set\n of transformations (scale, rotate, translate, etc.) The y value can\n be used to place an object in space relative to the location of the\n original point once the transformations are no longer in use."],"^R","1.0","^B","~$quil.core/model-y","^S","Coordinates","^T","out/quil/core.cljc","^U",10,"^V","modelY()","^15",["^10",[["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2533,"^19","^1:","^Z",2539,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Returns the three-dimensional x, y, z position in model space. This\n returns the y value for a given coordinate based on the current set\n of transformations (scale, rotate, translate, etc.) The y value can\n be used to place an object in space relative to the location of the\n original point once the transformations are no longer in use."],"~$set-image",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","set()","^W",3,"^X",true,"^Y",3722,"^Z",3722,"^[",["^10",["^11",["^10",[["~$x","~$y","~$src"]]]]],"^13","Writes an image directly into the display window. The x and y\n parameters define the coordinates for the upper-left corner of the\n image."],"^R","1.0","^B","~$quil.core/set-image","^S","Pixels","^T","out/quil/core.cljc","^U",12,"^V","set()","^15",["^10",[["~$x","~$y","^28"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3716,"^19","^1:","^Z",3722,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","^28"]]]]],"^13","Writes an image directly into the display window. The x and y\n parameters define the coordinates for the upper-left corner of the\n image."],"~$shape-mode",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","shapeMode()","^W",3,"^X",true,"^Y",3825,"^Z",3825,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Modifies the location from which shapes draw. Available modes are\n :corner, :corners and :center. Default is :corner.\n\n :corner - specifies the location to be the upper left corner of the\n shape and uses the third and fourth parameters of shape\n to specify the width and height.\n\n :corners - uses the first and second parameters of shape to set\n the location of one corner and uses the third and fourth\n parameters to set the opposite corner.\n\n :center - draws the shape from its center point and uses the third\n and forth parameters of shape to specify the width and\n height. "],"^R","1.0","^B","~$quil.core/shape-mode","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",13,"^V","shapeMode()","^15",["^10",[["^1I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3820,"^19","^1:","^Z",3825,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Modifies the location from which shapes draw. Available modes are\n :corner, :corners and :center. Default is :corner.\n\n :corner - specifies the location to be the upper left corner of the\n shape and uses the third and fourth parameters of shape\n to specify the width and height.\n\n :corners - uses the first and second parameters of shape to set\n the location of one corner and uses the third and fourth\n parameters to set the opposite corner.\n\n :center - draws the shape from its center point and uses the third\n and forth parameters of shape to specify the width and\n height. "],"~$cursor-image",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$img"],["^2=","~$hx","~$hy"]]],"^[",["^10",[["^2="],["^2=","^2>","^2?"]]],"^17",["^10",[null,null]]],"^V","cursor()","^W",5,"^X",true,"^Y",1307,"^Z",1307,"^[",["^10",["^11",["^10",[["^2="],["^2=","^2>","^2?"]]]]],"^13","Set the cursor to a predefined image. The horizontal and vertical\n active spots of the cursor may be specified with hx and hy.\n It is recommended to make the size 16x16 or 32x32 pixels."],"^R","1.0","^B","~$quil.core/cursor-image","^S",null,"^T","out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2="],["^2=","^2>","^2?"]]],"^[",["^10",[["^2="],["^2=","^2>","^2?"]]],"^17",["^10",[null,null]]],"^V","cursor()","^15",["^10",[["^2="],["^2=","^2>","^2?"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1301,"^Z",1307,"^1;",3,"^1<",true,"^[",["^10",[["^2="],["^2=","^2>","^2?"]]],"^13","Set the cursor to a predefined image. The horizontal and vertical\n active spots of the cursor may be specified with hx and hy.\n It is recommended to make the size 16x16 or 32x32 pixels."],"~$create-graphics",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Rendering","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",18,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$w","~$h"],["~$w","~$h","~$renderer"],["~$w","~$h","^2B","~$path"]]],"^[",["^10",[["~$w","~$h"],["~$w","~$h","^2B"],["~$w","~$h","^2B","^2C"]]],"^17",["^10",[null,null,null]]],"^V","createGraphics()","^W",3,"^X",true,"^Y",1204,"^Z",1204,"^[",["^10",["^11",["^10",[["~$w","~$h"],["~$w","~$h","^2B"],["~$w","~$h","^2B","^2C"]]]]],"^13","Creates and returns a new PGraphics object of the types :p2d, :p3d,\n :java2d, :pdf. By default :java2d is used. Use this class if you\n need to draw into an off-screen graphics buffer. It's not possible\n to use create-graphics with the :opengl renderer, because it doesn't\n allow offscreen use. The :pdf renderer requires the filename parameter.\n\n Note: don't use create-graphics in draw in clojurescript, it leaks memory.\n You should create graphic in setup and reuse it in draw instead of creating\n a new one.\n\n It's important to call any drawing commands between (.beginDraw graphics) and\n (.endDraw graphics) statements or use with-graphics macro. This is also true\n for any commands that affect drawing, such as smooth or color-mode.\n\n If you're using :pdf renderer - don't forget to call (.dispose graphics)\n as last command inside with-graphics macro, otherwise graphics won't be\n saved.\n\n Unlike the main drawing surface which is completely opaque, surfaces\n created with create-graphics can have transparency. This makes it\n possible to draw into a graphics and maintain the alpha channel. By\n using save to write a PNG or TGA file, the transparency of the\n graphics object will be honored."],"^R","1.0","^B","~$quil.core/create-graphics","^S","Rendering","^T","out/quil/core.cljc","^U",18,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$w","~$h"],["~$w","~$h","^2B"],["~$w","~$h","^2B","^2C"]]],"^[",["^10",[["~$w","~$h"],["~$w","~$h","^2B"],["~$w","~$h","^2B","^2C"]]],"^17",["^10",[null,null,null]]],"^V","createGraphics()","^15",["^10",[["~$w","~$h"],["~$w","~$h","^2B"],["~$w","~$h","^2B","^2C"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1198,"^Z",1204,"^1;",4,"^1<",true,"^[",["^10",[["~$w","~$h"],["~$w","~$h","^2B"],["~$w","~$h","^2B","^2C"]]],"^13","Creates and returns a new PGraphics object of the types :p2d, :p3d,\n :java2d, :pdf. By default :java2d is used. Use this class if you\n need to draw into an off-screen graphics buffer. It's not possible\n to use create-graphics with the :opengl renderer, because it doesn't\n allow offscreen use. The :pdf renderer requires the filename parameter.\n\n Note: don't use create-graphics in draw in clojurescript, it leaks memory.\n You should create graphic in setup and reuse it in draw instead of creating\n a new one.\n\n It's important to call any drawing commands between (.beginDraw graphics) and\n (.endDraw graphics) statements or use with-graphics macro. This is also true\n for any commands that affect drawing, such as smooth or color-mode.\n\n If you're using :pdf renderer - don't forget to call (.dispose graphics)\n as last command inside with-graphics macro, otherwise graphics won't be\n saved.\n\n Unlike the main drawing surface which is completely opaque, surfaces\n created with create-graphics can have transparency. This makes it\n possible to draw into a graphics and maintain the alpha channel. By\n using save to write a PNG or TGA file, the transparency of the\n graphics object will be honored."],"~$update-pixels",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^2="]]],"^[",["^10",[[],["^2="]]],"^17",["^10",[null,null]]],"^V","updatePixels()","^W",3,"^X",true,"^Y",4551,"^Z",4551,"^[",["^10",["^11",["^10",[[],["^2="]]]]],"^13","Updates the display window or image with the data in the pixels array.\n Use in conjunction with (pixels). If you're only reading pixels from\n the array, there's no need to call update-pixels unless there are\n changes.\n\n Certain renderers may or may not seem to require pixels or\n update-pixels. However, the rule is that any time you want to\n manipulate the pixels array, you must first call pixels, and\n after changes have been made, call update-pixels. Even if the\n renderer may not seem to use this function in the current Processing\n release, this will always be subject to change."],"^R","1.0","^B","~$quil.core/update-pixels","^S","Pixels","^T","out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^2="]]],"^[",["^10",[[],["^2="]]],"^17",["^10",[null,null]]],"^V","updatePixels()","^15",["^10",[[],["^2="]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4545,"^Z",4551,"^1;",1,"^1<",true,"^[",["^10",[[],["^2="]]],"^13","Updates the display window or image with the data in the pixels array.\n Use in conjunction with (pixels). If you're only reading pixels from\n the array, there's no need to call update-pixels unless there are\n changes.\n\n Certain renderers may or may not seem to require pixels or\n update-pixels. However, the rule is that any time you want to\n manipulate the pixels array, you must first call pixels, and\n after changes have been made, call update-pixels. Even if the\n renderer may not seem to use this function in the current Processing\n release, this will always be subject to change."],"~$text-size",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","textSize()","^W",3,"^X",true,"^Y",4336,"^Z",4336,"^[",["^10",["^11",["^10",[["~$size"]]]]],"^13","Sets the current font size. This size will be used in all\n subsequent calls to the text fn. Font size is measured in\n units of pixels."],"^R","1.0","^B","~$quil.core/text-size","^S","Attributes","^T","out/quil/core.cljc","^U",12,"^V","textSize()","^15",["^10",[["^2H"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4330,"^19","^1:","^Z",4336,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^2H"]]]]],"^13","Sets the current font size. This size will be used in all\n subsequent calls to the text fn. Font size is measured in\n units of pixels."],"~$pixels",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^2="]]],"^[",["^10",[[],["^2="]]],"^17",["^10",[null,null]]],"^V","pixels[]","^W",3,"^X",true,"^Y",2948,"^Z",2948,"^[",["^10",["^11",["^10",[[],["^2="]]]]],"^13","Array containing the values for all the pixels in the display\n window or image. This array is therefore the size of the display window. If\n this array is modified, the update-pixels fn must be called to update\n the changes. Calls .loadPixels before obtaining the pixel array."],"^R","1.0","^B","~$quil.core/pixels","^S","Pixels","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^2="]]],"^[",["^10",[[],["^2="]]],"^17",["^10",[null,null]]],"^V","pixels[]","^15",["^10",[[],["^2="]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2942,"^Z",2948,"^1;",1,"^1<",true,"^[",["^10",[[],["^2="]]],"^13","Array containing the values for all the pixels in the display\n window or image. This array is therefore the size of the display window. If\n this array is modified, the update-pixels fn must be called to update\n the changes. Calls .loadPixels before obtaining the pixel array."],"~$stroke-float",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$gray"],["^2M","~$alpha"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","stroke()","^W",3,"^X",true,"^Y",4016,"^Z",4016,"^[",["^10",["^11",["^10",[["^2M"],["^2M","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]]]],"^13","Sets the color used to draw lines and borders around\n shapes. Converts all args to floats"],"^R","1.0","^B","~$quil.core/stroke-float","^S","Setting","^T","out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","stroke()","^15",["^10",[["^2M"],["^2M","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",4010,"^Z",4016,"^1;",4,"^1<",true,"^[",["^10",[["^2M"],["^2M","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^13","Sets the color used to draw lines and borders around\n shapes. Converts all args to floats"],"~$constrain",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","constrain()","^W",3,"^X",false,"^Y",1097,"^Z",1097,"^[",["^10",["^11",["^10",[["~$amt","~$low","~$high"]]]]],"^13","Constrains a value to not exceed a maximum and minimum value."],"^R","1.0","^B","~$quil.core/constrain","^S","Calculation","^T","out/quil/core.cljc","^U",12,"^V","constrain()","^15",["^10",[["^2Q","^2R","^2S"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1091,"^19","^1:","^Z",1097,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["^2Q","^2R","^2S"]]]]],"^13","Constrains a value to not exceed a maximum and minimum value."],"~$screen-y",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Coordinates","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","screenY()","^W",3,"^X",true,"^Y",3655,"^Z",3655,"^[",["^10",["^11",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]]]],"^13","Takes a three-dimensional x, y, z position and returns the y value\n for where it will appear on a (two-dimensional) screen, once\n affected by translate, scale or any other transformations"],"^R","1.0","^B","~$quil.core/screen-y","^S","Coordinates","^T","out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","screenY()","^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3649,"^Z",3655,"^1;",3,"^1<",true,"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^13","Takes a three-dimensional x, y, z position and returns the y value\n for where it will appear on a (two-dimensional) screen, once\n affected by translate, scale or any other transformations"],"~$fill-float",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]],"^17",["^10",[null,null,null,null]]],"^V","fill()","^W",3,"^X",true,"^Y",1705,"^Z",1705,"^[",["^10",["^11",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]]]],"^13","Sets the color used to fill shapes. For example, (fill 204 102 0),\n will specify that all subsequent shapes will be filled with orange."],"^R","1.0","^B","~$quil.core/fill-float","^S","Setting","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]],"^17",["^10",[null,null,null,null]]],"^V","fill()","^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1699,"^Z",1705,"^1;",4,"^1<",true,"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","^2N"]]],"^13","Sets the color used to fill shapes. For example, (fill 204 102 0),\n will specify that all subsequent shapes will be filled with orange."],"~$rect",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","2D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",8,"^15",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","~$top-left-r","~$top-right-r","~$bottom-right-r","~$bottom-left-r"]]],"^[",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","^2Z","^2[","^30","^31"]]],"^17",["^10",[null,null,null]]],"^V","rect()","^W",3,"^X",true,"^Y",3278,"^Z",3278,"^[",["^10",["^11",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","^2Z","^2[","^30","^31"]]]]],"^13","Draws a rectangle to the screen. A rectangle is a four-sided shape\n with every angle at ninety degrees. By default, the first two\n parameters set the location of the upper-left corner, the third\n sets the width, and the fourth sets the height. These parameters\n may be changed with rect-mode.\n\n To draw a rounded rectangle, add a fifth parameter, which is used as\n the radius value for all four corners. To use a different radius value\n for each corner, include eight parameters."],"^R","1.0","^B","~$quil.core/rect","^S","2D Primitives","^T","out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",8,"^15",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","^2Z","^2[","^30","^31"]]],"^[",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","^2Z","^2[","^30","^31"]]],"^17",["^10",[null,null,null]]],"^V","rect()","^15",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","^2Z","^2[","^30","^31"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",3272,"^Z",3278,"^1;",8,"^1<",true,"^[",["^10",[["~$x","~$y","^1Q","^1R"],["~$x","~$y","^1Q","^1R","~$r"],["~$x","~$y","^1Q","^1R","^2Z","^2[","^30","^31"]]],"^13","Draws a rectangle to the screen. A rectangle is a four-sided shape\n with every angle at ninety degrees. By default, the first two\n parameters set the location of the upper-left corner, the third\n sets the width, and the fourth sets the height. These parameters\n may be changed with rect-mode.\n\n To draw a rounded rectangle, add a fifth parameter, which is used as\n the radius value for all four corners. To use a different radius value\n for each corner, include eight parameters."],"~$log",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","log()","^W",3,"^X",false,"^Y",2429,"^Z",2429,"^[",["^10",["^11",["^10",[["~$val"]]]]],"^13","Calculates the natural logarithm (the base-e logarithm) of a\n number. This function expects the values greater than 0.0."],"^R","1.0","^B","~$quil.core/log","^S","Calculation","^T","out/quil/core.cljc","^U",6,"^V","log()","^15",["^10",[["^34"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",2423,"^19","^1:","^Z",2429,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^34"]]]]],"^13","Calculates the natural logarithm (the base-e logarithm) of a\n number. This function expects the values greater than 0.0."],"~$with-stroke",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.7","^S","Utility Macros","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["~$stroke-args","^22"]]]],"^[",["^10",[["^37","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^W",4,"^X",true,"^Y",4651,"^23",true,"^Z",4651,"^[",["^10",["^11",["^10",[["^37","~$&","^22"]]]]],"^13","Temporarily set the stroke color for the body of this macro.\n The code outside of with-stroke form will have the previous stroke color set.\n\n The stroke color has to be in a vector!\n Example: (with-stroke [255] ...)\n (with-stroke [10 80 98] ...)"],"^R","1.7","^B","~$quil.core/with-stroke","^S","Utility Macros","^T","out/quil/core.cljc","^U",15,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^37","^22"]]]],"^[",["^10",[["^37","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^15",["^10",[["^10",["^37","^22"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",true,"^Y",4645,"^23",true,"^19","^1:","^Z",4651,"^1;",1,"^1<",false,"^[",["^10",[["^37","~$&","^22"]]],"^13","Temporarily set the stroke color for the body of this macro.\n The code outside of with-stroke form will have the previous stroke color set.\n\n The stroke color has to be in a vector!\n Example: (with-stroke [255] ...)\n (with-stroke [10 80 98] ...)"],"~$ambient-float",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^[",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","ambient()","^W",3,"^X",true,"^Y",324,"^Z",324,"^[",["^10",["^11",["^10",[["^2M"],["~$x","~$y","~$z"]]]]],"^13","Sets the ambient reflectance for shapes drawn to the screen. This\n is combined with the ambient light component of environment. The\n color components set through the parameters define the\n reflectance. For example in the default color mode, setting x=255,\n y=126, z=0, would cause all the red light to reflect and half of the\n green light to reflect. Used in combination with emissive, specular,\n and shininess in setting the material properties of shapes."],"^R","1.0","^B","~$quil.core/ambient-float","^S","Material Properties","^T","out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^[",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","ambient()","^15",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",318,"^Z",324,"^1;",3,"^1<",true,"^[",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^13","Sets the ambient reflectance for shapes drawn to the screen. This\n is combined with the ambient light component of environment. The\n color components set through the parameters define the\n reflectance. For example in the default color mode, setting x=255,\n y=126, z=0, would cause all the red light to reflect and half of the\n green light to reflect. Used in combination with emissive, specular,\n and shininess in setting the material properties of shapes."],"~$end-raw",["^ ","^O","Output","^P",null,"^Q",["^ ","^O","Output","^R","1.0","^S","Files","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","endRaw()","^W",3,"^X",true,"^Y",1638,"^Z",1638,"^[",["^10",["^11",["^10",[[]]]]],"^13","Complement to begin-raw; they must always be used together. See\n the begin-raw docstring for details."],"^R","1.0","^B","~$quil.core/end-raw","^S","Files","^T","out/quil/core.cljc","^U",10,"^V","endRaw()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1632,"^19","^1:","^Z",1638,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Complement to begin-raw; they must always be used together. See\n the begin-raw docstring for details."],"~$radians",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","radians()","^W",3,"^X",false,"^Y",3190,"^Z",3190,"^[",["^10",["^11",["^10",[["~$degrees"]]]]],"^13","Converts a degree measurement to its corresponding value in\n radians. Radians and degrees are two ways of measuring the same\n thing. There are 360 degrees in a circle and 2*PI radians in a\n circle. For example, 90° = PI/2 = 1.5707964. All trigonometric\n methods in Processing require their parameters to be specified in\n radians."],"^R","1.0","^B","~$quil.core/radians","^S","Trigonometry","^T","out/quil/core.cljc","^U",10,"^V","radians()","^15",["^10",[["^3>"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",3184,"^19","^1:","^Z",3190,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^3>"]]]]],"^13","Converts a degree measurement to its corresponding value in\n radians. Radians and degrees are two ways of measuring the same\n thing. There are 360 degrees in a circle and 2*PI radians in a\n circle. For example, 90° = PI/2 = 1.5707964. All trigonometric\n methods in Processing require their parameters to be specified in\n radians."],"^3>",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","degrees()","^W",3,"^X",false,"^Y",1438,"^Z",1438,"^[",["^10",["^11",["^10",[["^3="]]]]],"^13","Converts a radian measurement to its corresponding value in\n degrees. Radians and degrees are two ways of measuring the same\n thing. There are 360 degrees in a circle and (* 2 Math/PI) radians\n in a circle. For example, (= 90° (/ Math/PI 2) 1.5707964). All\n trigonometric methods in Processing require their parameters to be\n specified in radians."],"^R","1.0","^B","~$quil.core/degrees","^S","Trigonometry","^T","out/quil/core.cljc","^U",10,"^V","degrees()","^15",["^10",[["^3="]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1432,"^19","^1:","^Z",1438,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^3="]]]]],"^13","Converts a radian measurement to its corresponding value in\n degrees. Radians and degrees are two ways of measuring the same\n thing. There are 360 degrees in a circle and (* 2 Math/PI) radians\n in a circle. For example, (= 90° (/ Math/PI 2) 1.5707964). All\n trigonometric methods in Processing require their parameters to be\n specified in radians."],"~$acos",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","acos()","^W",3,"^X",false,"^Y",299,"^Z",299,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","The inverse of cos, returns the arc cosine of a value. This\n function expects the values in the range of -1 to 1 and values are\n returned in the range 0 to Math/PI (3.1415927)."],"^R","1.0","^B","~$quil.core/acos","^S","Trigonometry","^T","out/quil/core.cljc","^U",7,"^V","acos()","^15",["^10",[["~$n"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",293,"^19","^1:","^Z",299,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","The inverse of cos, returns the arc cosine of a value. This\n function expects the values in the range of -1 to 1 and values are\n returned in the range 0 to Math/PI (3.1415927)."],"~$bezier-detail",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^V","bezierDetail()","^W",3,"^X",true,"^Y",692,"^Z",692,"^[",["^10",["^11",["^10",[["~$detail"]]]]],"^13","Sets the resolution at which Beziers display. The default value is\n 20. This function is only useful when using the :p3d or :opengl\n renderer as the default (:java2d) renderer does not use this\n information."],"^R","1.0","^B","~$quil.core/bezier-detail","^S","Curves","^T","out/quil/core.cljc","^U",16,"^V","bezierDetail()","^15",["^10",[["^3D"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",686,"^19","^1:","^Z",692,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^3D"]]]]],"^13","Sets the resolution at which Beziers display. The default value is\n 20. This function is only useful when using the :p3d or :opengl\n renderer as the default (:java2d) renderer does not use this\n information."],"~$texture",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","texture()","^W",3,"^X",true,"^Y",4349,"^Z",4349,"^[",["^10",["^11",["^10",[["^2="]]]]],"^13","Sets a texture to be applied to vertex points. The texture fn must\n be called between begin-shape and end-shape and before any calls to\n vertex.\n\n When textures are in use, the fill color is ignored. Instead, use\n tint to specify the color of the texture as it is applied to the\n shape."],"^R","1.0","^B","~$quil.core/texture","^S","Vertex","^T","out/quil/core.cljc","^U",10,"^V","texture()","^15",["^10",[["^2="]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4343,"^19","^1:","^Z",4349,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^2="]]]]],"^13","Sets a texture to be applied to vertex points. The texture fn must\n be called between begin-shape and end-shape and before any calls to\n vertex.\n\n When textures are in use, the fill color is ignored. Instead, use\n tint to specify the color of the texture as it is applied to the\n shape."],"~$stroke-int",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$rgb"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","stroke()","^W",3,"^X",true,"^Y",4030,"^Z",4030,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"]]]]],"^13","Sets the color used to draw lines and borders around\n shapes. Converts rgb to int and alpha to a float."],"^R","1.0","^B","~$quil.core/stroke-int","^S","Setting","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","stroke()","^15",["^10",[["^3I"],["^3I","^2N"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4024,"^Z",4030,"^1;",2,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"]]],"^13","Sets the color used to draw lines and borders around\n shapes. Converts rgb to int and alpha to a float."],"~$print-camera",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","printCamera()","^W",3,"^X",true,"^Y",3076,"^Z",3076,"^[",["^10",["^11",["^10",[[]]]]],"^13","Prints the current camera matrix to std out. Useful for debugging."],"^R","1.0","^B","~$quil.core/print-camera","^S","Camera","^T","out/quil/core.cljc","^U",15,"^V","printCamera()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3070,"^19","^1:","^Z",3076,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Prints the current camera matrix to std out. Useful for debugging."],"~$floor",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","2.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^V","floor()","^W",3,"^X",false,"^Y",1830,"^Z",1830,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","Calculates the closest int value that is less than or equal to the\n value of the parameter. For example, (floor 9.03) returns the value 9."],"^R","2.0","^B","~$quil.core/floor","^S","Calculation","^T","out/quil/core.cljc","^U",8,"^V","floor()","^15",["^10",[["~$n"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1824,"^19","^1:","^Z",1830,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","Calculates the closest int value that is less than or equal to the\n value of the parameter. For example, (floor 9.03) returns the value 9."],"~$atan2",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^V","atan2()","^W",3,"^X",false,"^Y",473,"^Z",473,"^[",["^10",["^11",["^10",[["~$y","~$x"]]]]],"^13","Calculates the angle (in radians) from a specified point to the\n coordinate origin as measured from the positive x-axis. Values are\n returned as a float in the range from PI to -PI. The atan2 function\n is most often used for orienting geometry to the position of the\n cursor. Note: The y-coordinate of the point is the first parameter\n and the x-coordinate is the second due to the structure of\n calculating the tangent."],"^R","1.0","^B","~$quil.core/atan2","^S","Trigonometry","^T","out/quil/core.cljc","^U",8,"^V","atan2()","^15",["^10",[["~$y","~$x"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",467,"^19","^1:","^Z",473,"^1;",2,"^1<",true,"^[",["^10",["^11",["^10",[["~$y","~$x"]]]]],"^13","Calculates the angle (in radians) from a specified point to the\n coordinate origin as measured from the positive x-axis. Values are\n returned as a float in the range from PI to -PI. The atan2 function\n is most often used for orienting geometry to the position of the\n cursor. Note: The y-coordinate of the point is the first parameter\n and the x-coordinate is the second due to the structure of\n calculating the tangent."],"~$millis",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Time & Date","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","millis()","^W",3,"^X",true,"^Y",2499,"^Z",2499,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the number of milliseconds (thousandths of a second) since\n starting the sketch. This information is often used for timing\n animation sequences."],"^R","1.0","^B","~$quil.core/millis","^S","Time & Date","^T","out/quil/core.cljc","^U",9,"^V","millis()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2493,"^19","^1:","^Z",2499,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the number of milliseconds (thousandths of a second) since\n starting the sketch. This information is often used for timing\n animation sequences."],"~$lerp-color",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","lerpColor()","^W",3,"^X",true,"^Y",2254,"^Z",2254,"^[",["^10",["^11",["^10",[["~$c1","~$c2","^2Q"]]]]],"^13","Calculates a color or colors between two color at a specific\n increment. The amt parameter is the amount to interpolate between\n the two values where 0.0 equal to the first point, 0.1 is very near\n the first point, 0.5 is half-way in between, etc."],"^R","1.0","^B","~$quil.core/lerp-color","^S","Creating & Reading","^T","out/quil/core.cljc","^U",13,"^V","lerpColor()","^15",["^10",[["^3T","^3U","^2Q"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2248,"^19","^1:","^Z",2254,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["^3T","^3U","^2Q"]]]]],"^13","Calculates a color or colors between two color at a specific\n increment. The amt parameter is the amount to interpolate between\n the two values where 0.0 equal to the first point, 0.1 is very near\n the first point, 0.5 is half-way in between, etc."],"~$image-modes",["^ ","^B","~$quil.core/image-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",61,"^U",13,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",61,"^W",2,"^Z",61,"^U",13],"^1?","^1@"],"~$no-fill-prop",["^ ","^B","~$quil.core/no-fill-prop","^T","out/quil/core.cljc","^Y",24,"^W",1,"^Z",24,"^U",35,"~:private",true,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",24,"^W",23,"^Z",24,"^U",35,"^3[",true],"^1?","~$string"],"~$color-mode",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["^1I"],["^1I","~$max"],["^1I","~$max-x","~$max-y","~$max-z"],["^1I","^43","^44","^45","~$max-a"]]],"^[",["^10",[["^1I"],["^1I","^42"],["^1I","^43","^44","^45"],["^1I","^43","^44","^45","^46"]]],"^17",["^10",[null,null,null,null]]],"^V","colorMode()","^W",3,"^X",true,"^Y",1041,"^Z",1041,"^[",["^10",["^11",["^10",[["^1I"],["^1I","^42"],["^1I","^43","^44","^45"],["^1I","^43","^44","^45","^46"]]]]],"^13","Changes the way Processing interprets color data. Available modes\n are :rgb and :hsb.By default, the parameters for fill, stroke,\n background, and color are defined by values between 0 and 255 using\n the :rgb color model. The color-mode fn is used to change the\n numerical range used for specifying colors and to switch color\n systems. For example, calling\n (color-mode :rgb 1.0) will specify that values are specified between\n 0 and 1. The limits for defining colors are altered by setting the\n parameters range1, range2, range3, and range 4."],"^R","1.0","^B","~$quil.core/color-mode","^S","Creating & Reading","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["^1I"],["^1I","^42"],["^1I","^43","^44","^45"],["^1I","^43","^44","^45","^46"]]],"^[",["^10",[["^1I"],["^1I","^42"],["^1I","^43","^44","^45"],["^1I","^43","^44","^45","^46"]]],"^17",["^10",[null,null,null,null]]],"^V","colorMode()","^15",["^10",[["^1I"],["^1I","^42"],["^1I","^43","^44","^45"],["^1I","^43","^44","^45","^46"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1035,"^Z",1041,"^1;",5,"^1<",true,"^[",["^10",[["^1I"],["^1I","^42"],["^1I","^43","^44","^45"],["^1I","^43","^44","^45","^46"]]],"^13","Changes the way Processing interprets color data. Available modes\n are :rgb and :hsb.By default, the parameters for fill, stroke,\n background, and color are defined by values between 0 and 255 using\n the :rgb color model. The color-mode fn is used to change the\n numerical range used for specifying colors and to switch color\n systems. For example, calling\n (color-mode :rgb 1.0) will specify that values are specified between\n 0 and 1. The limits for defining colors are altered by setting the\n parameters range1, range2, range3, and range 4."],"~$create-image",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","createImage()","^W",3,"^X",true,"^Y",1243,"^Z",1243,"^[",["^10",["^11",["^10",[["~$w","~$h","~$format"]]]]],"^13","Creates a new PImage (the datatype for storing images). This\n provides a fresh buffer of pixels to play with. Set the size of the\n buffer with the width and height parameters. The format parameter\n defines how the pixels are stored. See the PImage reference for more\n information.\n\n Possible formats: :rgb, :argb, :alpha (grayscale alpha channel)\n\n Prefer using create-image over initialising new PImage instances\n directly."],"^R","1.0","^B","~$quil.core/create-image","^S",null,"^T","out/quil/core.cljc","^U",15,"^V","createImage()","^15",["^10",[["~$w","~$h","^49"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1237,"^19","^1:","^Z",1243,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$w","~$h","^49"]]]]],"^13","Creates a new PImage (the datatype for storing images). This\n provides a fresh buffer of pixels to play with. Set the size of the\n buffer with the width and height parameters. The format parameter\n defines how the pixels are stored. See the PImage reference for more\n information.\n\n Possible formats: :rgb, :argb, :alpha (grayscale alpha channel)\n\n Prefer using create-image over initialising new PImage instances\n directly."],"~$sq",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",5,"^V","sq()","^W",3,"^X",false,"^Y",3975,"^Z",3975,"^[",["^10",["^11",["^10",[["~$a"]]]]],"^13","Squares a number (multiplies a number by itself). The result is\n always a positive number, as multiplying two negative numbers always\n yields a positive result. For example, -1 * -1 = 1."],"^R","1.0","^B","~$quil.core/sq","^S","Calculation","^T","out/quil/core.cljc","^U",5,"^V","sq()","^15",["^10",[["~$a"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",3969,"^19","^1:","^Z",3975,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$a"]]]]],"^13","Squares a number (multiplies a number by itself). The result is\n always a positive number, as multiplying two negative numbers always\n yields a positive result. For example, -1 * -1 = 1."],"^1R",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","getHeight()","^W",3,"~:processing-link",null,"^X",true,"^Y",1970,"^Z",1970,"^[",["^10",["^11",["^10",[[]]]]],"^13","Height of the display window. The value of height is zero until\n size is called."],"^R","1.0","^B","~$quil.core/height","^S",null,"^T","out/quil/core.cljc","^U",9,"^V","getHeight()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^4=",null,"^18",false,"^X",true,"^Y",1963,"^19","^1:","^Z",1970,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Height of the display window. The value of height is zero until\n size is called."],"~$no-loop",["^ ","^O","Structure","^P",null,"^Q",["^ ","^O","Structure","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","noLoop()","^W",3,"^X",true,"^Y",2799,"^Z",2799,"^[",["^10",["^11",["^10",[[]]]]],"^13","Stops Processing from continuously executing the code within\n draw. If start-loop is called, the code in draw will begin to run\n continuously again. If using no-loop in setup, it should be the last\n line inside the block.\n\n When no-loop is used, it's not possible to manipulate or access the\n screen inside event handling functions such as mouse-pressed or\n key-pressed. Instead, use those functions to call redraw or\n loop which will run draw, which can update the screen\n properly. This means that when no-loop has been called, no drawing\n can happen, and functions like save-frame may not be used.\n\n Note that if the sketch is resized, redraw will be called to\n update the sketch, even after no-oop has been\n specified. Otherwise, the sketch would enter an odd state until\n loop was called."],"^R","1.0","^B","~$quil.core/no-loop","^S",null,"^T","out/quil/core.cljc","^U",10,"^V","noLoop()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2793,"^19","^1:","^Z",2799,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Stops Processing from continuously executing the code within\n draw. If start-loop is called, the code in draw will begin to run\n continuously again. If using no-loop in setup, it should be the last\n line inside the block.\n\n When no-loop is used, it's not possible to manipulate or access the\n screen inside event handling functions such as mouse-pressed or\n key-pressed. Instead, use those functions to call redraw or\n loop which will run draw, which can update the screen\n properly. This means that when no-loop has been called, no drawing\n can happen, and functions like save-frame may not be used.\n\n Note that if the sketch is resized, redraw will be called to\n update the sketch, even after no-oop has been\n specified. Otherwise, the sketch would enter an odd state until\n loop was called."],"~$minute",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Time & Date","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","minute()","^W",3,"^X",false,"^Y",2512,"^Z",2512,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current minute as a value from 0 - 59"],"^R","1.0","^B","~$quil.core/minute","^S","Time & Date","^T","out/quil/core.cljc","^U",9,"^V","minute()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",2506,"^19","^1:","^Z",2512,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current minute as a value from 0 - 59"],"~$text",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","~$x1","~$y1","~$x2","~$y2"]]],"^[",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","^4D","^4E","^4F","^4G"]]],"^17",["^10",[null,null,null]]],"^V","text()","^W",3,"^X",true,"^Y",4176,"^Z",4176,"^[",["^10",["^11",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","^4D","^4E","^4F","^4G"]]]]],"^13","Draws text to the screen in the position specified by the x and y\n parameters and the optional z parameter. A default font will be used\n unless a font is set with the text-font fn. Change the color of the\n text with the fill fn. The text displays in relation to the\n text-align fn, which gives the option to draw to the left, right, and\n center of the coordinates.\n\n The x1, y1, x2 and y2 parameters define a\n rectangular area to display within and may only be used with string\n data. For text drawn inside a rectangle, the coordinates are\n interpreted based on the current rect-mode setting."],"^R","1.0","^B","~$quil.core/text","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","^4D","^4E","^4F","^4G"]]],"^[",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","^4D","^4E","^4F","^4G"]]],"^17",["^10",[null,null,null]]],"^V","text()","^15",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","^4D","^4E","^4F","^4G"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",4170,"^Z",4176,"^1;",5,"^1<",true,"^[",["^10",[["~$s","~$x","~$y"],["~$s","~$x","~$y","~$z"],["~$s","^4D","^4E","^4F","^4G"]]],"^13","Draws text to the screen in the position specified by the x and y\n parameters and the optional z parameter. A default font will be used\n unless a font is set with the text-font fn. Change the color of the\n text with the fill fn. The text displays in relation to the\n text-align fn, which gives the option to draw to the left, right, and\n center of the coordinates.\n\n The x1, y1, x2 and y2 parameters define a\n rectangular area to display within and may only be used with string\n data. For text drawn inside a rectangle, the coordinates are\n interpreted based on the current rect-mode setting."],"~$available-fonts",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",18,"^V","PFont.list()","^W",3,"^X",false,"^Y",491,"^Z",491,"^[",["^10",["^11",["^10",[[]]]]],"^13","A sequence of strings representing the fonts on this system\n available for use.\n\n Because of limitations in Java, not all fonts can be used and some\n might work with one operating system and not others. When sharing a\n sketch with other people or posting it on the web, you may need to\n include a .ttf or .otf version of your font in the data directory of\n the sketch because other people might not have the font installed on\n their computer. Only fonts that can legally be distributed should be\n included with a sketch."],"^R","1.0","^B","~$quil.core/available-fonts","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",18,"^V","PFont.list()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",485,"^19","~$seq","^Z",491,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","A sequence of strings representing the fonts on this system\n available for use.\n\n Because of limitations in Java, not all fonts can be used and some\n might work with one operating system and not others. When sharing a\n sketch with other people or posting it on the web, you may need to\n include a .ttf or .otf version of your font in the data directory of\n the sketch because other people might not have the font installed on\n their computer. Only fonts that can legally be distributed should be\n included with a sketch."],"~$rect-modes",["^ ","^B","~$quil.core/rect-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",62,"^U",12,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",62,"^W",2,"^Z",62,"^U",12],"^1?","^1@"],"~$THIRD-PI",["^ ","^B","~$quil.core/THIRD-PI","^T","out/quil/core.cljc","^Y",78,"^W",1,"^Z",78,"^U",14,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",78,"^W",6,"^Z",78,"^U",14],"^1?","~$number"],"~$binary",["^ ","^O","Data","^P",null,"^Q",["^ ","^O","Data","~:require-binding",false,"^R","1.0","^S","Conversion","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^34"],["^34","~$num-digits"]]],"^[",["^10",[["^34"],["^34","^4S"]]],"^17",["^10",[null,null]]],"^V","binary()","^W",3,"^Y",761,"^Z",761,"^[",["^10",["^11",["^10",[["^34"],["^34","^4S"]]]]],"^13","Returns a string representing the binary value of an int, char or\n byte. When converting an int to a string, it is possible to specify\n the number of digits used."],"^4R",false,"^R","1.0","^B","~$quil.core/binary","^S","Conversion","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^34"],["^34","^4S"]]],"^[",["^10",[["^34"],["^34","^4S"]]],"^17",["^10",[null,null]]],"^V","binary()","^15",["^10",[["^34"],["^34","^4S"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^Y",755,"^Z",761,"^1;",2,"^1<",true,"^[",["^10",[["^34"],["^34","^4S"]]],"^13","Returns a string representing the binary value of an int, char or\n byte. When converting an int to a string, it is possible to specify\n the number of digits used."],"~$random-2d",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","2.6","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","random2d()","^W",3,"^X",true,"^Y",2678,"^Z",2678,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a new 2D unit vector in a random direction"],"^R","2.6","^B","~$quil.core/random-2d","^S","Random","^T","out/quil/core.cljc","^U",12,"^V","random2d()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2672,"^19","~$cljs.core/IVector","^Z",2678,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a new 2D unit vector in a random direction"],"~$pop-matrix",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","popMatrix()","^W",3,"^X",true,"^Y",3027,"^Z",3027,"^[",["^10",["^11",["^10",[[]]]]],"^13","Pops the current transformation matrix off the matrix\n stack. Understanding pushing and popping requires understanding the\n concept of a matrix stack. The push-matrix fn saves the current\n coordinate system to the stack and pop-matrix restores the prior\n coordinate system. push-matrix and pop-matrix are used in conjuction\n with the other transformation methods and may be embedded to control\n the scope of the transformations."],"^R","1.0","^B","~$quil.core/pop-matrix","^S",null,"^T","out/quil/core.cljc","^U",13,"^V","popMatrix()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3021,"^19","^1:","^Z",3027,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Pops the current transformation matrix off the matrix\n stack. Understanding pushing and popping requires understanding the\n concept of a matrix stack. The push-matrix fn saves the current\n coordinate system to the stack and pop-matrix restores the prior\n coordinate system. push-matrix and pop-matrix are used in conjuction\n with the other transformation methods and may be embedded to control\n the scope of the transformations."],"~$ceil",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","ceil()","^W",3,"^X",false,"^Y",972,"^Z",972,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","Calculates the closest int value that is greater than or equal to\n the value of the parameter. For example, (ceil 9.03) returns the\n value 10."],"^R","1.0","^B","~$quil.core/ceil","^S","Calculation","^T","out/quil/core.cljc","^U",7,"^V","ceil()","^15",["^10",[["~$n"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",966,"^19","^1:","^Z",972,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","Calculates the closest int value that is greater than or equal to\n the value of the parameter. For example, (ceil 9.03) returns the\n value 10."],"~$key-code",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Keyboard","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","keyCode","^W",3,"^X",true,"^Y",2168,"^Z",2168,"^[",["^10",["^11",["^10",[[]]]]],"^13","The variable keyCode is used to detect special keys such as the UP,\n DOWN, LEFT, RIGHT arrow keys and ALT, CONTROL, SHIFT. When checking\n for these keys, it's first necessary to check and see if the key is\n coded. This is done with the conditional (= (key) CODED).\n\n The keys included in the ASCII specification (BACKSPACE, TAB, ENTER,\n RETURN, ESC, and DELETE) do not require checking to see if they key\n is coded, and you should simply use the key variable instead of\n key-code If you're making cross-platform projects, note that the\n ENTER key is commonly used on PCs and Unix and the RETURN key is\n used instead on Macintosh. Check for both ENTER and RETURN to make\n sure your program will work for all platforms.\n\n For users familiar with Java, the values for UP and DOWN are simply\n shorter versions of Java's KeyEvent.VK_UP and\n KeyEvent.VK_DOWN. Other keyCode values can be found in the Java\n KeyEvent reference."],"^R","1.0","^B","~$quil.core/key-code","^S","Keyboard","^T","out/quil/core.cljc","^U",11,"^V","keyCode","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2162,"^19","^1:","^Z",2168,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","The variable keyCode is used to detect special keys such as the UP,\n DOWN, LEFT, RIGHT arrow keys and ALT, CONTROL, SHIFT. When checking\n for these keys, it's first necessary to check and see if the key is\n coded. This is done with the conditional (= (key) CODED).\n\n The keys included in the ASCII specification (BACKSPACE, TAB, ENTER,\n RETURN, ESC, and DELETE) do not require checking to see if they key\n is coded, and you should simply use the key variable instead of\n key-code If you're making cross-platform projects, note that the\n ENTER key is commonly used on PCs and Unix and the RETURN key is\n used instead on Macintosh. Check for both ENTER and RETURN to make\n sure your program will work for all platforms.\n\n For users familiar with Java, the values for UP and DOWN are simply\n shorter versions of Java's KeyEvent.VK_UP and\n KeyEvent.VK_DOWN. Other keyCode values can be found in the Java\n KeyEvent reference."],"~$sphere",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","3D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","sphere()","^W",3,"^X",true,"^Y",3923,"^Z",3923,"^[",["^10",["^11",["^10",[["~$radius"]]]]],"^13","Generates a hollow ball made from tessellated triangles."],"^R","1.0","^B","~$quil.core/sphere","^S","3D Primitives","^T","out/quil/core.cljc","^U",9,"^V","sphere()","^15",["^10",[["^53"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3917,"^19","^1:","^Z",3923,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^53"]]]]],"^13","Generates a hollow ball made from tessellated triangles."],"~$request-image",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^V","requestImage()","^W",3,"^X",true,"^Y",3366,"^Z",3366,"^[",["^10",["^11",["^10",[["~$filename"]]]]],"^13","This function load images on a separate thread so that your sketch\n does not freeze while images load during setup. While the image is\n loading, its width and height will be 0. If an error occurs while\n loading the image, its width and height will be set to -1. You'll\n know when the image has loaded properly because its width and height\n will be greater than 0. Asynchronous image loading (particularly\n when downloading from a server) can dramatically improve\n performance."],"^R","1.0","^B","~$quil.core/request-image","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",16,"^V","requestImage()","^15",["^10",[["^56"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3360,"^19","^1:","^Z",3366,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","This function load images on a separate thread so that your sketch\n does not freeze while images load during setup. While the image is\n loading, its width and height will be 0. If an error occurs while\n loading the image, its width and height will be set to -1. You'll\n know when the image has loaded properly because its width and height\n will be greater than 0. Asynchronous image loading (particularly\n when downloading from a server) can dramatically improve\n performance."],"~$hue",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","hue()","^W",3,"^X",true,"^Y",2064,"^Z",2064,"^[",["^10",["^11",["^10",[["~$col"]]]]],"^13","Extracts the hue value from a color."],"^R","1.0","^B","~$quil.core/hue","^S","Creating & Reading","^T","out/quil/core.cljc","^U",6,"^V","hue()","^15",["^10",[["^59"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2058,"^19","^1:","^Z",2064,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^59"]]]]],"^13","Extracts the hue value from a color."],"~$background-int",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","background()","^W",3,"^X",true,"^Y",532,"^Z",532,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"]]]]],"^13","Sets the color used for the background of the Processing\n window. The default background is light gray. In the draw function,\n the background color is used to clear the display window at the\n beginning of each frame.\n\n It is not possible to use transparency (alpha) in background colors\n with the main drawing surface, however they will work properly with\n create-graphics. Converts rgb to an int and alpha to a float."],"^R","1.0","^B","~$quil.core/background-int","^S","Setting","^T","out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","background()","^15",["^10",[["^3I"],["^3I","^2N"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",526,"^Z",532,"^1;",2,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"]]],"^13","Sets the color used for the background of the Processing\n window. The default background is light gray. In the draw function,\n the background color is used to clear the display window at the\n beginning of each frame.\n\n It is not possible to use transparency (alpha) in background colors\n with the main drawing surface, however they will work properly with\n create-graphics. Converts rgb to an int and alpha to a float."],"~$start-loop",["^ ","^O","Structure","^P",null,"^Q",["^ ","^O","Structure","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","loop()","^W",3,"^X",true,"^Y",4004,"^Z",4004,"^[",["^10",["^11",["^10",[[]]]]],"^13","Causes Processing to continuously execute the code within\n draw. If no-loop is called, the code in draw stops executing."],"^R","1.0","^B","~$quil.core/start-loop","^S",null,"^T","out/quil/core.cljc","^U",13,"^V","loop()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3998,"^19","^1:","^Z",4004,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Causes Processing to continuously execute the code within\n draw. If no-loop is called, the code in draw stops executing."],"~$no-fill?",["^ ","^P",null,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",4132,"^W",8,"^Z",4132,"^U",16,"^3[",true,"^[",["^10",["^11",["^10",[["^21"]]]]],"^13","Returns whether fill is disabled for current graphics."],"^3[",true,"^B","~$quil.core/no-fill?","^T","out/quil/core.cljc","^U",16,"^15",["^10",[["^21"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^Y",4132,"^19","~$boolean","^Z",4132,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^21"]]]]],"^13","Returns whether fill is disabled for current graphics."],"~$curve-vertex",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","curveVertex()","^W",3,"^X",true,"^Y",1407,"^Z",1407,"^[",["^10",["^11",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]]]],"^13","Specifies vertex coordinates for curves. This function may only be\n used between begin-shape and end-shape and only when there is no\n mode keyword specified to begin-shape. The first and last points in a\n series of curve-vertex lines will be used to guide the beginning and\n end of a the curve. A minimum of four points is required to draw a\n tiny curve between the second and third points. Adding a fifth point\n with curve-vertex will draw the curve between the second, third, and\n fourth points. The curve-vertex function is an implementation of\n Catmull-Rom splines."],"^R","1.0","^B","~$quil.core/curve-vertex","^S","Vertex","^T","out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","curveVertex()","^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1401,"^Z",1407,"^1;",3,"^1<",true,"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^13","Specifies vertex coordinates for curves. This function may only be\n used between begin-shape and end-shape and only when there is no\n mode keyword specified to begin-shape. The first and last points in a\n series of curve-vertex lines will be used to guide the beginning and\n end of a the curve. A minimum of four points is required to draw a\n tiny curve between the second and third points. Adding a fifth point\n with curve-vertex will draw the curve between the second, third, and\n fourth points. The curve-vertex function is an implementation of\n Catmull-Rom splines."],"~$state-atom",["^ ","^O","State","^P",null,"^Q",["^ ","^O","State","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^W",3,"^X",true,"^Y",199,"^Z",199,"^[",["^10",["^11",["^10",[[]]]]],"^13","Retrieve sketch-specific state-atom. All changes to the\n atom will be reflected in the state.\n\n (set-state! :foo 1)\n (state :foo) ;=> 1\n (swap! (state-atom) update-in [:foo] inc)\n (state :foo) ;=> 2"],"^R","1.0","^B","~$quil.core/state-atom","^S",null,"^T","out/quil/core.cljc","^U",13,"^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",194,"^19","^1:","^Z",199,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Retrieve sketch-specific state-atom. All changes to the\n atom will be reflected in the state.\n\n (set-state! :foo 1)\n (state :foo) ;=> 1\n (swap! (state-atom) update-in [:foo] inc)\n (state :foo) ;=> 2"],"~$load-image",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","loadImage()","^W",3,"^X",true,"^Y",2373,"^Z",2373,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","Loads an image into a variable of type PImage. Four types of\n images ( .gif, .jpg, .tga, .png) images may be loaded. To load\n correctly, images must be located in the data directory of the\n current sketch. In most cases, load all images in setup to preload\n them at the start of the program. Loading images inside draw will\n reduce the speed of a program.\n\n The filename parameter can also be a URL to a file found online.\n\n If an image is not loaded successfully, the null value is returned\n and an error message will be printed to the console. The error\n message does not halt the program, however the null value may cause\n a NullPointerException if your code does not check whether the value\n returned from load-image is nil.\n\n Depending on the type of error, a PImage object may still be\n returned, but the width and height of the image will be set to\n -1. This happens if bad image data is returned or cannot be decoded\n properly. Sometimes this happens with image URLs that produce a 403\n error or that redirect to a password prompt, because load-image\n will attempt to interpret the HTML as image data."],"^R","1.0","^B","~$quil.core/load-image","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",13,"^V","loadImage()","^15",["^10",[["^56"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2367,"^19","^1:","^Z",2373,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","Loads an image into a variable of type PImage. Four types of\n images ( .gif, .jpg, .tga, .png) images may be loaded. To load\n correctly, images must be located in the data directory of the\n current sketch. In most cases, load all images in setup to preload\n them at the start of the program. Loading images inside draw will\n reduce the speed of a program.\n\n The filename parameter can also be a URL to a file found online.\n\n If an image is not loaded successfully, the null value is returned\n and an error message will be printed to the console. The error\n message does not halt the program, however the null value may cause\n a NullPointerException if your code does not check whether the value\n returned from load-image is nil.\n\n Depending on the type of error, a PImage object may still be\n returned, but the width and height of the image will be set to\n -1. This happens if bad image data is returned or cannot be decoded\n properly. Sometimes this happens with image URLs that produce a 403\n error or that redirect to a password prompt, because load-image\n will attempt to interpret the HTML as image data."],"~$bezier",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",12,"^15",["^10",[["^4D","^4E","~$cx1","~$cy1","~$cx2","~$cy2","^4F","^4G"],["^4D","^4E","~$z1","^5I","^5J","~$cz1","^5K","^5L","~$cz2","^4F","^4G","~$z2"]]],"^[",["^10",[["^4D","^4E","^5I","^5J","^5K","^5L","^4F","^4G"],["^4D","^4E","^5M","^5I","^5J","^5N","^5K","^5L","^5O","^4F","^4G","^5P"]]],"^17",["^10",[null,null]]],"^V","bezier()","^W",3,"^X",true,"^Y",667,"^Z",667,"^[",["^10",["^11",["^10",[["^4D","^4E","^5I","^5J","^5K","^5L","^4F","^4G"],["^4D","^4E","^5M","^5I","^5J","^5N","^5K","^5L","^5O","^4F","^4G","^5P"]]]]],"^13","Draws a Bezier curve on the screen. These curves are defined by a\n series of anchor and control points. The first two parameters\n specify the first anchor point and the last two parameters specify\n the other anchor point. The middle parameters specify the control\n points which define the shape of the curve."],"^R","1.0","^B","~$quil.core/bezier","^S","Curves","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",12,"^15",["^10",[["^4D","^4E","^5I","^5J","^5K","^5L","^4F","^4G"],["^4D","^4E","^5M","^5I","^5J","^5N","^5K","^5L","^5O","^4F","^4G","^5P"]]],"^[",["^10",[["^4D","^4E","^5I","^5J","^5K","^5L","^4F","^4G"],["^4D","^4E","^5M","^5I","^5J","^5N","^5K","^5L","^5O","^4F","^4G","^5P"]]],"^17",["^10",[null,null]]],"^V","bezier()","^15",["^10",[["^4D","^4E","^5I","^5J","^5K","^5L","^4F","^4G"],["^4D","^4E","^5M","^5I","^5J","^5N","^5K","^5L","^5O","^4F","^4G","^5P"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",661,"^Z",667,"^1;",12,"^1<",true,"^[",["^10",[["^4D","^4E","^5I","^5J","^5K","^5L","^4F","^4G"],["^4D","^4E","^5M","^5I","^5J","^5N","^5K","^5L","^5O","^4F","^4G","^5P"]]],"^13","Draws a Bezier curve on the screen. These curves are defined by a\n series of anchor and control points. The first two parameters\n specify the first anchor point and the last two parameters specify\n the other anchor point. The middle parameters specify the control\n points which define the shape of the curve."],"~$smooth",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^1J"]]],"^[",["^10",[[],["^1J"]]],"^17",["^10",[null,null]]],"^V","smooth()","^W",3,"^X",true,"^Y",3877,"^Z",3877,"^[",["^10",["^11",["^10",[[],["^1J"]]]]],"^13","Draws all geometry with smooth (anti-aliased) edges. This will slow\n down the frame rate of the application, but will enhance the visual\n refinement.\n\n Must be called inside :settings handler.\n\n The level parameter (int) increases the level of smoothness with the\n P2D and P3D renderers. This is the level of over sampling applied to\n the graphics buffer. The value '2' will double the rendering size\n before scaling it down to the display size. This is called '2x\n anti-aliasing.' The value 4 is used for 4x anti-aliasing and 8 is\n specified for 8x anti-aliasing. If level is set to 0, it will disable\n all smoothing; it's the equivalent of the function noSmooth().\n The maximum anti-aliasing level is determined by the hardware of the\n machine that is running the software.\n\n Note that smooth will also improve image quality of resized images."],"^R","1.0","^B","~$quil.core/smooth","^S","Attributes","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^1J"]]],"^[",["^10",[[],["^1J"]]],"^17",["^10",[null,null]]],"^V","smooth()","^15",["^10",[[],["^1J"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3871,"^Z",3877,"^1;",1,"^1<",true,"^[",["^10",[[],["^1J"]]],"^13","Draws all geometry with smooth (anti-aliased) edges. This will slow\n down the frame rate of the application, but will enhance the visual\n refinement.\n\n Must be called inside :settings handler.\n\n The level parameter (int) increases the level of smoothness with the\n P2D and P3D renderers. This is the level of over sampling applied to\n the graphics buffer. The value '2' will double the rendering size\n before scaling it down to the display size. This is called '2x\n anti-aliasing.' The value 4 is used for 4x anti-aliasing and 8 is\n specified for 8x anti-aliasing. If level is set to 0, it will disable\n all smoothing; it's the equivalent of the function noSmooth().\n The maximum anti-aliasing level is determined by the hardware of the\n machine that is running the software.\n\n Note that smooth will also improve image quality of resized images."],"~$filter-modes",["^ ","^B","~$quil.core/filter-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",71,"^U",14,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",71,"^W",2,"^Z",71,"^U",14],"^1?","^1@"],"~$shear-x",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","shearX()","^W",3,"^X",true,"^Y",3776,"^Z",3776,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Shears a shape around the x-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0 to\n PI*2) or converted to radians with the radians() function. Objects\n are always sheared around their relative position to the origin and\n positive numbers shear objects in a clockwise direction.\n Transformations apply to everything that happens after and\n subsequent calls to the function accumulates the effect. For\n example, calling (shear-x (/ PI 2)) and then (shear-x (/ PI 2)) is\n the same as (shear-x PI). If shear-x is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function works in P2D or JAVA2D mode.\n\n Technically, shear-x multiplies the current transformation matrix\n by a rotation matrix. This function can be further controlled by the\n push-matrix and pop-matrix fns."],"^R","1.0","^B","~$quil.core/shear-x","^S",null,"^T","out/quil/core.cljc","^U",10,"^V","shearX()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3770,"^19","^1:","^Z",3776,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Shears a shape around the x-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0 to\n PI*2) or converted to radians with the radians() function. Objects\n are always sheared around their relative position to the origin and\n positive numbers shear objects in a clockwise direction.\n Transformations apply to everything that happens after and\n subsequent calls to the function accumulates the effect. For\n example, calling (shear-x (/ PI 2)) and then (shear-x (/ PI 2)) is\n the same as (shear-x PI). If shear-x is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function works in P2D or JAVA2D mode.\n\n Technically, shear-x multiplies the current transformation matrix\n by a rotation matrix. This function can be further controlled by the\n push-matrix and pop-matrix fns."],"~$stroke-weight",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^V","strokeWeight()","^W",3,"^X",true,"^Y",4100,"^Z",4100,"^[",["^10",["^11",["^10",[["~$weight"]]]]],"^13","Sets the width of the stroke used for lines, points, and the border\n around shapes. All widths are set in units of pixels. "],"^R","1.0","^B","~$quil.core/stroke-weight","^S","Attributes","^T","out/quil/core.cljc","^U",16,"^V","strokeWeight()","^15",["^10",[["^5Y"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4094,"^19","^1:","^Z",4100,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^5Y"]]]]],"^13","Sets the width of the stroke used for lines, points, and the border\n around shapes. All widths are set in units of pixels. "],"~$directional-light",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",20,"^V","directionalLight()","^W",3,"^X",true,"^Y",1473,"^Z",1473,"^[",["^10",["^11",["^10",[["~$r","~$g","~$b","~$nx","~$ny","~$nz"]]]]],"^13","Adds a directional light. Directional light comes from one\n direction and is stronger when hitting a surface squarely and weaker\n if it hits at a gentle angle. After hitting a surface, a\n directional lights scatters in all directions. Lights need to be\n included in the draw fn to remain persistent in a looping\n program. Placing them in the setup fn of a looping program will cause\n them to only have an effect the first time through the loop. The\n affect of the r, g, and b parameters is determined by the current\n color mode. The nx, ny, and nz parameters specify the direction the\n light is facing. For example, setting ny to -1 will cause the\n geometry to be lit from below (the light is facing directly upward)"],"^R","1.0","^B","~$quil.core/directional-light","^S","Lights","^T","out/quil/core.cljc","^U",20,"^V","directionalLight()","^15",["^10",[["~$r","~$g","~$b","^60","^61","^62"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1467,"^19","^1:","^Z",1473,"^1;",6,"^1<",true,"^[",["^10",["^11",["^10",[["~$r","~$g","~$b","^60","^61","^62"]]]]],"^13","Adds a directional light. Directional light comes from one\n direction and is stronger when hitting a surface squarely and weaker\n if it hits at a gentle angle. After hitting a surface, a\n directional lights scatters in all directions. Lights need to be\n included in the draw fn to remain persistent in a looping\n program. Placing them in the setup fn of a looping program will cause\n them to only have an effect the first time through the loop. The\n affect of the r, g, and b parameters is determined by the current\n color mode. The nx, ny, and nz parameters specify the direction the\n light is facing. For example, setting ny to -1 will cause the\n geometry to be lit from below (the light is facing directly upward)"],"~$frame-rate",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","frameRate()","^W",3,"^X",true,"^Y",1879,"^Z",1879,"^[",["^10",["^11",["^10",[["~$new-rate"]]]]],"^13","Specifies a new target framerate (number of frames to be displayed every\n second). If the processor is not fast enough to maintain the\n specified rate, it will not be achieved. For example, the function\n call (frame-rate 30) will attempt to refresh 30 times a second. It\n is recommended to set the frame rate within setup. The default rate\n is 60 frames per second."],"^R","1.0","^B","~$quil.core/frame-rate","^S",null,"^T","out/quil/core.cljc","^U",13,"^V","frameRate()","^15",["^10",[["^65"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1873,"^19","^1:","^Z",1879,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^65"]]]]],"^13","Specifies a new target framerate (number of frames to be displayed every\n second). If the processor is not fast enough to maintain the\n specified rate, it will not be achieved. For example, the function\n call (frame-rate 30) will attempt to refresh 30 times a second. It\n is recommended to set the frame rate within setup. The default rate\n is 60 frames per second."],"~$hour",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Time & Date","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","hour()","^W",3,"^X",false,"^Y",2052,"^Z",2052,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current hour as a value from 0 - 23."],"^R","1.0","^B","~$quil.core/hour","^S","Time & Date","^T","out/quil/core.cljc","^U",7,"^V","hour()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",2046,"^19","^1:","^Z",2052,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current hour as a value from 0 - 23."],"~$fill-int",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","fill()","^W",3,"^X",true,"^Y",1727,"^Z",1727,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"]]]]],"^13","Sets the color used to fill shapes."],"^R","1.0","^B","~$quil.core/fill-int","^S","Setting","^T","out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","fill()","^15",["^10",[["^3I"],["^3I","^2N"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1721,"^Z",1727,"^1;",2,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"]]],"^13","Sets the color used to fill shapes."],"~$atan",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","atan()","^W",3,"^X",false,"^Y",458,"^Z",458,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","The inverse of tan, returns the arc tangent of a value. This\n function expects the values in the range of -Infinity to\n Infinity (exclusive) and values are returned in the range -PI/2 to\n PI/2 ."],"^R","1.0","^B","~$quil.core/atan","^S","Trigonometry","^T","out/quil/core.cljc","^U",7,"^V","atan()","^15",["^10",[["~$n"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",452,"^19","^1:","^Z",458,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$n"]]]]],"^13","The inverse of tan, returns the arc tangent of a value. This\n function expects the values in the range of -Infinity to\n Infinity (exclusive) and values are returned in the range -PI/2 to\n PI/2 ."],"~$stroke-join-modes",["^ ","^B","~$quil.core/stroke-join-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",65,"^U",19,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",65,"^W",2,"^Z",65,"^U",19],"^1?","^1@"],"~$rotate-y",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","rotateY()","^W",3,"^X",true,"^Y",3485,"^Z",3485,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Rotates a shape around the y-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0\n to (* PI 2)) or converted to radians with the radians function.\n Objects are always rotated around their relative position to the\n origin and positive numbers rotate objects in a counterclockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate-y HALF-PI) and then (rotate-y HALF-PI) is\n the same as (rotate-y PI). If rotate-y is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function requires either the :p3d or :opengl renderer."],"^R","1.0","^B","~$quil.core/rotate-y","^S",null,"^T","out/quil/core.cljc","^U",11,"^V","rotateY()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3479,"^19","^1:","^Z",3485,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Rotates a shape around the y-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0\n to (* PI 2)) or converted to radians with the radians function.\n Objects are always rotated around their relative position to the\n origin and positive numbers rotate objects in a counterclockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate-y HALF-PI) and then (rotate-y HALF-PI) is\n the same as (rotate-y PI). If rotate-y is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function requires either the :p3d or :opengl renderer."],"~$day",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Time & Date","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","day()","^W",3,"^X",false,"^Y",1426,"^Z",1426,"^[",["^10",["^11",["^10",[[]]]]],"^13","Get the current day of the month (1 through 31)."],"^R","1.0","^B","~$quil.core/day","^S","Time & Date","^T","out/quil/core.cljc","^U",6,"^V","day()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1420,"^19","^1:","^Z",1426,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Get the current day of the month (1 through 31)."],"~$point-light",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","pointLight()","^W",3,"^X",true,"^Y",3011,"^Z",3011,"^[",["^10",["^11",["^10",[["~$r","~$g","~$b","~$x","~$y","~$z"]]]]],"^13","Adds a point light. Lights need to be included in the draw() to\n remain persistent in a looping program. Placing them in the setup()\n of a looping program will cause them to only have an effect the\n first time through the loop. The affect of the r, g, and b\n parameters is determined by the current color mode. The x, y, and z\n parameters set the position of the light"],"^R","1.0","^B","~$quil.core/point-light","^S","Lights","^T","out/quil/core.cljc","^U",14,"^V","pointLight()","^15",["^10",[["~$r","~$g","~$b","~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3005,"^19","^1:","^Z",3011,"^1;",6,"^1<",true,"^[",["^10",["^11",["^10",[["~$r","~$g","~$b","~$x","~$y","~$z"]]]]],"^13","Adds a point light. Lights need to be included in the draw() to\n remain persistent in a looping program. Placing them in the setup()\n of a looping program will cause them to only have an effect the\n first time through the loop. The affect of the r, g, and b\n parameters is determined by the current color mode. The x, y, and z\n parameters set the position of the light"],"~$pmouse-x",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Mouse","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","pmouseX","^W",3,"^X",true,"^Y",2973,"^Z",2973,"^[",["^10",["^11",["^10",[[]]]]],"^13","Horizontal coordinate of the mouse in the previous frame"],"^R","1.0","^B","~$quil.core/pmouse-x","^S","Mouse","^T","out/quil/core.cljc","^U",11,"^V","pmouseX","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2967,"^19","^1:","^Z",2973,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Horizontal coordinate of the mouse in the previous frame"],"~$get-sketch-by-id",["^ ","^O",null,"^P",null,"^Q",["^ ","^O",null,"^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",22,"^V","getSketchById()","^W",6,"^X",true,"^Y",185,"^Z",185,"^[",["^10",["^11",["^10",[["~$id"]]]]],"^13","Returns sketch object by id of canvas element of sketch."],"^R","1.0","^B","~$quil.core/get-sketch-by-id","^S",null,"^T","out/quil/core.cljc","^U",22,"^V","getSketchById()","^15",["^10",[["^6H"]]],"^16",null,"^17",["^10",[null,null]],"^W",4,"^18",false,"^X",true,"^Y",179,"^19","~$js","^Z",185,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^6H"]]]]],"^13","Returns sketch object by id of canvas element of sketch."],"~$stroke",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^[",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","stroke()","^W",3,"^X",true,"^Y",4042,"^Z",4042,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]]]],"^13","Sets the color used to draw lines and borders around shapes. This\n color is either specified in terms of the RGB or HSB color depending\n on the current color-mode (the default color space is RGB, with\n each value in the range from 0 to 255)."],"^R","1.0","^B","~$quil.core/stroke","^S","Setting","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^[",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","stroke()","^15",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",4036,"^Z",4042,"^1;",4,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"],["~$x","~$y","~$z"],["~$x","~$y","~$z","~$a"]]],"^13","Sets the color used to draw lines and borders around shapes. This\n color is either specified in terms of the RGB or HSB color depending\n on the current color-mode (the default color space is RGB, with\n each value in the range from 0 to 255)."],"~$mouse-pressed?",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Mouse","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^V","mousePressed","^W",3,"^X",true,"^Y",2606,"^Z",2606,"^[",["^10",["^11",["^10",[[]]]]],"^13","Variable storing if a mouse button is pressed. The value of the\n system variable mousePressed is true if a mouse button is pressed\n and false if a button is not pressed."],"^R","1.0","^B","~$quil.core/mouse-pressed?","^S","Mouse","^T","out/quil/core.cljc","^U",17,"^V","mousePressed","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2600,"^19","^1:","^Z",2606,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Variable storing if a mouse button is pressed. The value of the\n system variable mousePressed is true if a mouse button is pressed\n and false if a button is not pressed."],"~$key-pressed?",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Keyboard","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","keyPressed","^W",3,"^X",true,"^Y",2217,"^Z",2217,"^[",["^10",["^11",["^10",[[]]]]],"^13","true if any key is currently pressed, false otherwise."],"^R","1.0","^B","~$quil.core/key-pressed?","^S","Keyboard","^T","out/quil/core.cljc","^U",15,"^V","keyPressed","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2211,"^19","^1:","^Z",2217,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","true if any key is currently pressed, false otherwise."],"~$quadratic-vertex",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","2.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",19,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["~$cx","~$cy","~$x3","~$y3"],["^6R","^6S","~$cz","^6T","^6U","~$z3"]]],"^[",["^10",[["^6R","^6S","^6T","^6U"],["^6R","^6S","^6V","^6T","^6U","^6W"]]],"^17",["^10",[null,null]]],"^V","quadraticVertex()","^W",3,"^X",true,"^Y",3170,"^Z",3170,"^[",["^10",["^11",["^10",[["^6R","^6S","^6T","^6U"],["^6R","^6S","^6V","^6T","^6U","^6W"]]]]],"^13","Specifies vertex coordinates for quadratic Bezier curves. Each call to\n quadratic-vertex defines the position of one control points and one\n anchor point of a Bezier curve, adding a new segment to a line or shape.\n The first time quadratic-vertex is used within a begin-shape call, it\n must be prefaced with a call to vertex to set the first anchor point.\n This function must be used between begin-shape and end-shape and only\n when there is no MODE parameter specified to begin-shape. Using the 3D\n version requires rendering with :p3d."],"^R","2.0","^B","~$quil.core/quadratic-vertex","^S","Vertex","^T","out/quil/core.cljc","^U",19,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["^6R","^6S","^6T","^6U"],["^6R","^6S","^6V","^6T","^6U","^6W"]]],"^[",["^10",[["^6R","^6S","^6T","^6U"],["^6R","^6S","^6V","^6T","^6U","^6W"]]],"^17",["^10",[null,null]]],"^V","quadraticVertex()","^15",["^10",[["^6R","^6S","^6T","^6U"],["^6R","^6S","^6V","^6T","^6U","^6W"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3164,"^Z",3170,"^1;",6,"^1<",true,"^[",["^10",[["^6R","^6S","^6T","^6U"],["^6R","^6S","^6V","^6T","^6U","^6W"]]],"^13","Specifies vertex coordinates for quadratic Bezier curves. Each call to\n quadratic-vertex defines the position of one control points and one\n anchor point of a Bezier curve, adding a new segment to a line or shape.\n The first time quadratic-vertex is used within a begin-shape call, it\n must be prefaced with a call to vertex to set the first anchor point.\n This function must be used between begin-shape and end-shape and only\n when there is no MODE parameter specified to begin-shape. Using the 3D\n version requires rendering with :p3d."],"~$texture-wrap-modes",["^ ","^B","~$quil.core/texture-wrap-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",70,"^U",20,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",70,"^W",2,"^Z",70,"^U",20],"^1?","^1@"],"~$noise-seed",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","noiseSeed()","^W",3,"^X",true,"^Y",2771,"^Z",2771,"^[",["^10",["^11",["^10",[["^34"]]]]],"^13","Sets the seed value for noise. By default, noise produces different\n results each time the program is run. Set the value parameter to a\n constant to return the same pseudo-random numbers each time the\n software is run."],"^R","1.0","^B","~$quil.core/noise-seed","^S","Random","^T","out/quil/core.cljc","^U",13,"^V","noiseSeed()","^15",["^10",[["^34"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2765,"^19","^1:","^Z",2771,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^34"]]]]],"^13","Sets the seed value for noise. By default, noise produces different\n results each time the program is run. Set the value parameter to a\n constant to return the same pseudo-random numbers each time the\n software is run."],"~$apply-matrix",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","applyMatrix()","^W",3,"^X",true,"^Y",396,"^Z",396,"^[",["^10",["^11",["^10",[["~$n00","~$n01","~$n02","~$n03","~$n10","~$n11","~$n12","~$n13","~$n20","~$n21","~$n22","~$n23","~$n30","~$n31","~$n32","~$n33"]]]]],"^13","Multiplies the current matrix by the one specified through the\n parameters. This is very slow because it will try to calculate the\n inverse of the transform, so avoid it whenever possible. The\n equivalent function in OpenGL is glMultMatrix()."],"^R","1.0","^B","~$quil.core/apply-matrix","^S",null,"^T","out/quil/core.cljc","^U",15,"^V","applyMatrix()","^15",["^10",[["^72","^73","^74","^75","^76","^77","^78","^79","^7:","^7;","^7<","^7=","^7>","^7?","^7@","^7A"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",390,"^19","^1:","^Z",396,"^1;",16,"^1<",true,"^[",["^10",["^11",["^10",[["^72","^73","^74","^75","^76","^77","^78","^79","^7:","^7;","^7<","^7=","^7>","^7?","^7@","^7A"]]]]],"^13","Multiplies the current matrix by the one specified through the\n parameters. This is very slow because it will try to calculate the\n inverse of the transform, so avoid it whenever possible. The\n equivalent function in OpenGL is glMultMatrix()."],"~$copy",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[[["~$sx","~$sy","~$swidth","~$sheight"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]],"^[",["^10",[[["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]],"^17",["^10",[null,null,null]]],"^V","copy()","^W",3,"^X",true,"^Y",1112,"^Z",1112,"^[",["^10",["^11",["^10",[[["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]]]],"^13","Copies a region of pixels from the one image to another. If src-img\n is not specified it defaults to current-graphics. If dest-img is not\n specified - it defaults to current-graphics. If the source\n and destination regions aren't the same size, it will automatically\n resize the source pixels to fit the specified target region. No\n alpha information is used in the process, however if the source\n image has an alpha channel set, it will be copied as well. "],"^R","1.0","^B","~$quil.core/copy","^S","Pixels","^T","out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[[["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]],"^[",["^10",[[["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]],"^17",["^10",[null,null,null]]],"^V","copy()","^15",["^10",[[["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1106,"^Z",1112,"^1;",4,"^1<",true,"^[",["^10",[[["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]],["^1W","^1X",["^7D","^7E","^7F","^7G"],["^1S","^1T","^1U","^1V"]]]],"^13","Copies a region of pixels from the one image to another. If src-img\n is not specified it defaults to current-graphics. If dest-img is not\n specified - it defaults to current-graphics. If the source\n and destination regions aren't the same size, it will automatically\n resize the source pixels to fit the specified target region. No\n alpha information is used in the process, however if the source\n image has an alpha channel set, it will be copied as well. "],"~$random-3d",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","2.6","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","random3d()","^W",3,"^X",true,"^Y",2689,"^Z",2689,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a new 3D unit vector in a random direction"],"^R","2.6","^B","~$quil.core/random-3d","^S","Random","^T","out/quil/core.cljc","^U",12,"^V","random3d()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2683,"^19","^4W","^Z",2689,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a new 3D unit vector in a random direction"],"~$begin-shape",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^1I"]]],"^[",["^10",[[],["^1I"]]],"^17",["^10",[null,null]]],"^V","beginShape()","^W",3,"^X",true,"^Y",635,"^Z",635,"^[",["^10",["^11",["^10",[[],["^1I"]]]]],"^13","Enables the creation of complex forms. begin-shape begins recording\n vertices for a shape and end-shape stops recording. Use the mode\n keyword to specify which shape create from the provided\n vertices. With no mode specified, the shape can be any irregular\n polygon.\n\n The available mode keywords are :points, :lines, :triangles,\n :triangle-fan, :triangle-strip,\n :quads, :quad-strip.\n\n After calling the begin-shape function, a series of vertex commands\n must follow. To stop drawing the shape, call end-shape. The vertex\n function with two parameters specifies a position in 2D and the\n vertex function with three parameters specifies a position in\n 3D. Each shape will be outlined with the current stroke color and\n filled with the fill color.\n\n Transformations such as translate, rotate, and scale do not work\n within begin-shape. It is also not possible to use other shapes,\n such as ellipse or rect within begin-shape."],"^R","1.0","^B","~$quil.core/begin-shape","^S","Vertex","^T","out/quil/core.cljc","^U",14,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^1I"]]],"^[",["^10",[[],["^1I"]]],"^17",["^10",[null,null]]],"^V","beginShape()","^15",["^10",[[],["^1I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",629,"^Z",635,"^1;",1,"^1<",true,"^[",["^10",[[],["^1I"]]],"^13","Enables the creation of complex forms. begin-shape begins recording\n vertices for a shape and end-shape stops recording. Use the mode\n keyword to specify which shape create from the provided\n vertices. With no mode specified, the shape can be any irregular\n polygon.\n\n The available mode keywords are :points, :lines, :triangles,\n :triangle-fan, :triangle-strip,\n :quads, :quad-strip.\n\n After calling the begin-shape function, a series of vertex commands\n must follow. To stop drawing the shape, call end-shape. The vertex\n function with two parameters specifies a position in 2D and the\n vertex function with three parameters specifies a position in\n 3D. Each shape will be outlined with the current stroke color and\n filled with the fill color.\n\n Transformations such as translate, rotate, and scale do not work\n within begin-shape. It is also not possible to use other shapes,\n such as ellipse or rect within begin-shape."],"~$set-state!",["^ ","^O","State","^P",null,"^Q",["^ ","^O","State","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",true,"^1;",0,"^15",[["^10",["~$state-vals"]]],"^[",["^10",[["~$&","^7N"]]],"^17",["^10",[null]]],"^W",3,"^X",true,"^Y",236,"^Z",236,"^[",["^10",["^11",["^10",[["~$&","^7N"]]]]],"^13","Set sketch-specific state. May only be called once (ideally in the\n setup fn). Subsequent calls have no effect.\n\n Example:\n (set-state! :foo 1 :bar (atom true) :baz (/ (width) 2))"],"^R","1.0","^B","~$quil.core/set-state!","^S",null,"^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",true,"^1;",0,"^15",[["^10",["^7N"]]],"^[",["^10",[["~$&","^7N"]]],"^17",["^10",[null]]],"^15",[["^10",["^7N"]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",true,"^Y",231,"^19","^1:","^Z",236,"^1;",0,"^1<",true,"^[",["^10",[["~$&","^7N"]]],"^13","Set sketch-specific state. May only be called once (ideally in the\n setup fn). Subsequent calls have no effect.\n\n Example:\n (set-state! :foo 1 :bar (atom true) :baz (/ (width) 2))"],"~$stroke-join",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","strokeJoin()","^W",3,"^X",true,"^Y",4080,"^Z",4080,"^[",["^10",["^11",["^10",[["~$join-mode"]]]]],"^13","Sets the style of the joints which connect line\n segments. These joints are either mitered, beveled, or rounded and\n specified with the corresponding parameters :miter, :bevel, and\n :round. The default joint is :miter.\n\n This function is not available with the :p2d, :p3d, or :opengl\n renderers."],"^R","1.0","^B","~$quil.core/stroke-join","^S","Attributes","^T","out/quil/core.cljc","^U",14,"^V","strokeJoin()","^15",["^10",[["^7Q"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4074,"^19","^1:","^Z",4080,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^7Q"]]]]],"^13","Sets the style of the joints which connect line\n segments. These joints are either mitered, beveled, or rounded and\n specified with the corresponding parameters :miter, :bevel, and\n :round. The default joint is :miter.\n\n This function is not available with the :p2d, :p3d, or :opengl\n renderers."],"~$cos",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","cos()","^W",3,"^X",false,"^Y",1138,"^Z",1138,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Calculates the cosine of an angle. This function expects the values\n of the angle parameter to be provided in radians (values from 0 to\n Math/PI*2). Values are returned in the range -1 to 1."],"^R","1.0","^B","~$quil.core/cos","^S","Trigonometry","^T","out/quil/core.cljc","^U",6,"^V","cos()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1132,"^19","^1:","^Z",1138,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Calculates the cosine of an angle. This function expects the values\n of the angle parameter to be provided in radians (values from 0 to\n Math/PI*2). Values are returned in the range -1 to 1."],"~$curve-tightness",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",18,"^V","curveTightness()","^W",3,"^X",true,"^Y",1389,"^Z",1389,"^[",["^10",["^11",["^10",[["~$ti"]]]]],"^13","Modifies the quality of forms created with curve and\n curve-vertex. The parameter squishy determines how the curve fits\n to the vertex points. The value 0.0 is the default value for\n squishy (this value defines the curves to be Catmull-Rom splines)\n and the value 1.0 connects all the points with straight\n lines. Values within the range -5.0 and 5.0 will deform the curves\n but will leave them recognizable and as values increase in\n magnitude, they will continue to deform."],"^R","1.0","^B","~$quil.core/curve-tightness","^S","Curves","^T","out/quil/core.cljc","^U",18,"^V","curveTightness()","^15",["^10",[["^7V"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1383,"^19","^1:","^Z",1389,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^7V"]]]]],"^13","Modifies the quality of forms created with curve and\n curve-vertex. The parameter squishy determines how the curve fits\n to the vertex points. The value 0.0 is the default value for\n squishy (this value defines the curves to be Catmull-Rom splines)\n and the value 1.0 connects all the points with straight\n lines. Values within the range -5.0 and 5.0 will deform the curves\n but will leave them recognizable and as values increase in\n magnitude, they will continue to deform."],"~$tan",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","tan()","^W",3,"^X",false,"^Y",4112,"^Z",4112,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Calculates the ratio of the sine and cosine of an angle. This\n function expects the values of the angle parameter to be provided in\n radians (values from 0 to PI*2). Values are returned in the range\n infinity to -infinity."],"^R","1.0","^B","~$quil.core/tan","^S","Trigonometry","^T","out/quil/core.cljc","^U",6,"^V","tan()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",4106,"^19","^1:","^Z",4112,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Calculates the ratio of the sine and cosine of an angle. This\n function expects the values of the angle parameter to be provided in\n radians (values from 0 to PI*2). Values are returned in the range\n infinity to -infinity."],"~$triangle",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","2D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","triangle()","^W",3,"^X",true,"^Y",4509,"^Z",4509,"^[",["^10",["^11",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U"]]]]],"^13","A triangle is a plane created by connecting three points. The first\n two arguments specify the first point, the middle two arguments\n specify the second point, and the last two arguments specify the\n third point."],"^R","1.0","^B","~$quil.core/triangle","^S","2D Primitives","^T","out/quil/core.cljc","^U",11,"^V","triangle()","^15",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4503,"^19","^1:","^Z",4509,"^1;",6,"^1<",true,"^[",["^10",["^11",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U"]]]]],"^13","A triangle is a plane created by connecting three points. The first\n two arguments specify the first point, the middle two arguments\n specify the second point, and the last two arguments specify the\n third point."],"~$emissive",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$c"],["~$r","~$g","~$b"]]],"^[",["^10",[["~$c"],["~$r","~$g","~$b"]]],"^17",["^10",[null,null]]],"^V","emissive()","^W",3,"^X",true,"^Y",1594,"^Z",1594,"^[",["^10",["^11",["^10",[["~$c"],["~$r","~$g","~$b"]]]]],"^13","Sets the emissive color of the material used for drawing shapes\n drawn to the screen. Used in combination with ambient, specular, and\n shininess in setting the material properties of shapes.\n\n If passed one arg - it is assumed to be an int (i.e. a color),\n multiple args are converted to floats."],"^R","1.0","^B","~$quil.core/emissive","^S","Material Properties","^T","out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$c"],["~$r","~$g","~$b"]]],"^[",["^10",[["~$c"],["~$r","~$g","~$b"]]],"^17",["^10",[null,null]]],"^V","emissive()","^15",["^10",[["~$c"],["~$r","~$g","~$b"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1588,"^Z",1594,"^1;",3,"^1<",true,"^[",["^10",[["~$c"],["~$r","~$g","~$b"]]],"^13","Sets the emissive color of the material used for drawing shapes\n drawn to the screen. Used in combination with ambient, specular, and\n shininess in setting the material properties of shapes.\n\n If passed one arg - it is assumed to be an int (i.e. a color),\n multiple args are converted to floats."],"~$clear-no-fill-cljs",["^ ","^P",null,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",1693,"^W",11,"^Z",1693,"^U",29,"^3[",true,"^[",["^10",["^11",["^10",[["^21"]]]]],"^13","Sets custom property on graphcs object indicating that it has\n fill color."],"^3[",true,"^B","~$quil.core/clear-no-fill-cljs","^T","out/quil/core.cljc","^U",29,"^15",["^10",[["^21"]]],"^16",null,"^17",["^10",[null,null]],"^W",4,"^18",false,"^Y",1693,"^19","^1:","^Z",1693,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^21"]]]]],"^13","Sets custom property on graphcs object indicating that it has\n fill color."],"~$sketch",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",true,"^1;",0,"^15",[["^10",["~$opts"]]],"^[",["^10",[["~$&","^85"]]],"^17",["^10",[null]]],"^W",3,"^X",false,"^Y",4724,"^Z",4724,"^[",["^10",["^11",["^10",[["~$&","^85"]]]]],"^13","Create and start a new visualisation applet. Can be used to create\n new sketches programmatically. See documentation for 'defsketch' for\n list of available options."],"^R","1.0","^B","~$quil.core/sketch","^S",null,"^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",true,"^1;",0,"^15",[["^10",["^85"]]],"^[",["^10",[["~$&","^85"]]],"^17",["^10",[null]]],"^15",[["^10",["^85"]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",false,"^Y",4720,"^19","^1:","^Z",4724,"^1;",0,"^1<",true,"^[",["^10",[["~$&","^85"]]],"^13","Create and start a new visualisation applet. Can be used to create\n new sketches programmatically. See documentation for 'defsketch' for\n list of available options."],"~$color",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","color()","^W",3,"^X",true,"^Y",1019,"^Z",1019,"^[",["^10",["^11",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]]]],"^13","Creates an integer representation of a color The parameters are\n interpreted as RGB or HSB values depending on the current\n color-mode. The default mode is RGB values from 0 to 255 and\n therefore, the function call (color 255 204 0) will return a bright\n yellow. Args are cast to floats.\n\n r - red or hue value\n g - green or saturation value\n b - blue or brightness value\n a - alpha value"],"^R","1.0","^B","~$quil.core/color","^S","Creating & Reading","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","color()","^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1013,"^Z",1019,"^1;",4,"^1<",true,"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^13","Creates an integer representation of a color The parameters are\n interpreted as RGB or HSB values depending on the current\n color-mode. The default mode is RGB values from 0 to 255 and\n therefore, the function call (color 255 204 0) will return a bright\n yellow. Args are cast to floats.\n\n r - red or hue value\n g - green or saturation value\n b - blue or brightness value\n a - alpha value"],"~$arc",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","2D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","arc()","^W",3,"^X",true,"^Y",422,"^Z",422,"^[",["^10",["^11",["^10",[["~$x","~$y","^1Q","^1R","~$start","~$stop"]]]]],"^13","Draws an arc in the display window. Arcs are drawn along the outer\n edge of an ellipse defined by the x, y, width and height\n parameters. The origin or the arc's ellipse may be changed with the\n ellipse-mode function. The start and stop parameters specify the\n angles at which to draw the arc. The mode is either :open, :chord or :pie."],"^R","1.0","^B","~$quil.core/arc","^S","2D Primitives","^T","out/quil/core.cljc","^U",6,"^V","arc()","^15",["^10",[["~$x","~$y","^1Q","^1R","^8:","^8;"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",416,"^19","^1:","^Z",422,"^1;",6,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","^1Q","^1R","^8:","^8;"]]]]],"^13","Draws an arc in the display window. Arcs are drawn along the outer\n edge of an ellipse defined by the x, y, width and height\n parameters. The origin or the arc's ellipse may be changed with the\n ellipse-mode function. The start and stop parameters specify the\n angles at which to draw the arc. The mode is either :open, :chord or :pie."],"~$text-align",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$align"],["~$align-x","~$align-y"]]],"^[",["^10",[["^8>"],["^8?","^8@"]]],"^17",["^10",[null,null]]],"^V","textAlign()","^W",3,"^X",true,"^Y",4204,"^Z",4204,"^[",["^10",["^11",["^10",[["^8>"],["^8?","^8@"]]]]],"^13","Sets the current alignment for drawing text. Available modes are:\n\n horizontal - :left, :center, and :right\n vertical - :top, :bottom, :center, and :baseline\n\n An optional second parameter specifies the vertical alignment\n mode. :baseline is the default. The :top and :center parameters are\n straightforward. The :bottom parameter offsets the line based on the\n current text-descent. For multiple lines, the final line will be\n aligned to the bottom, with the previous lines appearing above it.\n\n When using text with width and height parameters, :baseline is\n ignored, and treated as :top. (Otherwise, text would by default draw\n outside the box, since :baseline is the default setting. :baseline is\n not a useful drawing mode for text drawn in a rectangle.)\n\n The vertical alignment is based on the value of text-ascent, which\n many fonts do not specify correctly. It may be necessary to use a\n hack and offset by a few pixels by hand so that the offset looks\n correct. To do this as less of a hack, use some percentage of\n text-ascent or text-descent so that the hack works even if you\n change the size of the font."],"^R","1.0","^B","~$quil.core/text-align","^S","Attributes","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^8>"],["^8?","^8@"]]],"^[",["^10",[["^8>"],["^8?","^8@"]]],"^17",["^10",[null,null]]],"^V","textAlign()","^15",["^10",[["^8>"],["^8?","^8@"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4198,"^Z",4204,"^1;",2,"^1<",true,"^[",["^10",[["^8>"],["^8?","^8@"]]],"^13","Sets the current alignment for drawing text. Available modes are:\n\n horizontal - :left, :center, and :right\n vertical - :top, :bottom, :center, and :baseline\n\n An optional second parameter specifies the vertical alignment\n mode. :baseline is the default. The :top and :center parameters are\n straightforward. The :bottom parameter offsets the line based on the\n current text-descent. For multiple lines, the final line will be\n aligned to the bottom, with the previous lines appearing above it.\n\n When using text with width and height parameters, :baseline is\n ignored, and treated as :top. (Otherwise, text would by default draw\n outside the box, since :baseline is the default setting. :baseline is\n not a useful drawing mode for text drawn in a rectangle.)\n\n The vertical alignment is based on the value of text-ascent, which\n many fonts do not specify correctly. It may be necessary to use a\n hack and offset by a few pixels by hand so that the offset looks\n correct. To do this as less of a hack, use some percentage of\n text-ascent or text-descent so that the hack works even if you\n change the size of the font."],"~$text-width",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","textWidth()","^W",3,"^X",true,"^Y",4402,"^Z",4402,"^[",["^10",["^11",["^10",[["~$data"]]]]],"^13","Calculates and returns the width of any text string."],"^R","1.0","^B","~$quil.core/text-width","^S","Attributes","^T","out/quil/core.cljc","^U",13,"^V","textWidth()","^15",["^10",[["^8C"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4396,"^19","^1:","^Z",4402,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^8C"]]]]],"^13","Calculates and returns the width of any text string."],"~$mouse-x",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Mouse","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","mouseX","^W",3,"^X",true,"^Y",2620,"^Z",2620,"^[",["^10",["^11",["^10",[[]]]]],"^13","Current horizontal coordinate of the mouse."],"^R","1.0","^B","~$quil.core/mouse-x","^S","Mouse","^T","out/quil/core.cljc","^U",10,"^V","mouseX","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2614,"^19","^1:","^Z",2620,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Current horizontal coordinate of the mouse."],"~$TWO-PI",["^ ","^B","~$quil.core/TWO-PI","^T","out/quil/core.cljc","^Y",80,"^W",1,"^Z",80,"^U",12,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",80,"^W",6,"^Z",80,"^U",12],"^1?","^4P"],"~$mag",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]],"^[",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]],"^17",["^10",[null,null]]],"^V","mag()","^W",3,"^X",false,"^Y",2442,"^Z",2442,"^[",["^10",["^11",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]]]],"^13","Calculates the magnitude (or length) of a vector. A vector is a\n direction in space commonly used in computer graphics and linear\n algebra. Because it has no start position, the magnitude of a vector\n can be thought of as the distance from coordinate (0,0) to its (x,y)\n value. Therefore, mag is a shortcut for writing (dist 0 0 x y)."],"^R","1.0","^B","~$quil.core/mag","^S","Calculation","^T","out/quil/core.cljc","^U",6,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]],"^[",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]],"^17",["^10",[null,null]]],"^V","mag()","^15",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",2436,"^Z",2442,"^1;",3,"^1<",true,"^[",["^10",[["~$a","~$b"],["~$a","~$b","~$c"]]],"^13","Calculates the magnitude (or length) of a vector. A vector is a\n direction in space commonly used in computer graphics and linear\n algebra. Because it has no start position, the magnitude of a vector\n can be thought of as the distance from coordinate (0,0) to its (x,y)\n value. Therefore, mag is a shortcut for writing (dist 0 0 x y)."],"~$exit",["^ ","^O","Structure","^P",null,"^Q",["^ ","^O","Structure","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","exit()","^W",3,"^X",true,"^Y",1671,"^Z",1671,"^[",["^10",["^11",["^10",[[]]]]],"^13","Quits/stops/exits the program. Rather than terminating\n immediately, exit will cause the sketch to exit after draw has\n completed (or after setup completes if called during the setup\n method). "],"^R","1.0","^B","~$quil.core/exit","^S",null,"^T","out/quil/core.cljc","^U",7,"^V","exit()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1665,"^19","^1:","^Z",1671,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Quits/stops/exits the program. Rather than terminating\n immediately, exit will cause the sketch to exit after draw has\n completed (or after setup completes if called during the setup\n method). "],"~$map-range",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","map()","^W",3,"^X",false,"^Y",2461,"^Z",2461,"^[",["^10",["^11",["^10",[["^34","~$low1","~$high1","~$low2","~$high2"]]]]],"^13","Re-maps a number from one range to another.\n\n Numbers outside the range are not clamped to 0 and 1, because\n out-of-range values are often intentional and useful."],"^R","1.0","^B","~$quil.core/map-range","^S","Calculation","^T","out/quil/core.cljc","^U",12,"^V","map()","^15",["^10",[["^34","^8N","^8O","^8P","^8Q"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",2455,"^19","^1:","^Z",2461,"^1;",5,"^1<",true,"^[",["^10",["^11",["^10",[["^34","^8N","^8O","^8P","^8Q"]]]]],"^13","Re-maps a number from one range to another.\n\n Numbers outside the range are not clamped to 0 and 1, because\n out-of-range values are often intentional and useful."],"~$model-x",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Coordinates","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","modelX()","^W",3,"^X",true,"^Y",2524,"^Z",2524,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Returns the three-dimensional x, y, z position in model space. This\n returns the x value for a given coordinate based on the current set\n of transformations (scale, rotate, translate, etc.) The x value can\n be used to place an object in space relative to the location of the\n original point once the transformations are no longer in use."],"^R","1.0","^B","~$quil.core/model-x","^S","Coordinates","^T","out/quil/core.cljc","^U",10,"^V","modelX()","^15",["^10",[["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2518,"^19","^1:","^Z",2524,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Returns the three-dimensional x, y, z position in model space. This\n returns the x value for a given coordinate based on the current set\n of transformations (scale, rotate, translate, etc.) The x value can\n be used to place an object in space relative to the location of the\n original point once the transformations are no longer in use."],"~$sqrt",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","sqrt()","^W",3,"^X",false,"^Y",3989,"^Z",3989,"^[",["^10",["^11",["^10",[["~$a"]]]]],"^13","Calculates the square root of a number. The square root of a number\n is always positive, even though there may be a valid negative\n root. The square root s of number a is such that (= a (* s s)) . It\n is the opposite of squaring."],"^R","1.0","^B","~$quil.core/sqrt","^S","Calculation","^T","out/quil/core.cljc","^U",7,"^V","sqrt()","^15",["^10",[["~$a"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",3983,"^19","^1:","^Z",3989,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$a"]]]]],"^13","Calculates the square root of a number. The square root of a number\n is always positive, even though there may be a valid negative\n root. The square root s of number a is such that (= a (* s s)) . It\n is the opposite of squaring."],"~$saturation",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","saturation()","^W",3,"^X",true,"^Y",3540,"^Z",3540,"^[",["^10",["^11",["^10",[["~$c"]]]]],"^13","Extracts the saturation value from a color."],"^R","1.0","^B","~$quil.core/saturation","^S","Creating & Reading","^T","out/quil/core.cljc","^U",13,"^V","saturation()","^15",["^10",[["~$c"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3534,"^19","^1:","^Z",3540,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$c"]]]]],"^13","Extracts the saturation value from a color."],"~$prc-print",["^ ","^O","Output","^P",null,"^Q",["^ ","^O","Output","^R","1.0","^S","Text area","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^W",6,"~:require-bindings",true,"^Y",170,"^Z",170,"^[",["^10",["^11",["^10",[["~$msg"]]]]],"^13","Writes to the console area of the Processing environment.\n This is often helpful for looking at the data a program is producing.\n The companion function println() works like print(), but creates a new line of text for each call to the function.\n Individual elements can be separated with quotes (\"\") and joined with the addition operator (+). "],"^R","1.0","^B","~$quil.core/prc-print","^S","Text area","^T","out/quil/core.cljc","^U",15,"^15",["^10",[["^8["]]],"^16",null,"^17",["^10",[null,null]],"^W",4,"^18",false,"^8Z",true,"^Y",165,"^19","^1:","^Z",170,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^8["]]]]],"^13","Writes to the console area of the Processing environment.\n This is often helpful for looking at the data a program is producing.\n The companion function println() works like print(), but creates a new line of text for each call to the function.\n Individual elements can be separated with quotes (\"\") and joined with the addition operator (+). "],"~$text-font",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$font"],["^92","^2H"]]],"^[",["^10",[["^92"],["^92","^2H"]]],"^17",["^10",[null,null]]],"^V","textFont()","^W",3,"^X",true,"^Y",4269,"^Z",4269,"^[",["^10",["^11",["^10",[["^92"],["^92","^2H"]]]]],"^13","Sets the current font that will be drawn with the text\n function. Fonts must be loaded with load-font before it can be\n used. This font will be used in all subsequent calls to the text\n function. If no size parameter is input, the font will appear at its\n original size until it is changed with text-size.\n\n Because fonts are usually bitmaped, you should create fonts at the\n sizes that will be used most commonly. Using textFont without the\n size parameter will result in the cleanest-looking text.\n\n With the default (JAVA2D) and PDF renderers, it's also possible to\n enable the use of native fonts via the command\n (hint :enable-native-fonts). This will produce vector text in JAVA2D\n sketches and PDF output in cases where the vector data is available:\n when the font is still installed, or the font is created via the\n create-font fn"],"^R","1.0","^B","~$quil.core/text-font","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^92"],["^92","^2H"]]],"^[",["^10",[["^92"],["^92","^2H"]]],"^17",["^10",[null,null]]],"^V","textFont()","^15",["^10",[["^92"],["^92","^2H"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4263,"^Z",4269,"^1;",2,"^1<",true,"^[",["^10",[["^92"],["^92","^2H"]]],"^13","Sets the current font that will be drawn with the text\n function. Fonts must be loaded with load-font before it can be\n used. This font will be used in all subsequent calls to the text\n function. If no size parameter is input, the font will appear at its\n original size until it is changed with text-size.\n\n Because fonts are usually bitmaped, you should create fonts at the\n sizes that will be used most commonly. Using textFont without the\n size parameter will result in the cleanest-looking text.\n\n With the default (JAVA2D) and PDF renderers, it's also possible to\n enable the use of native fonts via the command\n (hint :enable-native-fonts). This will produce vector text in JAVA2D\n sketches and PDF output in cases where the vector data is available:\n when the font is still installed, or the font is created via the\n create-font fn"],"~$scale",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","~$sz"]]],"^[",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","^95"]]],"^17",["^10",[null,null,null]]],"^V","scale()","^W",3,"^X",true,"^Y",3589,"^Z",3589,"^[",["^10",["^11",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","^95"]]]]],"^13","Increases or decreases the size of a shape by expanding and\n contracting vertices. Objects always scale from their relative\n origin to the coordinate system. Scale values are specified as\n decimal percentages. For example, the function call (scale 2)\n increases the dimension of a shape by 200%. Transformations apply to\n everything that happens after and subsequent calls to the function\n multiply the effect. For example, calling (scale 2) and then\n (scale 1.5) is the same as (scale 3). If scale is called within\n draw, the transformation is reset when the loop begins again. Using\n this fuction with the z parameter requires specfying :p3d or :opengl\n as the renderer. This function can be further controlled by\n push-matrix and pop-matrix."],"^R","1.0","^B","~$quil.core/scale","^S",null,"^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","^95"]]],"^[",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","^95"]]],"^17",["^10",[null,null,null]]],"^V","scale()","^15",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","^95"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",3583,"^Z",3589,"^1;",3,"^1<",true,"^[",["^10",[["~$s"],["^7D","^7E"],["^7D","^7E","^95"]]],"^13","Increases or decreases the size of a shape by expanding and\n contracting vertices. Objects always scale from their relative\n origin to the coordinate system. Scale values are specified as\n decimal percentages. For example, the function call (scale 2)\n increases the dimension of a shape by 200%. Transformations apply to\n everything that happens after and subsequent calls to the function\n multiply the effect. For example, calling (scale 2) and then\n (scale 1.5) is the same as (scale 3). If scale is called within\n draw, the transformation is reset when the loop begins again. Using\n this fuction with the z parameter requires specfying :p3d or :opengl\n as the renderer. This function can be further controlled by\n push-matrix and pop-matrix."],"~$defsketch",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["~$app-name","~$options"]]]],"^[",["^10",[["^98","~$&","^99"]]],"^17",["^10",[null]]],"^W",4,"^X",false,"^Y",4736,"^23",true,"^Z",4736,"^[",["^10",["^11",["^10",[["^98","~$&","^99"]]]]],"^13","Define and start a sketch and bind it to a var with the symbol\n app-name. If any of the options to the various callbacks are\n symbols, it wraps them in a call to var to ensure they aren't\n inlined and that redefinitions to the original fns are reflected in\n the visualisation.\n\n Available options:\n\n :size - A vector of width and height for the sketch or :fullscreen.\n Defaults to [500 300]. If you're using :fullscreen you may\n want to enable present mode - :features [:present]\n\n :renderer - Specifies the renderer type. One of :p2d, :p3d, :java2d,\n :opengl, :pdf). Defaults to :java2d. :dxf renderer\n can't be used as sketch renderer. Use begin-raw method\n instead. In clojurescript only :p2d and :p3d renderers\n are supported.\n\n :output-file - Specifies an output file path. Only used in :pdf mode.\n Not supported in clojurescript.\n\n :title - A string which will be displayed at the top of\n the sketch window. Not supported in clojurescript.\n\n :features - A vector of keywords customizing sketch behaviour.\n Supported features:\n\n :keep-on-top - Sketch window will always be above other\n windows. Note: some platforms might not\n support always-on-top windows.\n Not supported in clojurescript.\n\n :exit-on-close - Shutdown JVM when sketch is closed.\n Not supported in clojurescript.\n\n :resizable - Makes sketch resizable.\n Not supported in clojurescript.\n\n :no-safe-fns - Do not catch and print exceptions thrown\n inside functions provided to sketch (like\n draw, mouse-click, key-pressed and\n other). By default all exceptions thrown\n inside these functions are catched. This\n prevents sketch from breaking when bad\n function was provided and allows you to\n fix it and reload it on fly. You can\n disable this behaviour by enabling\n :no-safe-fns feature.\n Not supported in clojurescript.\n\n :present - Switch to present mode (fullscreen without\n borders, OS panels). You may want to use\n this feature together with :size :fullscreen.\n Not supported in clojurescript.\n\n :no-start - Disables autostart if sketch was created using\n defsketch macro. To start sketch you have to\n call function created defsketch.\n Supported only in clojurescript.\n\n :global-key-events - Allows a sketch to receive any\n keyboard event sent to the page,\n regardless of whether the canvas it is\n loaded in has focus or not.\n Supported only in clojurescript.\n\n Usage example: :features [:keep-on-top :present]\n\n :bgcolor - Sets background color for unused space in present mode.\n Color is specified in hex format: #XXXXXX.\n Example: :bgcolor \"#00FFFF\" (cyan background)\n Not supported in clojurescript.\n\n :display - Sets what display should be used by this sketch.\n Displays are numbered starting from 0. Example: :display 1.\n Not supported in clojurescript.\n\n :setup - A function to be called once when setting the sketch up.\n\n :draw - A function to be repeatedly called at most n times per\n second where n is the target frame-rate set for\n the visualisation.\n\n :host - String id of canvas element or DOM element itself.\n Specifies host for the sketch. Must be specified in sketch,\n may be omitted in defsketch. If ommitted in defsketch,\n :host is set to the name of the sketch. If element with\n specified id is not found on the page and page is empty -\n new canvas element will be created. Used in clojurescript.\n\n :focus-gained - Called when the sketch gains focus.\n Not supported in clojurescript.\n\n :focus-lost - Called when the sketch loses focus.\n Not supported in clojurescript.\n\n :mouse-entered - Called when the mouse enters the sketch window.\n\n :mouse-exited - Called when the mouse leaves the sketch window\n\n :mouse-pressed - Called every time a mouse button is pressed.\n\n :mouse-released - Called every time a mouse button is released.\n\n :mouse-clicked - called once after a mouse button has been pressed\n and then released.\n\n :mouse-moved - Called every time the mouse moves and a button is\n not pressed.\n\n :mouse-dragged - Called every time the mouse moves and a button is\n pressed.\n\n :mouse-wheel - Called every time mouse wheel is rotated.\n Takes 1 argument - wheel rotation, an int.\n Negative values if the mouse wheel was rotated\n up/away from the user, and positive values\n if the mouse wheel was rotated down/ towards the user\n\n :key-pressed - Called every time any key is pressed.\n\n :key-released - Called every time any key is released.\n\n :key-typed - Called once every time non-modifier keys are\n pressed.\n\n :on-close - Called once, when sketch is closed\n Not supported in clojurescript.\n\n :middleware - Vector of middleware to be applied to the sketch.\n Middleware will be applied in the same order as in comp\n function: [f g] will be applied as (f (g options)).\n\n :settings - cousin of :setup. A function to be called once when\n setting sketch up. Should be used only for (smooth) and\n (no-smooth). Due to Processing limitations these functions\n cannot be used neither in :setup nor in :draw."],"^R","1.0","^B","~$quil.core/defsketch","^S",null,"^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^98","^99"]]]],"^[",["^10",[["^98","~$&","^99"]]],"^17",["^10",[null]]],"^15",["^10",[["^10",["^98","^99"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",false,"^Y",4732,"^23",true,"^19","^1:","^Z",4736,"^1;",1,"^1<",false,"^[",["^10",[["^98","~$&","^99"]]],"^13","Define and start a sketch and bind it to a var with the symbol\n app-name. If any of the options to the various callbacks are\n symbols, it wraps them in a call to var to ensure they aren't\n inlined and that redefinitions to the original fns are reflected in\n the visualisation.\n\n Available options:\n\n :size - A vector of width and height for the sketch or :fullscreen.\n Defaults to [500 300]. If you're using :fullscreen you may\n want to enable present mode - :features [:present]\n\n :renderer - Specifies the renderer type. One of :p2d, :p3d, :java2d,\n :opengl, :pdf). Defaults to :java2d. :dxf renderer\n can't be used as sketch renderer. Use begin-raw method\n instead. In clojurescript only :p2d and :p3d renderers\n are supported.\n\n :output-file - Specifies an output file path. Only used in :pdf mode.\n Not supported in clojurescript.\n\n :title - A string which will be displayed at the top of\n the sketch window. Not supported in clojurescript.\n\n :features - A vector of keywords customizing sketch behaviour.\n Supported features:\n\n :keep-on-top - Sketch window will always be above other\n windows. Note: some platforms might not\n support always-on-top windows.\n Not supported in clojurescript.\n\n :exit-on-close - Shutdown JVM when sketch is closed.\n Not supported in clojurescript.\n\n :resizable - Makes sketch resizable.\n Not supported in clojurescript.\n\n :no-safe-fns - Do not catch and print exceptions thrown\n inside functions provided to sketch (like\n draw, mouse-click, key-pressed and\n other). By default all exceptions thrown\n inside these functions are catched. This\n prevents sketch from breaking when bad\n function was provided and allows you to\n fix it and reload it on fly. You can\n disable this behaviour by enabling\n :no-safe-fns feature.\n Not supported in clojurescript.\n\n :present - Switch to present mode (fullscreen without\n borders, OS panels). You may want to use\n this feature together with :size :fullscreen.\n Not supported in clojurescript.\n\n :no-start - Disables autostart if sketch was created using\n defsketch macro. To start sketch you have to\n call function created defsketch.\n Supported only in clojurescript.\n\n :global-key-events - Allows a sketch to receive any\n keyboard event sent to the page,\n regardless of whether the canvas it is\n loaded in has focus or not.\n Supported only in clojurescript.\n\n Usage example: :features [:keep-on-top :present]\n\n :bgcolor - Sets background color for unused space in present mode.\n Color is specified in hex format: #XXXXXX.\n Example: :bgcolor \"#00FFFF\" (cyan background)\n Not supported in clojurescript.\n\n :display - Sets what display should be used by this sketch.\n Displays are numbered starting from 0. Example: :display 1.\n Not supported in clojurescript.\n\n :setup - A function to be called once when setting the sketch up.\n\n :draw - A function to be repeatedly called at most n times per\n second where n is the target frame-rate set for\n the visualisation.\n\n :host - String id of canvas element or DOM element itself.\n Specifies host for the sketch. Must be specified in sketch,\n may be omitted in defsketch. If ommitted in defsketch,\n :host is set to the name of the sketch. If element with\n specified id is not found on the page and page is empty -\n new canvas element will be created. Used in clojurescript.\n\n :focus-gained - Called when the sketch gains focus.\n Not supported in clojurescript.\n\n :focus-lost - Called when the sketch loses focus.\n Not supported in clojurescript.\n\n :mouse-entered - Called when the mouse enters the sketch window.\n\n :mouse-exited - Called when the mouse leaves the sketch window\n\n :mouse-pressed - Called every time a mouse button is pressed.\n\n :mouse-released - Called every time a mouse button is released.\n\n :mouse-clicked - called once after a mouse button has been pressed\n and then released.\n\n :mouse-moved - Called every time the mouse moves and a button is\n not pressed.\n\n :mouse-dragged - Called every time the mouse moves and a button is\n pressed.\n\n :mouse-wheel - Called every time mouse wheel is rotated.\n Takes 1 argument - wheel rotation, an int.\n Negative values if the mouse wheel was rotated\n up/away from the user, and positive values\n if the mouse wheel was rotated down/ towards the user\n\n :key-pressed - Called every time any key is pressed.\n\n :key-released - Called every time any key is released.\n\n :key-typed - Called once every time non-modifier keys are\n pressed.\n\n :on-close - Called once, when sketch is closed\n Not supported in clojurescript.\n\n :middleware - Vector of middleware to be applied to the sketch.\n Middleware will be applied in the same order as in comp\n function: [f g] will be applied as (f (g options)).\n\n :settings - cousin of :setup. A function to be called once when\n setting sketch up. Should be used only for (smooth) and\n (no-smooth). Due to Processing limitations these functions\n cannot be used neither in :setup nor in :draw."],"~$no-stroke",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","noStroke()","^W",3,"^X",true,"^Y",2864,"^Z",2864,"^[",["^10",["^11",["^10",[[]]]]],"^13","Disables drawing the stroke (outline). If both no-stroke and\n no-fill are called, nothing will be drawn to the screen."],"^R","1.0","^B","~$quil.core/no-stroke","^S","Setting","^T","out/quil/core.cljc","^U",12,"^V","noStroke()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2858,"^19","^1:","^Z",2864,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Disables drawing the stroke (outline). If both no-stroke and\n no-fill are called, nothing will be drawn to the screen."],"~$end-camera",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","endCamera()","^W",3,"^X",true,"^Y",1612,"^Z",1612,"^[",["^10",["^11",["^10",[[]]]]],"^13","Unsets the matrix mode from the camera matrix. See begin-camera."],"^R","1.0","^B","~$quil.core/end-camera","^S","Camera","^T","out/quil/core.cljc","^U",13,"^V","endCamera()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1606,"^19","^1:","^Z",1612,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Unsets the matrix mode from the camera matrix. See begin-camera."],"~$random-seed",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","randomSeed()","^W",3,"^X",true,"^Y",3243,"^Z",3243,"^[",["^10",["^11",["^10",[["~$w"]]]]],"^13","Sets the seed value for random. By default, random produces\n different results each time the program is run. Set the value\n parameter to a constant to return the same pseudo-random numbers\n each time the software is run."],"^R","1.0","^B","~$quil.core/random-seed","^S","Random","^T","out/quil/core.cljc","^U",14,"^V","randomSeed()","^15",["^10",[["~$w"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3237,"^19","^1:","^Z",3243,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$w"]]]]],"^13","Sets the seed value for random. By default, random produces\n different results each time the program is run. Set the value\n parameter to a constant to return the same pseudo-random numbers\n each time the software is run."],"~$model-z",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Coordinates","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","modelZ()","^W",3,"^X",true,"^Y",2554,"^Z",2554,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Returns the three-dimensional x, y, z position in model space. This\n returns the z value for a given coordinate based on the current set\n of transformations (scale, rotate, translate, etc.) The z value can\n be used to place an object in space relative to the location of the\n original point once the transformations are no longer in use."],"^R","1.0","^B","~$quil.core/model-z","^S","Coordinates","^T","out/quil/core.cljc","^U",10,"^V","modelZ()","^15",["^10",[["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2548,"^19","^1:","^Z",2554,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Returns the three-dimensional x, y, z position in model space. This\n returns the z value for a given coordinate based on the current set\n of transformations (scale, rotate, translate, etc.) The z value can\n be used to place an object in space relative to the location of the\n original point once the transformations are no longer in use."],"~$light-specular",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^V","lightSpecular()","^W",3,"^X",true,"^Y",2307,"^Z",2307,"^[",["^10",["^11",["^10",[["~$r","~$g","~$b"]]]]],"^13","Sets the specular color for lights. Like fill, it affects only the\n elements which are created after it in the code. Specular refers to\n light which bounces off a surface in a perferred direction (rather\n than bouncing in all directions like a diffuse light) and is used\n for creating highlights. The specular quality of a light interacts\n with the specular material qualities set through the specular and\n shininess functions."],"^R","1.0","^B","~$quil.core/light-specular","^S","Lights","^T","out/quil/core.cljc","^U",17,"^V","lightSpecular()","^15",["^10",[["~$r","~$g","~$b"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2301,"^19","^1:","^Z",2307,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$r","~$g","~$b"]]]]],"^13","Sets the specular color for lights. Like fill, it affects only the\n elements which are created after it in the code. Specular refers to\n light which bounces off a surface in a perferred direction (rather\n than bouncing in all directions like a diffuse light) and is used\n for creating highlights. The specular quality of a light interacts\n with the specular material qualities set through the specular and\n shininess functions."],"~$key-as-keyword",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.6","^S","Keyboard","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^V",null,"^W",3,"^X",true,"^Y",4901,"^Z",4901,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a keyword representing the currently pressed key. Modifier\n keys are represented as: :up, :down, :left, :right, :alt, :control,\n :shift, :command, :f1-24"],"^R","1.6","^B","~$quil.core/key-as-keyword","^S","Keyboard","^T","out/quil/core.cljc","^U",17,"^V",null,"^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4896,"^19","^1:","^Z",4901,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns a keyword representing the currently pressed key. Modifier\n keys are represented as: :up, :down, :left, :right, :alt, :control,\n :shift, :command, :f1-24"],"~$dist",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^[",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^17",["^10",[null,null]]],"^V","dist()","^W",3,"^X",false,"^Y",1495,"^Z",1495,"^[",["^10",["^11",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]]]],"^13","Calculates the distance between two points"],"^R","1.0","^B","~$quil.core/dist","^S","Calculation","^T","out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^[",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^17",["^10",[null,null]]],"^V","dist()","^15",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1489,"^Z",1495,"^1;",6,"^1<",true,"^[",["^10",[["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^13","Calculates the distance between two points"],"^8",["^ ","^B","~$quil.core/PI","^T","out/quil/core.cljc","^Y",76,"^W",10,"^Z",76,"^U",17,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",76,"^W",15,"^Z",76,"^U",17],"^1?","^6J"],"~$norm",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","norm()","^W",3,"^X",true,"^Y",2825,"^Z",2825,"^[",["^10",["^11",["^10",[["^34","^8:","^8;"]]]]],"^13","Normalize a value to exist between 0 and 1 (inclusive)."],"^R","1.0","^B","~$quil.core/norm","^S","Calculation","^T","out/quil/core.cljc","^U",7,"^V","norm()","^15",["^10",[["^34","^8:","^8;"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2819,"^19","^1:","^Z",2825,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["^34","^8:","^8;"]]]]],"^13","Normalize a value to exist between 0 and 1 (inclusive)."],"~$end-shape",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^1I"]]],"^[",["^10",[[],["^1I"]]],"^17",["^10",[null,null]]],"^V","endShape()","^W",3,"^X",true,"^Y",1651,"^Z",1651,"^[",["^10",["^11",["^10",[[],["^1I"]]]]],"^13","May only be called after begin-shape. When end-shape is called,\n all of image data defined since the previous call to begin-shape is\n written into the image buffer. The keyword :close may be passed to\n close the shape (to connect the beginning and the end)."],"^R","1.0","^B","~$quil.core/end-shape","^S","Vertex","^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^1I"]]],"^[",["^10",[[],["^1I"]]],"^17",["^10",[null,null]]],"^V","endShape()","^15",["^10",[[],["^1I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1645,"^Z",1651,"^1;",1,"^1<",true,"^[",["^10",[[],["^1I"]]],"^13","May only be called after begin-shape. When end-shape is called,\n all of image data defined since the previous call to begin-shape is\n written into the image buffer. The keyword :close may be passed to\n close the shape (to connect the beginning and the end)."],"~$fill",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","fill()","^W",3,"^X",true,"^Y",1742,"^Z",1742,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]]]],"^13","Sets the color used to fill shapes."],"^R","1.0","^B","~$quil.core/fill","^S","Setting","^T","out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","fill()","^15",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1736,"^Z",1742,"^1;",4,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^13","Sets the color used to fill shapes."],"~$with-translation",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S","Utility Macros","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",19,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["~$translation-vector","^22"]]]],"^[",["^10",[["^9Q","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^W",3,"^X",true,"^Y",4670,"^23",true,"^Z",4670,"^[",["^10",["^11",["^10",[["^9Q","~$&","^22"]]]]],"^13","Performs body with translation, restores current transformation on\n exit."],"^R","1.0","^B","~$quil.core/with-translation","^S","Utility Macros","^T","out/quil/core.cljc","^U",19,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^9Q","^22"]]]],"^[",["^10",[["^9Q","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^15",["^10",[["^10",["^9Q","^22"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",true,"^Y",4664,"^23",true,"^19","^1:","^Z",4670,"^1;",1,"^1<",false,"^[",["^10",[["^9Q","~$&","^22"]]],"^13","Performs body with translation, restores current transformation on\n exit."],"~$reset-matrix",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","resetMatrix()","^W",3,"^X",true,"^Y",3383,"^Z",3383,"^[",["^10",["^11",["^10",[[]]]]],"^13","Replaces the current matrix with the identity matrix. The\n equivalent function in OpenGL is glLoadIdentity()"],"^R","1.0","^B","~$quil.core/reset-matrix","^S",null,"^T","out/quil/core.cljc","^U",15,"^V","resetMatrix()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3377,"^19","^1:","^Z",3383,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Replaces the current matrix with the identity matrix. The\n equivalent function in OpenGL is glLoadIdentity()"],"~$emissive-float",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$float-val"],["~$r","~$g","~$b"]]],"^[",["^10",[["^9V"],["~$r","~$g","~$b"]]],"^17",["^10",[null,null]]],"^V","emissive()","^W",3,"^X",true,"^Y",1566,"^Z",1566,"^[",["^10",["^11",["^10",[["^9V"],["~$r","~$g","~$b"]]]]],"^13","Sets the emissive color of the material used for drawing shapes\n drawn to the screen. Used in combination with ambient, specular, and\n shininess in setting the material properties of shapes. Converts all\n args to floats"],"^R","1.0","^B","~$quil.core/emissive-float","^S","Material Properties","^T","out/quil/core.cljc","^U",17,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^9V"],["~$r","~$g","~$b"]]],"^[",["^10",[["^9V"],["~$r","~$g","~$b"]]],"^17",["^10",[null,null]]],"^V","emissive()","^15",["^10",[["^9V"],["~$r","~$g","~$b"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1560,"^Z",1566,"^1;",3,"^1<",true,"^[",["^10",[["^9V"],["~$r","~$g","~$b"]]],"^13","Sets the emissive color of the material used for drawing shapes\n drawn to the screen. Used in combination with ambient, specular, and\n shininess in setting the material properties of shapes. Converts all\n args to floats"],"~$shape-modes",["^ ","^B","~$quil.core/shape-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",47,"^U",13,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",47,"^W",2,"^Z",47,"^U",13],"^1?","^1@"],"~$green",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^V","green()","^W",3,"^X",true,"^Y",1939,"^Z",1939,"^[",["^10",["^11",["^10",[["^59"]]]]],"^13","Extracts the green value from a color, scaled to match current\n color-mode. This value is always returned as a float so be careful\n not to assign it to an int value."],"^R","1.0","^B","~$quil.core/green","^S","Creating & Reading","^T","out/quil/core.cljc","^U",8,"^V","green()","^15",["^10",[["^59"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1933,"^19","^1:","^Z",1939,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^59"]]]]],"^13","Extracts the green value from a color, scaled to match current\n color-mode. This value is always returned as a float so be careful\n not to assign it to an int value."],"~$HALF-PI",["^ ","^B","~$quil.core/HALF-PI","^T","out/quil/core.cljc","^Y",77,"^W",1,"^Z",77,"^U",13,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",77,"^W",6,"^Z",77,"^U",13],"^1?","^4P"],"~$begin-contour",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","2.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^V","beginContour()","^W",3,"^X",true,"^Y",602,"^Z",602,"^[",["^10",["^11",["^10",[[]]]]],"^13","Use the begin-contour and end-contour function to create negative\n shapes within shapes. These functions can only be within a\n begin-shape/end-shape pair and they only work with the :p2d and :p3d\n renderers."],"^R","2.0","^B","~$quil.core/begin-contour","^S","Vertex","^T","out/quil/core.cljc","^U",16,"^V","beginContour()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",596,"^19","^1:","^Z",602,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Use the begin-contour and end-contour function to create negative\n shapes within shapes. These functions can only be within a\n begin-shape/end-shape pair and they only work with the :p2d and :p3d\n renderers."],"~$DEG-TO-RAD",["^ ","^B","~$quil.core/DEG-TO-RAD","^T","out/quil/core.cljc","^Y",82,"^W",1,"^Z",82,"^U",16,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",82,"^W",6,"^Z",82,"^U",16],"^1?","^4P"],"~$pow",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","pow()","^W",3,"^X",false,"^Y",3060,"^Z",3060,"^[",["^10",["^11",["^10",[["~$num","~$exponent"]]]]],"^13","Facilitates exponential expressions. The pow() function is an\n efficient way of multiplying numbers by themselves (or their\n reciprocal) in large quantities. For example, (pow 3 5) is\n equivalent to the expression (* 3 3 3 3 3) and (pow 3 -5) is\n equivalent to (/ 1 (* 3 3 3 3 3))."],"^R","1.0","^B","~$quil.core/pow","^S","Calculation","^T","out/quil/core.cljc","^U",6,"^V","pow()","^15",["^10",[["^:7","^:8"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",3054,"^19","^1:","^Z",3060,"^1;",2,"^1<",true,"^[",["^10",["^11",["^10",[["^:7","^:8"]]]]],"^13","Facilitates exponential expressions. The pow() function is an\n efficient way of multiplying numbers by themselves (or their\n reciprocal) in large quantities. For example, (pow 3 5) is\n equivalent to the expression (* 3 3 3 3 3) and (pow 3 -5) is\n equivalent to (/ 1 (* 3 3 3 3 3))."],"~$box",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","3D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2H"],["^1Q","^1R","~$depth"]]],"^[",["^10",[["^2H"],["^1Q","^1R","^:;"]]],"^17",["^10",[null,null]]],"^V","box()","^W",3,"^X",true,"^Y",917,"^Z",917,"^[",["^10",["^11",["^10",[["^2H"],["^1Q","^1R","^:;"]]]]],"^13","Creates an extruded rectangle."],"^R","1.0","^B","~$quil.core/box","^S","3D Primitives","^T","out/quil/core.cljc","^U",6,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2H"],["^1Q","^1R","^:;"]]],"^[",["^10",[["^2H"],["^1Q","^1R","^:;"]]],"^17",["^10",[null,null]]],"^V","box()","^15",["^10",[["^2H"],["^1Q","^1R","^:;"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",911,"^Z",917,"^1;",3,"^1<",true,"^[",["^10",[["^2H"],["^1Q","^1R","^:;"]]],"^13","Creates an extruded rectangle."],"~$exp",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Calculation","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","exp()","^W",3,"^X",false,"^Y",1685,"^Z",1685,"^[",["^10",["^11",["^10",[["^34"]]]]],"^13","Returns Euler's number e (2.71828...) raised to the power of the\n value parameter."],"^R","1.0","^B","~$quil.core/exp","^S","Calculation","^T","out/quil/core.cljc","^U",6,"^V","exp()","^15",["^10",[["^34"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",1679,"^19","^1:","^Z",1685,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^34"]]]]],"^13","Returns Euler's number e (2.71828...) raised to the power of the\n value parameter."],"~$with-sketch",["^ ","^P",null,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",190,"^W",11,"^Z",190,"^U",22,"^23",true,"^[",["^10",["^11",["^10",[["~$applet","~$&","^22"]]]]],"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^:@","^22"]]]],"^[",["^10",[["^:@","~$&","^22"]]],"^17",["^10",[null]]]],"^B","~$quil.core/with-sketch","^T","out/quil/core.cljc","^U",22,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^:@","^22"]]]],"^[",["^10",[["^:@","~$&","^22"]]],"^17",["^10",[null]]],"^15",["^10",[["^10",["^:@","^22"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^Y",190,"^23",true,"^19","^1:","^Z",190,"^1;",1,"^1<",false,"^[",["^10",[["^:@","~$&","^22"]]]],"~$text-ascent",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Metrics","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","textAscent()","^W",3,"^X",true,"^Y",4241,"^Z",4241,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the ascent of the current font at its current size. This\n information is useful for determining the height of the font above\n the baseline. For example, adding the text-ascent and text-descent\n values will give you the total height of the line."],"^R","1.0","^B","~$quil.core/text-ascent","^S","Metrics","^T","out/quil/core.cljc","^U",14,"^V","textAscent()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4235,"^19","^1:","^Z",4241,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the ascent of the current font at its current size. This\n information is useful for determining the height of the font above\n the baseline. For example, adding the text-ascent and text-descent\n values will give you the total height of the line."],"~$tint-int",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","tint()","^W",3,"^X",true,"^Y",4438,"^Z",4438,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"]]]]],"^13","Sets the fill value for displaying images. Images can be tinted to\n specified colors or made transparent by setting the alpha.\n\n To make an image transparent, but not change it's color, use white\n as the tint color and specify an alpha value. For instance,\n tint(255, 128) will make an image 50% transparent (unless\n colorMode() has been used).\n\n The value for the parameter gray must be less than or equal to the\n current maximum value as specified by colorMode(). The default\n maximum value is 255.\n\n Also used to control the coloring of textures in 3D."],"^R","1.0","^B","~$quil.core/tint-int","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^3I"],["^3I","^2N"]]],"^[",["^10",[["^3I"],["^3I","^2N"]]],"^17",["^10",[null,null]]],"^V","tint()","^15",["^10",[["^3I"],["^3I","^2N"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4432,"^Z",4438,"^1;",2,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"]]],"^13","Sets the fill value for displaying images. Images can be tinted to\n specified colors or made transparent by setting the alpha.\n\n To make an image transparent, but not change it's color, use white\n as the tint color and specify an alpha value. For instance,\n tint(255, 128) will make an image 50% transparent (unless\n colorMode() has been used).\n\n The value for the parameter gray must be less than or equal to the\n current maximum value as specified by colorMode(). The default\n maximum value is 255.\n\n Also used to control the coloring of textures in 3D."],"~$shininess",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","shininess()","^W",3,"^X",true,"^Y",3850,"^Z",3850,"^[",["^10",["^11",["^10",[["~$shine"]]]]],"^13","Sets the amount of gloss in the surface of shapes. Used in\n combination with ambient, specular, and emissive in setting\n the material properties of shapes."],"^R","1.0","^B","~$quil.core/shininess","^S","Material Properties","^T","out/quil/core.cljc","^U",12,"^V","shininess()","^15",["^10",[["^:G"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3844,"^19","^1:","^Z",3850,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^:G"]]]]],"^13","Sets the amount of gloss in the surface of shapes. Used in\n combination with ambient, specular, and emissive in setting\n the material properties of shapes."],"~$rect-mode",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","rectMode()","^W",3,"^X",true,"^Y",3302,"^Z",3302,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Modifies the location from which rectangles draw. The default mode\n is :corner. Available modes are:\n\n\n :corner - Specifies the location to be the upper left corner of the\n shape and uses the third and fourth parameters of rect to\n specify the width and height.\n\n :corners - Uses the first and second parameters of rect to set the\n location of one corner and uses the third and fourth\n parameters to set the opposite corner.\n\n :center - Draws the image from its center point and uses the third\n and forth parameters of rect to specify the image's width\n and height.\n\n :radius - Draws the image from its center point and uses the third\n and forth parameters of rect() to specify half of the\n image's width and height."],"^R","1.0","^B","~$quil.core/rect-mode","^S","Attributes","^T","out/quil/core.cljc","^U",12,"^V","rectMode()","^15",["^10",[["^1I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3296,"^19","^1:","^Z",3302,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Modifies the location from which rectangles draw. The default mode\n is :corner. Available modes are:\n\n\n :corner - Specifies the location to be the upper left corner of the\n shape and uses the third and fourth parameters of rect to\n specify the width and height.\n\n :corners - Uses the first and second parameters of rect to set the\n location of one corner and uses the third and fourth\n parameters to set the opposite corner.\n\n :center - Draws the image from its center point and uses the third\n and forth parameters of rect to specify the image's width\n and height.\n\n :radius - Draws the image from its center point and uses the third\n and forth parameters of rect() to specify half of the\n image's width and height."],"~$ellipse-mode",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","ellipseMode()","^W",3,"^X",true,"^Y",1544,"^Z",1544,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Modifies the origin of the ellispse according to the specified mode:\n\n :center - specifies the location of the ellipse as\n the center of the shape. (Default).\n :radius - similar to center, but the width and height parameters to\n ellipse specify the radius of the ellipse, rather than the\n diameter.\n :corner - draws the shape from the upper-left corner of its bounding\n box.\n :corners - uses the four parameters to ellipse to set two opposing\n corners of the ellipse's bounding box."],"^R","1.0","^B","~$quil.core/ellipse-mode","^S","Attributes","^T","out/quil/core.cljc","^U",15,"^V","ellipseMode()","^15",["^10",[["^1I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1538,"^19","^1:","^Z",1544,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Modifies the origin of the ellispse according to the specified mode:\n\n :center - specifies the location of the ellipse as\n the center of the shape. (Default).\n :radius - similar to center, but the width and height parameters to\n ellipse specify the radius of the ellipse, rather than the\n diameter.\n :corner - draws the shape from the upper-left corner of its bounding\n box.\n :corners - uses the four parameters to ellipse to set two opposing\n corners of the ellipse's bounding box."],"~$month",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Time & Date","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^V","month()","^W",3,"^X",false,"^Y",2569,"^Z",2569,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current month as a value from 1 - 12."],"^R","1.0","^B","~$quil.core/month","^S","Time & Date","^T","out/quil/core.cljc","^U",8,"^V","month()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",2563,"^19","^1:","^Z",2569,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current month as a value from 1 - 12."],"~$texture-modes",["^ ","^B","~$quil.core/texture-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",69,"^U",15,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",69,"^W",2,"^Z",69,"^U",15],"^1?","^1@"],"~$tint-float",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","tint()","^W",3,"^X",true,"^Y",4413,"^Z",4413,"^[",["^10",["^11",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]]]],"^13","Sets the fill value for displaying images. Images can be tinted to\n specified colors or made transparent by setting the alpha.\n\n To make an image transparent, but not change it's color, use white\n as the tint color and specify an alpha value. For instance,\n tint(255, 128) will make an image 50% transparent (unless\n colorMode() has been used).\n\n The value for the parameter gray must be less than or equal to the\n current maximum value as specified by colorMode(). The default\n maximum value is 255.\n\n Also used to control the coloring of textures in 3D."],"^R","1.0","^B","~$quil.core/tint-float","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","tint()","^15",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",4407,"^Z",4413,"^1;",4,"^1<",true,"^[",["^10",[["^2M"],["^2M","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^13","Sets the fill value for displaying images. Images can be tinted to\n specified colors or made transparent by setting the alpha.\n\n To make an image transparent, but not change it's color, use white\n as the tint color and specify an alpha value. For instance,\n tint(255, 128) will make an image 50% transparent (unless\n colorMode() has been used).\n\n The value for the parameter gray must be less than or equal to the\n current maximum value as specified by colorMode(). The default\n maximum value is 255.\n\n Also used to control the coloring of textures in 3D."],"^1Q",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^V","getWidth()","^W",3,"^4=",null,"^X",true,"^Y",4620,"^Z",4620,"^[",["^10",["^11",["^10",[[]]]]],"^13","Width of the display window. The value of width is zero until size is\n called."],"^R","1.0","^B","~$quil.core/width","^S",null,"^T","out/quil/core.cljc","^U",8,"^V","getWidth()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^4=",null,"^18",false,"^X",true,"^Y",4613,"^19","^1:","^Z",4620,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Width of the display window. The value of width is zero until size is\n called."],"~$background",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Setting","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","background()","^W",3,"^X",true,"^Y",550,"^Z",550,"^[",["^10",["^11",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]]]],"^13","Sets the color used for the background of the Processing\n window. The default background is light gray. In the draw function,\n the background color is used to clear the display window at the\n beginning of each frame.\n\n It is not possible to use transparency (alpha) in background colors\n with the main drawing surface, however they will work properly with\n create-graphics. Converts args to floats."],"^R","1.0","^B","~$quil.core/background","^S","Setting","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^[",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^17",["^10",[null,null,null,null]]],"^V","background()","^15",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^16",null,"^17",["^10",[null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",544,"^Z",550,"^1;",4,"^1<",true,"^[",["^10",[["^3I"],["^3I","^2N"],["~$r","~$g","~$b"],["~$r","~$g","~$b","~$a"]]],"^13","Sets the color used for the background of the Processing\n window. The default background is light gray. In the draw function,\n the background color is used to clear the display window at the\n beginning of each frame.\n\n It is not possible to use transparency (alpha) in background colors\n with the main drawing surface, however they will work properly with\n create-graphics. Converts args to floats."],"~$ortho",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[[],["~$left","~$right","~$bottom","~$top"],["^:W","^:X","^:Y","^:Z","~$near","~$far"]]],"^[",["^10",[[],["^:W","^:X","^:Y","^:Z"],["^:W","^:X","^:Y","^:Z","^:[","^;0"]]],"^17",["^10",[null,null,null]]],"^V","ortho()","^W",3,"^X",true,"^Y",2888,"^Z",2888,"^[",["^10",["^11",["^10",[[],["^:W","^:X","^:Y","^:Z"],["^:W","^:X","^:Y","^:Z","^:[","^;0"]]]]],"^13","Sets an orthographic projection and defines a parallel clipping\n volume. All objects with the same dimension appear the same size,\n regardless of whether they are near or far from the camera. The\n parameters to this function specify the clipping volume where left\n and right are the minimum and maximum x values, top and bottom are\n the minimum and maximum y values, and near and far are the minimum\n and maximum z values. If no parameters are given, the default is\n used: (ortho 0 width 0 height -10 10)"],"^R","1.0","^B","~$quil.core/ortho","^S","Camera","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[[],["^:W","^:X","^:Y","^:Z"],["^:W","^:X","^:Y","^:Z","^:[","^;0"]]],"^[",["^10",[[],["^:W","^:X","^:Y","^:Z"],["^:W","^:X","^:Y","^:Z","^:[","^;0"]]],"^17",["^10",[null,null,null]]],"^V","ortho()","^15",["^10",[[],["^:W","^:X","^:Y","^:Z"],["^:W","^:X","^:Y","^:Z","^:[","^;0"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",2882,"^Z",2888,"^1;",6,"^1<",true,"^[",["^10",[[],["^:W","^:X","^:Y","^:Z"],["^:W","^:X","^:Y","^:Z","^:[","^;0"]]],"^13","Sets an orthographic projection and defines a parallel clipping\n volume. All objects with the same dimension appear the same size,\n regardless of whether they are near or far from the camera. The\n parameters to this function specify the clipping volume where left\n and right are the minimum and maximum x values, top and bottom are\n the minimum and maximum y values, and near and far are the minimum\n and maximum z values. If no parameters are given, the default is\n used: (ortho 0 width 0 height -10 10)"],"~$hint-options",["^ ","^B","~$quil.core/hint-options","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",53,"^U",14,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",53,"^W",2,"^Z",53,"^U",14],"^1?","^1@"],"~$prc-println",["^ ","^O","Output","^P",null,"^Q",["^ ","^O","Output","^R","1.0","^S","Text area","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^W",6,"^8Z",true,"^Y",152,"^Z",152,"^[",["^10",["^11",["^10",[["^8["]]]]],"^13","Writes to the text area of the Processing environment's console.\n This is often helpful for looking at the data a program is producing.\n Each call to this function creates a new line of output.\n Individual elements can be separated with quotes (\"\") and joined with the string concatenation operator (+).\n Also writes the content of an array to the text area of the Processing environment.\n This is often helpful for looking at the data a program is producing.\n A new line is put between each element of the array. This function can only print 1D arrays,\n but can test to see if the content are null or not null for 2+ dimensional arrays."],"^R","1.0","^B","~$quil.core/prc-println","^S","Text area","^T","out/quil/core.cljc","^U",17,"^15",["^10",[["^8["]]],"^16",null,"^17",["^10",[null,null]],"^W",4,"^18",false,"^8Z",true,"^Y",147,"^19","^1:","^Z",152,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^8["]]]]],"^13","Writes to the text area of the Processing environment's console.\n This is often helpful for looking at the data a program is producing.\n Each call to this function creates a new line of output.\n Individual elements can be separated with quotes (\"\") and joined with the string concatenation operator (+).\n Also writes the content of an array to the text area of the Processing environment.\n This is often helpful for looking at the data a program is producing.\n A new line is put between each element of the array. This function can only print 1D arrays,\n but can test to see if the content are null or not null for 2+ dimensional arrays."],"~$brightness",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","brightness()","^W",3,"^X",true,"^Y",928,"^Z",928,"^[",["^10",["^11",["^10",[["^87"]]]]],"^13","Extracts the brightness value from a color. Returns a float."],"^R","1.0","^B","~$quil.core/brightness","^S","Creating & Reading","^T","out/quil/core.cljc","^U",13,"^V","brightness()","^15",["^10",[["^87"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",922,"^19","^1:","^Z",928,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^87"]]]]],"^13","Extracts the brightness value from a color. Returns a float."],"~$arc-modes",["^ ","^B","~$quil.core/arc-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",46,"^U",11,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",46,"^W",2,"^Z",46,"^U",11],"^1?","^1@"],"~$specular",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^[",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","specular()","^W",3,"^X",true,"^Y",3907,"^Z",3907,"^[",["^10",["^11",["^10",[["^2M"],["~$x","~$y","~$z"]]]]],"^13","Sets the specular color of the materials used for shapes drawn to\n the screen, which sets the color of hightlights. Specular refers to\n light which bounces off a surface in a perferred direction (rather\n than bouncing in all directions like a diffuse light). Used in\n combination with emissive, ambient, and shininess in setting\n the material properties of shapes."],"^R","1.0","^B","~$quil.core/specular","^S","Material Properties","^T","out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^[",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","specular()","^15",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3901,"^Z",3907,"^1;",3,"^1<",true,"^[",["^10",[["^2M"],["~$x","~$y","~$z"]]],"^13","Sets the specular color of the materials used for shapes drawn to\n the screen, which sets the color of hightlights. Specular refers to\n light which bounces off a surface in a perferred direction (rather\n than bouncing in all directions like a diffuse light). Used in\n combination with emissive, ambient, and shininess in setting\n the material properties of shapes."],"~$save-frame",["^ ","^O","Output","^P",null,"^Q",["^ ","^O","Output","^R","1.0","^S","Image","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["~$name"]]],"^[",["^10",[[],["^;="]]],"^17",["^10",[null,null]]],"^V","saveFrame()","^W",3,"^X",true,"^Y",3569,"^Z",3569,"^[",["^10",["^11",["^10",[[],["^;="]]]]],"^13","Saves an image identical to the current display window as a\n file. May be called multple times - each file saved will have a\n unique name. Name and image formate may be modified by passing a\n string parameter of the form \"foo-####.ext\" where foo- can be any\n arbitrary string, #### will be replaced with the current frame id\n and .ext is one of .tiff, .targa, .png, .jpeg or .jpg\n\n Examples:\n (save-frame)\n (save-frame \"pretty-pic-####.jpg\")"],"^R","1.0","^B","~$quil.core/save-frame","^S","Image","^T","out/quil/core.cljc","^U",13,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^;="]]],"^[",["^10",[[],["^;="]]],"^17",["^10",[null,null]]],"^V","saveFrame()","^15",["^10",[[],["^;="]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3563,"^Z",3569,"^1;",1,"^1<",true,"^[",["^10",[[],["^;="]]],"^13","Saves an image identical to the current display window as a\n file. May be called multple times - each file saved will have a\n unique name. Name and image formate may be modified by passing a\n string parameter of the form \"foo-####.ext\" where foo- can be any\n arbitrary string, #### will be replaced with the current frame id\n and .ext is one of .tiff, .targa, .png, .jpeg or .jpg\n\n Examples:\n (save-frame)\n (save-frame \"pretty-pic-####.jpg\")"],"~$cursor",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["~$cursor-mode"]]],"^[",["^10",[[],["^;@"]]],"^17",["^10",[null,null]]],"^V","cursor()","^W",3,"^X",true,"^Y",1286,"^Z",1286,"^[",["^10",["^11",["^10",[[],["^;@"]]]]],"^13","Sets the cursor to a predefined symbol or makes it\n visible if already hidden (after no-cursor was called).\n\n Available modes: :arrow, :cross, :hand, :move, :text, :wait\n\n See cursor-image for specifying a generic image as the cursor\n symbol."],"^R","1.0","^B","~$quil.core/cursor","^S",null,"^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^;@"]]],"^[",["^10",[[],["^;@"]]],"^17",["^10",[null,null]]],"^V","cursor()","^15",["^10",[[],["^;@"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1280,"^Z",1286,"^1;",1,"^1<",true,"^[",["^10",[[],["^;@"]]],"^13","Sets the cursor to a predefined symbol or makes it\n visible if already hidden (after no-cursor was called).\n\n Available modes: :arrow, :cross, :hand, :move, :text, :wait\n\n See cursor-image for specifying a generic image as the cursor\n symbol."],"~$noise",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null,null]]],"^V","noise()","^W",3,"^X",true,"^Y",2704,"^Z",2704,"^[",["^10",["^11",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]]]],"^13","Returns the Perlin noise value at specified coordinates. Perlin\n noise is a random sequence generator producing a more natural\n ordered, harmonic succession of numbers compared to the standard\n random function. It was invented by Ken Perlin in the 1980s and\n been used since in graphical applications to produce procedural\n textures, natural motion, shapes, terrains etc.\n\n The main difference to the random function is that Perlin noise is\n defined in an infinite n-dimensional space where each pair of\n coordinates corresponds to a fixed semi-random value (fixed only for\n the lifespan of the program). The resulting value will always be\n between 0.0 and 1.0. Processing can compute 1D, 2D and 3D noise,\n depending on the number of coordinates given. The noise value can be\n animated by moving through the noise space and the 2nd and 3rd\n dimensions can also be interpreted as time.\n\n The actual noise is structured similar to an audio signal, in\n respect to the function's use of frequencies. Similar to the concept\n of harmonics in physics, perlin noise is computed over several\n octaves which are added together for the final result.\n\n Another way to adjust the character of the resulting sequence is the\n scale of the input coordinates. As the function works within an\n infinite space the value of the coordinates doesn't matter as such,\n only the distance between successive coordinates does (eg. when\n using noise within a loop). As a general rule the smaller the\n difference between coordinates, the smoother the resulting noise\n sequence will be. Steps of 0.005-0.03 work best for most\n applications, but this will differ depending on use."],"^R","1.0","^B","~$quil.core/noise","^S","Random","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null,null]]],"^V","noise()","^15",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",2698,"^Z",2704,"^1;",3,"^1<",true,"^[",["^10",[["~$x"],["~$x","~$y"],["~$x","~$y","~$z"]]],"^13","Returns the Perlin noise value at specified coordinates. Perlin\n noise is a random sequence generator producing a more natural\n ordered, harmonic succession of numbers compared to the standard\n random function. It was invented by Ken Perlin in the 1980s and\n been used since in graphical applications to produce procedural\n textures, natural motion, shapes, terrains etc.\n\n The main difference to the random function is that Perlin noise is\n defined in an infinite n-dimensional space where each pair of\n coordinates corresponds to a fixed semi-random value (fixed only for\n the lifespan of the program). The resulting value will always be\n between 0.0 and 1.0. Processing can compute 1D, 2D and 3D noise,\n depending on the number of coordinates given. The noise value can be\n animated by moving through the noise space and the 2nd and 3rd\n dimensions can also be interpreted as time.\n\n The actual noise is structured similar to an audio signal, in\n respect to the function's use of frequencies. Similar to the concept\n of harmonics in physics, perlin noise is computed over several\n octaves which are added together for the final result.\n\n Another way to adjust the character of the resulting sequence is the\n scale of the input coordinates. As the function works within an\n infinite space the value of the coordinates doesn't matter as such,\n only the distance between successive coordinates does (eg. when\n using noise within a loop). As a general rule the smaller the\n difference between coordinates, the smoother the resulting noise\n sequence will be. Steps of 0.005-0.03 work best for most\n applications, but this will differ depending on use."],"~$push-style",["^ ","^O","Structure","^P",null,"^Q",["^ ","^O","Structure","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",13,"^V","pushStyle()","^W",3,"^X",true,"^Y",3128,"^Z",3128,"^[",["^10",["^11",["^10",[[]]]]],"^13","Saves the current style settings onto a 'style stack'. Use with\n pop-style which restores the prior settings. Note that these\n functions are always used together. They allow you to change the\n style settings and later return to what you had. When a new style is\n started with push-style, it builds on the current style\n information. The push-style and pop-style fns can be embedded to\n provide more control.\n\n The style information controlled by the following functions are\n included in the style: fill, stroke, tint, stroke-weight,\n stroke-cap, stroke-join, image-mode, rect-mode, ellipse-mode,\n shape-mode, color-mode, text-align, text-font, text-mode, text-size,\n text-leading, emissive, specular, shininess, and ambient"],"^R","1.0","^B","~$quil.core/push-style","^S",null,"^T","out/quil/core.cljc","^U",13,"^V","pushStyle()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3122,"^19","^1:","^Z",3128,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Saves the current style settings onto a 'style stack'. Use with\n pop-style which restores the prior settings. Note that these\n functions are always used together. They allow you to change the\n style settings and later return to what you had. When a new style is\n started with push-style, it builds on the current style\n information. The push-style and pop-style fns can be embedded to\n provide more control.\n\n The style information controlled by the following functions are\n included in the style: fill, stroke, tint, stroke-weight,\n stroke-cap, stroke-join, image-mode, rect-mode, ellipse-mode,\n shape-mode, color-mode, text-align, text-font, text-mode, text-size,\n text-leading, emissive, specular, shininess, and ambient"],"~$bezier-vertex",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",9,"^15",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]],"^[",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","bezierVertex()","^W",3,"^X",true,"^Y",735,"^Z",735,"^[",["^10",["^11",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]]]],"^13","Specifies vertex coordinates for Bezier curves. Each call to\n bezier-vertex defines the position of two control points and one\n anchor point of a Bezier curve, adding a new segment to a line or\n shape. The first time bezier-vertex is used within a begin-shape\n call, it must be prefaced with a call to vertex to set the first\n anchor point. This function must be used between begin-shape and\n end-shape and only when there is no parameter specified to\n begin-shape."],"^R","1.0","^B","~$quil.core/bezier-vertex","^S","Vertex","^T","out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",9,"^15",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]],"^[",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","bezierVertex()","^15",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",729,"^Z",735,"^1;",9,"^1<",true,"^[",["^10",[["^5I","^5J","^5K","^5L","~$x","~$y"],["^5I","^5J","^5N","^5K","^5L","^5O","~$x","~$y","~$z"]]],"^13","Specifies vertex coordinates for Bezier curves. Each call to\n bezier-vertex defines the position of two control points and one\n anchor point of a Bezier curve, adding a new segment to a line or\n shape. The first time bezier-vertex is used within a begin-shape\n call, it must be prefaced with a call to vertex to set the first\n anchor point. This function must be used between begin-shape and\n end-shape and only when there is no parameter specified to\n begin-shape."],"~$light-falloff",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^V","lightFalloff()","^W",3,"^X",true,"^Y",2229,"^Z",2229,"^[",["^10",["^11",["^10",[["~$constant","~$linear","~$quadratic"]]]]],"^13","Sets the falloff rates for point lights, spot lights, and ambient\n lights. The parameters are used to determine the falloff with the\n following equation:\n\n d = distance from light position to vertex position\n falloff = 1 / (CONSTANT + d * LINEAR + (d*d) * QUADRATIC)\n\n Like fill, it affects only the elements which are created after it\n in the code. The default value is (light-falloff 1.0 0.0 0.0).\n Thinking about an ambient light with a falloff can be tricky. It is\n used, for example, if you wanted a region of your scene to be lit\n ambiently one color and another region to be lit ambiently by\n another color, you would use an ambient light with location and\n falloff. You can think of it as a point light that doesn't care\n which direction a surface is facing."],"^R","1.0","^B","~$quil.core/light-falloff","^S","Lights","^T","out/quil/core.cljc","^U",16,"^V","lightFalloff()","^15",["^10",[["^;I","^;J","^;K"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2223,"^19","^1:","^Z",2229,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["^;I","^;J","^;K"]]]]],"^13","Sets the falloff rates for point lights, spot lights, and ambient\n lights. The parameters are used to determine the falloff with the\n following equation:\n\n d = distance from light position to vertex position\n falloff = 1 / (CONSTANT + d * LINEAR + (d*d) * QUADRATIC)\n\n Like fill, it affects only the elements which are created after it\n in the code. The default value is (light-falloff 1.0 0.0 0.0).\n Thinking about an ambient light with a falloff can be tricky. It is\n used, for example, if you wanted a region of your scene to be lit\n ambiently one color and another region to be lit ambiently by\n another color, you would use an ambient light with location and\n falloff. You can think of it as a point light that doesn't care\n which direction a surface is facing."],"~$noise-detail",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$octaves"],["^;N","~$falloff"]]],"^[",["^10",[["^;N"],["^;N","^;O"]]],"^17",["^10",[null,null]]],"^V","noiseDetail()","^W",3,"^X",true,"^Y",2744,"^Z",2744,"^[",["^10",["^11",["^10",[["^;N"],["^;N","^;O"]]]]],"^13","Adjusts the character and level of detail produced by the Perlin\n noise function. Similar to harmonics in physics, noise is computed\n over several octaves. Lower octaves contribute more to the output\n signal and as such define the overal intensity of the noise, whereas\n higher octaves create finer grained details in the noise\n sequence. By default, noise is computed over 4 octaves with each\n octave contributing exactly half than its predecessor, starting at\n 50% strength for the 1st octave. This falloff amount can be changed\n by adding an additional function parameter. Eg. a falloff factor of\n 0.75 means each octave will now have 75% impact (25% less) of the\n previous lower octave. Any value between 0.0 and 1.0 is valid,\n however note that values greater than 0.5 might result in greater\n than 1.0 values returned by noise.\n\n By changing these parameters, the signal created by the noise\n function can be adapted to fit very specific needs and\n characteristics."],"^R","1.0","^B","~$quil.core/noise-detail","^S","Random","^T","out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^;N"],["^;N","^;O"]]],"^[",["^10",[["^;N"],["^;N","^;O"]]],"^17",["^10",[null,null]]],"^V","noiseDetail()","^15",["^10",[["^;N"],["^;N","^;O"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2738,"^Z",2744,"^1;",2,"^1<",true,"^[",["^10",[["^;N"],["^;N","^;O"]]],"^13","Adjusts the character and level of detail produced by the Perlin\n noise function. Similar to harmonics in physics, noise is computed\n over several octaves. Lower octaves contribute more to the output\n signal and as such define the overal intensity of the noise, whereas\n higher octaves create finer grained details in the noise\n sequence. By default, noise is computed over 4 octaves with each\n octave contributing exactly half than its predecessor, starting at\n 50% strength for the 1st octave. This falloff amount can be changed\n by adding an additional function parameter. Eg. a falloff factor of\n 0.75 means each octave will now have 75% impact (25% less) of the\n previous lower octave. Any value between 0.0 and 1.0 is valid,\n however note that values greater than 0.5 might result in greater\n than 1.0 values returned by noise.\n\n By changing these parameters, the signal created by the noise\n function can be adapted to fit very specific needs and\n characteristics."],"~$save",["^ ","^O","Output","^P",null,"^Q",["^ ","^O","Output","^R","1.0","^S","Image","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","save()","^W",3,"^X",true,"^Y",3551,"^Z",3551,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","Saves an image from the display window. Images are saved in TIFF,\n TARGA, JPEG, and PNG format depending on the extension within the\n filename parameter. For example, image.tif will have a TIFF image\n and image.png will save a PNG image. If no extension is included in\n the filename, the image will save in TIFF format and .tif will be\n added to the name. All images saved from the main drawing window\n will be opaque. To save images without a background, use\n create-graphics."],"^R","1.0","^B","~$quil.core/save","^S","Image","^T","out/quil/core.cljc","^U",7,"^V","save()","^15",["^10",[["^56"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3545,"^19","^1:","^Z",3551,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","Saves an image from the display window. Images are saved in TIFF,\n TARGA, JPEG, and PNG format depending on the extension within the\n filename parameter. For example, image.tif will have a TIFF image\n and image.png will save a PNG image. If no extension is included in\n the filename, the image will save in TIFF format and .tif will be\n added to the name. All images saved from the main drawing window\n will be opaque. To save images without a background, use\n create-graphics."],"~$curve-point",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","curvePoint()","^W",3,"^X",true,"^Y",1362,"^Z",1362,"^[",["^10",["^11",["^10",[["~$a","~$b","~$c","~$d","~$t"]]]]],"^13","Evalutes the curve at point t for points a, b, c, d. The parameter\n t varies between 0 and 1, a and d are points on the curve, and b c\n and are the control points. This can be done once with the x\n coordinates and a second time with the y coordinates to get the\n location of a curve at t."],"^R","1.0","^B","~$quil.core/curve-point","^S","Curves","^T","out/quil/core.cljc","^U",14,"^V","curvePoint()","^15",["^10",[["~$a","~$b","~$c","~$d","~$t"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1356,"^19","^1:","^Z",1362,"^1;",5,"^1<",true,"^[",["^10",["^11",["^10",[["~$a","~$b","~$c","~$d","~$t"]]]]],"^13","Evalutes the curve at point t for points a, b, c, d. The parameter\n t varies between 0 and 1, a and d are points on the curve, and b c\n and are the control points. This can be done once with the x\n coordinates and a second time with the y coordinates to get the\n location of a curve at t."],"~$state",["^ ","^O","State","^P",null,"^Q",["^ ","^O","State","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["~$key"]]],"^[",["^10",[[],["^;V"]]],"^17",["^10",[null,null]]],"^W",3,"^X",true,"^Y",215,"^Z",215,"^[",["^10",["^11",["^10",[[],["^;V"]]]]],"^13","Retrieve sketch-specific state by key. Must initially call\n set-state! to store state. If no parameter passed whole\n state map is returned.\n\n (set-state! :foo 1)\n (state :foo) ;=> 1\n (state) ;=> {:foo 1}"],"^R","1.0","^B","~$quil.core/state","^S",null,"^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",1,"^15",["^10",[[],["^;V"]]],"^[",["^10",[[],["^;V"]]],"^17",["^10",[null,null]]],"^15",["^10",[[],["^;V"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",210,"^Z",215,"^1;",1,"^1<",true,"^[",["^10",[[],["^;V"]]],"^13","Retrieve sketch-specific state by key. Must initially call\n set-state! to store state. If no parameter passed whole\n state map is returned.\n\n (set-state! :foo 1)\n (state :foo) ;=> 1\n (state) ;=> {:foo 1}"],"~$load-shader",["^ ","^O","Rendering","^P",null,"^Q",["^ ","^O","Rendering","^R","2.0","^S","Shaders","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$fragment-filename"],["^;Y","~$vertex-filename"]]],"^[",["^10",[["^;Y"],["^;Y","^;Z"]]],"^17",["^10",[null,null]]],"^V","loadShader()","^W",3,"^X",true,"^Y",2404,"^Z",2404,"^[",["^10",["^11",["^10",[["^;Y"],["^;Y","^;Z"]]]]],"^13","Loads a shader into the PShader object. Shaders are compatible with the\n P2D and P3D renderers, but not with the default renderer."],"^R","2.0","^B","~$quil.core/load-shader","^S","Shaders","^T","out/quil/core.cljc","^U",14,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^;Y"],["^;Y","^;Z"]]],"^[",["^10",[["^;Y"],["^;Y","^;Z"]]],"^17",["^10",[null,null]]],"^V","loadShader()","^15",["^10",[["^;Y"],["^;Y","^;Z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2398,"^Z",2404,"^1;",2,"^1<",true,"^[",["^10",[["^;Y"],["^;Y","^;Z"]]],"^13","Loads a shader into the PShader object. Shaders are compatible with the\n P2D and P3D renderers, but not with the default renderer."],"~$resize",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","2.1.0","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","resize()","^W",3,"^4=","http://processing.org/reference/PImage_resize_.html","^X",true,"^Y",3417,"^Z",3417,"^[",["^10",["^11",["^10",[["^2=","~$w","~$h"]]]]],"^13","Resize the image to a new width and height.\n To make the image scale proportionally, use 0 as the value for the wide or\n high parameter. For instance, to make the width of an image 150 pixels,\n and change the height using the same proportion, use resize(150, 0).\n\n Even though a PGraphics is technically a PImage, it is not possible\n to rescale the image data found in a PGraphics.\n (It's simply not possible to do this consistently across renderers:\n technically infeasible with P3D, or what would it even do with PDF?)\n If you want to resize PGraphics content, first get a copy of its image data\n using the get() method, and call resize() on the PImage that is returned."],"^R","2.1.0","^B","~$quil.core/resize","^T","out/quil/core.cljc","^U",9,"^V","resize()","^15",["^10",[["^2=","~$w","~$h"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^4=","http://processing.org/reference/PImage_resize_.html","^18",false,"^X",true,"^Y",3411,"^19","^1:","^Z",3417,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["^2=","~$w","~$h"]]]]],"^13","Resize the image to a new width and height.\n To make the image scale proportionally, use 0 as the value for the wide or\n high parameter. For instance, to make the width of an image 150 pixels,\n and change the height using the same proportion, use resize(150, 0).\n\n Even though a PGraphics is technically a PImage, it is not possible\n to rescale the image data found in a PGraphics.\n (It's simply not possible to do this consistently across renderers:\n technically infeasible with P3D, or what would it even do with PDF?)\n If you want to resize PGraphics content, first get a copy of its image data\n using the get() method, and call resize() on the PImage that is returned."],"~$normal",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","normal()","^W",3,"^X",true,"^Y",2837,"^Z",2837,"^[",["^10",["^11",["^10",[["^60","^61","^62"]]]]],"^13","Sets the current normal vector. This is for drawing three\n dimensional shapes and surfaces and specifies a vector perpendicular\n to the surface of the shape which determines how lighting affects\n it. Processing attempts to automatically assign normals to shapes,\n but since that's imperfect, this is a better option when you want\n more control. This function is identical to glNormal3f() in OpenGL."],"^R","1.0","^B","~$quil.core/normal","^S","Lights","^T","out/quil/core.cljc","^U",9,"^V","normal()","^15",["^10",[["^60","^61","^62"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2831,"^19","^1:","^Z",2837,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["^60","^61","^62"]]]]],"^13","Sets the current normal vector. This is for drawing three\n dimensional shapes and surfaces and specifies a vector perpendicular\n to the surface of the shape which determines how lighting affects\n it. Processing attempts to automatically assign normals to shapes,\n but since that's imperfect, this is a better option when you want\n more control. This function is identical to glNormal3f() in OpenGL."],"~$perspective",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[[],["~$fovy","~$aspect","~$z-near","~$z-far"]]],"^[",["^10",[[],["^<5","^<6","^<7","^<8"]]],"^17",["^10",[null,null]]],"^V","perspective()","^W",3,"^X",true,"^Y",2909,"^Z",2909,"^[",["^10",["^11",["^10",[[],["^<5","^<6","^<7","^<8"]]]]],"^13","Sets a perspective projection applying foreshortening, making\n distant objects appear smaller than closer ones. The parameters\n define a viewing volume with the shape of truncated pyramid. Objects\n near to the front of the volume appear their actual size, while\n farther objects appear smaller. This projection simulates the\n perspective of the world more accurately than orthographic\n projection. The version of perspective without parameters sets the\n default perspective and the version with four parameters allows the\n programmer to set the area precisely. The default values are:\n perspective(PI/3.0, width/height, cameraZ/10.0, cameraZ*10.0) where\n cameraZ is ((height/2.0) / tan(PI*60.0/360.0));"],"^R","1.0","^B","~$quil.core/perspective","^S","Camera","^T","out/quil/core.cljc","^U",14,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[[],["^<5","^<6","^<7","^<8"]]],"^[",["^10",[[],["^<5","^<6","^<7","^<8"]]],"^17",["^10",[null,null]]],"^V","perspective()","^15",["^10",[[],["^<5","^<6","^<7","^<8"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2903,"^Z",2909,"^1;",4,"^1<",true,"^[",["^10",[[],["^<5","^<6","^<7","^<8"]]],"^13","Sets a perspective projection applying foreshortening, making\n distant objects appear smaller than closer ones. The parameters\n define a viewing volume with the shape of truncated pyramid. Objects\n near to the front of the volume appear their actual size, while\n farther objects appear smaller. This projection simulates the\n perspective of the world more accurately than orthographic\n projection. The version of perspective without parameters sets the\n default perspective and the version with four parameters allows the\n programmer to set the area precisely. The default values are:\n perspective(PI/3.0, width/height, cameraZ/10.0, cameraZ*10.0) where\n cameraZ is ((height/2.0) / tan(PI*60.0/360.0));"],"~$seconds",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Time & Date","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","second()","^W",3,"^X",false,"^Y",3684,"^Z",3684,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current second as a value from 0 - 59."],"^R","1.0","^B","~$quil.core/seconds","^S","Time & Date","^T","out/quil/core.cljc","^U",10,"^V","second()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",3678,"^19","^1:","^Z",3684,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current second as a value from 0 - 59."],"~$hint",["^ ","^O","Rendering","^P",null,"^Q",["^ ","^O","Rendering","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","hint()","^W",3,"^4=",null,"^X",true,"^Y",1983,"^Z",1983,"^[",["^10",["^11",["^10",[["~$hint-type"]]]]],"^13","Set various hints and hacks for the renderer. This is used to\n handle obscure rendering features that cannot be implemented in a\n consistent manner across renderers. Many options will often graduate\n to standard features instead of hints over time.\n\n Options:\n\n :enable-native-fonts - Use the native version fonts when they are\n installed, rather than the bitmapped version from a .vlw\n file. This is useful with the default (or JAVA2D) renderer\n setting, as it will improve font rendering speed. This is not\n enabled by default, because it can be misleading while testing\n because the type will look great on your machine (because you have\n the font installed) but lousy on others' machines if the identical\n font is unavailable. This option can only be set per-sketch, and\n must be called before any use of text-font.\n\n :disable-native-fonts - Disables native font support.\n\n :disable-depth-test - Disable the zbuffer, allowing you to draw on\n top of everything at will. When depth testing is disabled, items\n will be drawn to the screen sequentially, like a painting. This\n hint is most often used to draw in 3D, then draw in 2D on top of\n it (for instance, to draw GUI controls in 2D on top of a 3D\n interface). Starting in release 0149, this will also clear the\n depth buffer. Restore the default with :enable-depth-test\n but note that with the depth buffer cleared, any 3D drawing that\n happens later in draw will ignore existing shapes on the screen.\n\n :enable-depth-test - Enables the zbuffer.\n\n :enable-depth-sort - Enable primitive z-sorting of triangles and\n lines in :p3d and :opengl rendering modes. This can slow\n performance considerably, and the algorithm is not yet perfect.\n\n :disable-depth-sort - Disables hint :enable-depth-sort\n\n :disable-opengl-errors - Speeds up the OPENGL renderer setting\n by not checking for errors while running.\n\n :enable-opengl-errors - Turns on OpenGL error checking\n\n :enable-depth-mask\n :disable-depth-mask\n\n :enable-optimized-stroke\n :disable-optimized-stroke\n :enable-retina-pixels\n :disable-retina-pixels\n :enable-stroke-perspective\n :disable-stroke-perspective\n :enable-stroke-pure\n :disable-stroke-pure\n :enable-texture-mipmaps\n :disable-texture-mipmaps\n"],"^R","1.0","^B","~$quil.core/hint","^S",null,"^T","out/quil/core.cljc","^U",7,"^V","hint()","^15",["^10",[["^<="]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^4=",null,"^18",false,"^X",true,"^Y",1976,"^19","^1:","^Z",1983,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^<="]]]]],"^13","Set various hints and hacks for the renderer. This is used to\n handle obscure rendering features that cannot be implemented in a\n consistent manner across renderers. Many options will often graduate\n to standard features instead of hints over time.\n\n Options:\n\n :enable-native-fonts - Use the native version fonts when they are\n installed, rather than the bitmapped version from a .vlw\n file. This is useful with the default (or JAVA2D) renderer\n setting, as it will improve font rendering speed. This is not\n enabled by default, because it can be misleading while testing\n because the type will look great on your machine (because you have\n the font installed) but lousy on others' machines if the identical\n font is unavailable. This option can only be set per-sketch, and\n must be called before any use of text-font.\n\n :disable-native-fonts - Disables native font support.\n\n :disable-depth-test - Disable the zbuffer, allowing you to draw on\n top of everything at will. When depth testing is disabled, items\n will be drawn to the screen sequentially, like a painting. This\n hint is most often used to draw in 3D, then draw in 2D on top of\n it (for instance, to draw GUI controls in 2D on top of a 3D\n interface). Starting in release 0149, this will also clear the\n depth buffer. Restore the default with :enable-depth-test\n but note that with the depth buffer cleared, any 3D drawing that\n happens later in draw will ignore existing shapes on the screen.\n\n :enable-depth-test - Enables the zbuffer.\n\n :enable-depth-sort - Enable primitive z-sorting of triangles and\n lines in :p3d and :opengl rendering modes. This can slow\n performance considerably, and the algorithm is not yet perfect.\n\n :disable-depth-sort - Disables hint :enable-depth-sort\n\n :disable-opengl-errors - Speeds up the OPENGL renderer setting\n by not checking for errors while running.\n\n :enable-opengl-errors - Turns on OpenGL error checking\n\n :enable-depth-mask\n :disable-depth-mask\n\n :enable-optimized-stroke\n :disable-optimized-stroke\n :enable-retina-pixels\n :disable-retina-pixels\n :enable-stroke-perspective\n :disable-stroke-perspective\n :enable-stroke-pure\n :disable-stroke-pure\n :enable-texture-mipmaps\n :disable-texture-mipmaps\n"],"~$sphere-detail",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","3D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["~$res"],["~$ures","~$vres"]]],"^[",["^10",[["^<@"],["^>","^>?"],["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^17",["^10",[null,null,null]]],"^V","line()","^W",3,"^X",true,"^Y",2324,"^Z",2324,"^[",["^10",["^11",["^10",[["^>>","^>?"],["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]]]],"^13","Draws a line (a direct path between two points) to the screen. The\n version of line with four parameters draws the line in 2D. To color\n a line, use the stroke function. A line cannot be filled, therefore\n the fill method will not affect the color of a line. 2D lines are\n drawn with a width of one pixel by default, but this can be changed\n with the stroke-weight function. The version with six parameters\n allows the line to be placed anywhere within XYZ space. "],"^R","1.0","^B","~$quil.core/line","^S","2D Primitives","^T","out/quil/core.cljc","^U",7,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["^>>","^>?"],["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^[",["^10",[["^>>","^>?"],["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^17",["^10",[null,null,null]]],"^V","line()","^15",["^10",[["^>>","^>?"],["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",2318,"^Z",2324,"^1;",6,"^1<",true,"^[",["^10",[["^>>","^>?"],["^4D","^4E","^4F","^4G"],["^4D","^4E","^5M","^4F","^4G","^5P"]]],"^13","Draws a line (a direct path between two points) to the screen. The\n version of line with four parameters draws the line in 2D. To color\n a line, use the stroke function. A line cannot be filled, therefore\n the fill method will not affect the color of a line. 2D lines are\n drawn with a width of one pixel by default, but this can be changed\n with the stroke-weight function. The version with six parameters\n allows the line to be placed anywhere within XYZ space. "],"~$do-record",["^ ","^O","Output","^P",null,"^Q",["^ ","^O","Output","^R","2.5","^S","Files","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^21","^22"]]]],"^[",["^10",[["^21","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^W",3,"^X",true,"^Y",1510,"^23",true,"^Z",1510,"^[",["^10",["^11",["^10",[["^21","~$&","^22"]]]]],"^13","Macro for drawing on graphics which saves result in the file at the end.\n Similar to 'with-graphics' macro. do-record assumed to be used with :pdf\n graphics. Example:\n\n (q/do-record (q/create-graphics 200 200 :pdf \"output.pdf\")\n (q/fill 250 0 0)\n (q/ellipse 100 100 150 150))\n "],"^R","2.5","^B","~$quil.core/do-record","^S","Files","^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^21","^22"]]]],"^[",["^10",[["^21","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^15",["^10",[["^10",["^21","^22"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",true,"^Y",1504,"^23",true,"^19","^1:","^Z",1510,"^1;",1,"^1<",false,"^[",["^10",[["^21","~$&","^22"]]],"^13","Macro for drawing on graphics which saves result in the file at the end.\n Similar to 'with-graphics' macro. do-record assumed to be used with :pdf\n graphics. Example:\n\n (q/do-record (q/create-graphics 200 200 :pdf \"output.pdf\")\n (q/fill 250 0 0)\n (q/ellipse 100 100 150 150))\n "],"~$red",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","red()","^W",3,"^X",true,"^Y",3333,"^Z",3333,"^[",["^10",["^11",["^10",[["~$c"]]]]],"^13","Extracts the red value from a color, scaled to match current color-mode."],"^R","1.0","^B","~$quil.core/red","^S","Creating & Reading","^T","out/quil/core.cljc","^U",6,"^V","red()","^15",["^10",[["~$c"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3327,"^19","^1:","^Z",3333,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["~$c"]]]]],"^13","Extracts the red value from a color, scaled to match current color-mode."],"~$current-fill",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","PGraphics.fillColor","^W",3,"^4=","http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#fillColor","^X",true,"^Y",1264,"^Z",1264,"^[",["^10",["^11",["^10",[[]]]]],"^13","Return the current fill color."],"^B","~$quil.core/current-fill","^S","Creating & Reading","^T","out/quil/core.cljc","^U",15,"^V","PGraphics.fillColor","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^4=","http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#fillColor","^18",false,"^X",true,"^Y",1258,"^19","^1:","^Z",1264,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Return the current fill color."],"~$color-modes",["^ ","^B","~$quil.core/color-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",50,"^U",13,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",50,"^W",2,"^Z",50,"^U",13],"^1?","^1@"],"~$blue",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","blue()","^W",3,"^X",true,"^Y",905,"^Z",905,"^[",["^10",["^11",["^10",[["^87"]]]]],"^13","Extracts the blue value from a color, scaled to match current color-mode.\n Returns a float."],"^R","1.0","^B","~$quil.core/blue","^S","Creating & Reading","^T","out/quil/core.cljc","^U",7,"^V","blue()","^15",["^10",[["^87"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",899,"^19","^1:","^Z",905,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^87"]]]]],"^13","Extracts the blue value from a color, scaled to match current color-mode.\n Returns a float."],"~$frustum",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","frustum()","^W",3,"^X",true,"^Y",1897,"^Z",1897,"^[",["^10",["^11",["^10",[["^:W","^:X","^:Y","^:Z","^:[","^;0"]]]]],"^13","Sets a perspective matrix defined through the parameters. Works\n like glFrustum, except it wipes out the current perspective matrix\n rather than muliplying itself with it."],"^R","1.0","^B","~$quil.core/frustum","^S","Camera","^T","out/quil/core.cljc","^U",10,"^V","frustum()","^15",["^10",[["^:W","^:X","^:Y","^:Z","^:[","^;0"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1891,"^19","^1:","^Z",1897,"^1;",6,"^1<",true,"^[",["^10",["^11",["^10",[["^:W","^:X","^:Y","^:Z","^:[","^;0"]]]]],"^13","Sets a perspective matrix defined through the parameters. Works\n like glFrustum, except it wipes out the current perspective matrix\n rather than muliplying itself with it."],"~$with-rotation",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S","Utility Macros","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["~$rotation","^22"]]]],"^[",["^10",[["^>N","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^W",3,"^X",true,"^Y",4688,"^23",true,"^Z",4688,"^[",["^10",["^11",["^10",[["^>N","~$&","^22"]]]]],"^13","Performs body with rotation, restores current transformation on exit.\n Accepts a vector [angle] or [angle x-axis y-axis z-axis].\n\n Example:\n (with-rotation [angle]\n (vertex 1 2))"],"^R","1.0","^B","~$quil.core/with-rotation","^S","Utility Macros","^T","out/quil/core.cljc","^U",16,"^1F",["^ ","^18",true,"^1;",1,"^15",["^10",[["^10",["^>N","^22"]]]],"^[",["^10",[["^>N","~$&","^22"]]],"^17",["^10",[null]]],"^V",null,"^15",["^10",[["^10",["^>N","^22"]]]],"^16",null,"^17",["^10",[null]],"^W",1,"^18",true,"^X",true,"^Y",4682,"^23",true,"^19","^1:","^Z",4688,"^1;",1,"^1<",false,"^[",["^10",[["^>N","~$&","^22"]]],"^13","Performs body with rotation, restores current transformation on exit.\n Accepts a vector [angle] or [angle x-axis y-axis z-axis].\n\n Example:\n (with-rotation [angle]\n (vertex 1 2))"],"~$print-matrix",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","printMatrix()","^W",3,"^X",true,"^Y",3087,"^Z",3087,"^[",["^10",["^11",["^10",[[]]]]],"^13","Prints the current matrix to std out. Useful for debugging."],"^R","1.0","^B","~$quil.core/print-matrix","^S",null,"^T","out/quil/core.cljc","^U",15,"^V","printMatrix()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3081,"^19","^1:","^Z",3087,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Prints the current matrix to std out. Useful for debugging."],"~$ambient-light",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]],"^[",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","ambientLight()","^W",3,"^X",true,"^Y",375,"^Z",375,"^[",["^10",["^11",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]]]],"^13","Adds an ambient light. Ambient light doesn't come from a specific direction,\n the rays have light have bounced around so much that objects are\n evenly lit from all sides. Ambient lights are almost always used in\n combination with other types of lights. Lights need to be included\n in the draw to remain persistent in a looping program. Placing them\n in the setup of a looping program will cause them to only have an\n effect the first time through the loop. The effect of the\n parameters is determined by the current color mode."],"^R","1.0","^B","~$quil.core/ambient-light","^S","Lights","^T","out/quil/core.cljc","^U",16,"^1F",["^ ","^18",false,"^1;",6,"^15",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]],"^[",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","ambientLight()","^15",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",369,"^Z",375,"^1;",6,"^1<",true,"^[",["^10",[["^>C","^9Z","^>I"],["^>C","^9Z","^>I","~$x","~$y","~$z"]]],"^13","Adds an ambient light. Ambient light doesn't come from a specific direction,\n the rays have light have bounced around so much that objects are\n evenly lit from all sides. Ambient lights are almost always used in\n combination with other types of lights. Lights need to be included\n in the draw to remain persistent in a looping program. Placing them\n in the setup of a looping program will cause them to only have an\n effect the first time through the loop. The effect of the\n parameters is determined by the current color mode."],"~$bezier-point",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","bezierPoint()","^W",3,"^X",true,"^Y",706,"^Z",706,"^[",["^10",["^11",["^10",[["~$a","~$b","~$c","~$d","~$t"]]]]],"^13","Evaluates the Bezier at point t for points a, b, c, d. The\n parameter t varies between 0 and 1, a and d are points on the curve,\n and b and c are the control points. This can be done once with the x\n coordinates and a second time with the y coordinates to get the\n location of a bezier curve at t."],"^R","1.0","^B","~$quil.core/bezier-point","^S","Curves","^T","out/quil/core.cljc","^U",15,"^V","bezierPoint()","^15",["^10",[["~$a","~$b","~$c","~$d","~$t"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",700,"^19","^1:","^Z",706,"^1;",5,"^1<",true,"^[",["^10",["^11",["^10",[["~$a","~$b","~$c","~$d","~$t"]]]]],"^13","Evaluates the Bezier at point t for points a, b, c, d. The\n parameter t varies between 0 and 1, a and d are points on the curve,\n and b and c are the control points. This can be done once with the x\n coordinates and a second time with the y coordinates to get the\n location of a bezier curve at t."],"~$stroke-cap-modes",["^ ","^B","~$quil.core/stroke-cap-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",64,"^U",18,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",64,"^W",2,"^Z",64,"^U",18],"^1?","^1@"],"~$quad",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","2D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",7,"^V","quad()","^W",3,"^X",true,"^Y",3151,"^Z",3151,"^[",["^10",["^11",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","~$x4","~$y4"]]]]],"^13","A quad is a quadrilateral, a four sided polygon. It is similar to a\n rectangle, but the angles between its edges are not constrained to\n be ninety degrees. The first pair of parameters (x1,y1) sets the\n first vertex and the subsequent pairs should proceed clockwise or\n counter-clockwise around the defined shape."],"^R","1.0","^B","~$quil.core/quad","^S","2D Primitives","^T","out/quil/core.cljc","^U",7,"^V","quad()","^15",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3145,"^19","^1:","^Z",3151,"^1;",8,"^1<",true,"^[",["^10",["^11",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"]]]]],"^13","A quad is a quadrilateral, a four sided polygon. It is similar to a\n rectangle, but the angles between its edges are not constrained to\n be ninety degrees. The first pair of parameters (x1,y1) sets the\n first vertex and the subsequent pairs should proceed clockwise or\n counter-clockwise around the defined shape."],"~$screen-x",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Coordinates","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","screenX()","^W",3,"^X",true,"^Y",3642,"^Z",3642,"^[",["^10",["^11",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]]]],"^13","Takes a three-dimensional x, y, z position and returns the x value\n for where it will appear on a (two-dimensional) screen, once\n affected by translate, scale or any other transformations"],"^R","1.0","^B","~$quil.core/screen-x","^S","Coordinates","^T","out/quil/core.cljc","^U",11,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","screenX()","^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3636,"^Z",3642,"^1;",3,"^1<",true,"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^13","Takes a three-dimensional x, y, z position and returns the x value\n for where it will appear on a (two-dimensional) screen, once\n affected by translate, scale or any other transformations"],"~$lights",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","lights()","^W",3,"^X",true,"^Y",2285,"^Z",2285,"^[",["^10",["^11",["^10",[[]]]]],"^13","Sets the default ambient light, directional light, falloff, and\n specular values. The defaults are:\n\n (ambient-light 128 128 128)\n (directional-light 128 128 128 0 0 -1)\n (light-falloff 1 0 0)\n (light-specular 0 0 0).\n\n Lights need to be included in the draw to remain persistent in a\n looping program. Placing them in the setup of a looping program\n will cause them to only have an effect the first time through the\n loop."],"^R","1.0","^B","~$quil.core/lights","^S","Lights","^T","out/quil/core.cljc","^U",9,"^V","lights()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2279,"^19","^1:","^Z",2285,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Sets the default ambient light, directional light, falloff, and\n specular values. The defaults are:\n\n (ambient-light 128 128 128)\n (directional-light 128 128 128 0 0 -1)\n (light-falloff 1 0 0)\n (light-specular 0 0 0).\n\n Lights need to be included in the draw to remain persistent in a\n looping program. Placing them in the setup of a looping program\n will cause them to only have an effect the first time through the\n loop."],"~$*graphics*",["^ ","^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",22,"^W",3,"^Z",22,"^U",13,"~:dynamic",true,"^3[",true],"^3[",true,"^B","~$quil.core/*graphics*","^T","out/quil/core.cljc","^U",13,"^W",1,"^?5",true,"^Y",20,"^Z",22,"^1?","~$clj-nil"],"~$KEY-CODES",["^ ","^B","~$quil.core/KEY-CODES","^T","out/quil/core.cljc","^Y",122,"^W",4,"^Z",123,"^U",15,"^3[",true,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",123,"^W",6,"^Z",123,"^U",15,"^3[",true],"^1?","^1@"],"~$curve-detail",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","curveDetail()","^W",3,"^X",true,"^Y",1348,"^Z",1348,"^[",["^10",["^11",["^10",[["^3D"]]]]],"^13","Sets the resolution at which curves display. The default value is\n 20. This function is only useful when using the :p3d or :opengl\n renderer as the default (:java2d) renderer does not use this\n information."],"^R","1.0","^B","~$quil.core/curve-detail","^S","Curves","^T","out/quil/core.cljc","^U",15,"^V","curveDetail()","^15",["^10",[["^3D"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1342,"^19","^1:","^Z",1348,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^3D"]]]]],"^13","Sets the resolution at which curves display. The default value is\n 20. This function is only useful when using the :p3d or :opengl\n renderer as the default (:java2d) renderer does not use this\n information."],"~$current-frame-rate",["^ ","^O","Environment","^P",null,"^Q",["^ ","^O","Environment","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",21,"^V","frameRate","^W",3,"^X",true,"^Y",1867,"^Z",1867,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current framerate"],"^R","1.0","^B","~$quil.core/current-frame-rate","^S",null,"^T","out/quil/core.cljc","^U",21,"^V","frameRate","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1861,"^19","^1:","^Z",1867,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns the current framerate"],"~$end-contour",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","2.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","endContour()","^W",3,"^X",true,"^Y",1624,"^Z",1624,"^[",["^10",["^11",["^10",[[]]]]],"^13","Use the begin-contour and end-contour function to create negative\n shapes within shapes. These functions can only be within a\n begin-shape/end-shape pair and they only work with the :p2d and :p3d\n renderers."],"^R","2.0","^B","~$quil.core/end-contour","^S","Vertex","^T","out/quil/core.cljc","^U",14,"^V","endContour()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1618,"^19","^1:","^Z",1624,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Use the begin-contour and end-contour function to create negative\n shapes within shapes. These functions can only be within a\n begin-shape/end-shape pair and they only work with the :p2d and :p3d\n renderers."],"~$sin",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Trigonometry","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",6,"^V","sin()","^W",3,"^X",false,"^Y",3863,"^Z",3863,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Calculates the sine of an angle. This function expects the values\n of the angle parameter to be provided in radians (values from 0 to\n 6.28). A float within the range -1 to 1 is returned."],"^R","1.0","^B","~$quil.core/sin","^S","Trigonometry","^T","out/quil/core.cljc","^U",6,"^V","sin()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",false,"^Y",3857,"^19","^1:","^Z",3863,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Calculates the sine of an angle. This function expects the values\n of the angle parameter to be provided in radians (values from 0 to\n 6.28). A float within the range -1 to 1 is returned."],"~$current-stroke",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",17,"^V","PGraphics.strokeColor","^W",3,"^4=","http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#strokeColor","^X",true,"^Y",1275,"^Z",1275,"^[",["^10",["^11",["^10",[[]]]]],"^13","Return the current stroke color."],"^B","~$quil.core/current-stroke","^S","Creating & Reading","^T","out/quil/core.cljc","^U",17,"^V","PGraphics.strokeColor","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^4=","http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#strokeColor","^18",false,"^X",true,"^Y",1269,"^19","^1:","^Z",1275,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Return the current stroke color."],"~$curve",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Curves","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",12,"^15",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","~$z4"]]],"^[",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","^?E"]]],"^17",["^10",[null,null]]],"^V","curve()","^W",3,"^X",true,"^Y",1320,"^Z",1320,"^[",["^10",["^11",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","^?E"]]]]],"^13","Draws a curved line on the screen. The first and second parameters\n specify the beginning control point and the last two parameters\n specify the ending control point. The middle parameters specify the\n start and stop of the curve. Longer curves can be created by putting\n a series of curve fns together or using curve-vertex. An additional\n fn called curve-tightness provides control for the visual quality of\n the curve. The curve fn is an implementation of Catmull-Rom\n splines."],"^R","1.0","^B","~$quil.core/curve","^S","Curves","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",12,"^15",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","^?E"]]],"^[",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","^?E"]]],"^17",["^10",[null,null]]],"^V","curve()","^15",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","^?E"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1314,"^Z",1320,"^1;",12,"^1<",true,"^[",["^10",[["^4D","^4E","^4F","^4G","^6T","^6U","^>Y","^>Z"],["^4D","^4E","^5M","^4F","^4G","^5P","^6T","^6U","^6W","^>Y","^>Z","^?E"]]],"^13","Draws a curved line on the screen. The first and second parameters\n specify the beginning control point and the last two parameters\n specify the ending control point. The middle parameters specify the\n start and stop of the curve. Longer curves can be created by putting\n a series of curve fns together or using curve-vertex. An additional\n fn called curve-tightness provides control for the visual quality of\n the curve. The curve fn is an implementation of Catmull-Rom\n splines."],"~$shape",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["~$sh"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]],"^[",["^10",[["^?H"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]],"^17",["^10",[null,null,null]]],"^V","shape()","^W",3,"^X",true,"^Y",3751,"^Z",3751,"^[",["^10",["^11",["^10",[["^?H"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]]]],"^13","Displays shapes to the screen. The shapes must have been loaded\n with load-shape. Processing currently works with SVG shapes\n only. The sh parameter specifies the shape to display and the x and\n y parameters define the location of the shape from its upper-left\n corner. The shape is displayed at its original size unless the width\n and height parameters specify a different size. The shape-mode\n fn changes the way the parameters work. A call to\n (shape-mode :corners), for example, will change the width and height\n parameters to define the x and y values of the opposite corner of\n the shape.\n\n Note complex shapes may draw awkwardly with the renderers :p2d, :p3d, and\n :opengl. Those renderers do not yet support shapes that have holes\n or complicated breaks."],"^R","1.0","^B","~$quil.core/shape","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["^?H"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]],"^[",["^10",[["^?H"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]],"^17",["^10",[null,null,null]]],"^V","shape()","^15",["^10",[["^?H"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",3745,"^Z",3751,"^1;",5,"^1<",true,"^[",["^10",[["^?H"],["^?H","~$x","~$y"],["^?H","~$x","~$y","^1Q","^1R"]]],"^13","Displays shapes to the screen. The shapes must have been loaded\n with load-shape. Processing currently works with SVG shapes\n only. The sh parameter specifies the shape to display and the x and\n y parameters define the location of the shape from its upper-left\n corner. The shape is displayed at its original size unless the width\n and height parameters specify a different size. The shape-mode\n fn changes the way the parameters work. A call to\n (shape-mode :corners), for example, will change the width and height\n parameters to define the x and y values of the opposite corner of\n the shape.\n\n Note complex shapes may draw awkwardly with the renderers :p2d, :p3d, and\n :opengl. Those renderers do not yet support shapes that have holes\n or complicated breaks."],"~$image-formats",["^ ","^B","~$quil.core/image-formats","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",51,"^U",15,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",51,"^W",2,"^Z",51,"^U",15],"^1?","^1@"],"~$text-descent",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Metrics","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","textDescent()","^W",3,"^X",true,"^Y",4255,"^Z",4255,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns descent of the current font at its current size. This\n information is useful for determining the height of the font below\n the baseline. For example, adding the text-ascent and text-descent\n values will give you the total height of the line."],"^R","1.0","^B","~$quil.core/text-descent","^S","Metrics","^T","out/quil/core.cljc","^U",15,"^V","textDescent()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4249,"^19","^1:","^Z",4255,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Returns descent of the current font at its current size. This\n information is useful for determining the height of the font below\n the baseline. For example, adding the text-ascent and text-descent\n values will give you the total height of the line."],"~$screen-z",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Coordinates","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","screenZ()","^W",3,"^X",true,"^Y",3668,"^Z",3668,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Given an x, y, z coordinate, returns its z value.\n This value can be used to determine if an x, y, z coordinate is in\n front or in back of another (x, y, z) coordinate. The units are\n based on how the zbuffer is set up, and don't relate to anything\n 'real'. They're only useful for in comparison to another value\n obtained from screen-z, or directly out of the zbuffer"],"^R","1.0","^B","~$quil.core/screen-z","^S","Coordinates","^T","out/quil/core.cljc","^U",11,"^V","screenZ()","^15",["^10",[["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3662,"^19","^1:","^Z",3668,"^1;",3,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","~$z"]]]]],"^13","Given an x, y, z coordinate, returns its z value.\n This value can be used to determine if an x, y, z coordinate is in\n front or in back of another (x, y, z) coordinate. The units are\n based on how the zbuffer is set up, and don't relate to anything\n 'real'. They're only useful for in comparison to another value\n obtained from screen-z, or directly out of the zbuffer"],"~$ambient-int",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","ambient()","^W",3,"^X",true,"^Y",341,"^Z",341,"^[",["^10",["^11",["^10",[["^3I"]]]]],"^13","Sets the ambient reflectance for shapes drawn to the screen. This\n is combined with the ambient light component of environment. The rgb\n color components set define the reflectance. Used in combination\n with emissive, specular, and shininess in setting the material\n properties of shapes."],"^R","1.0","^B","~$quil.core/ambient-int","^S","Material Properties","^T","out/quil/core.cljc","^U",14,"^V","ambient()","^15",["^10",[["^3I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",335,"^19","^1:","^Z",341,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^3I"]]]]],"^13","Sets the ambient reflectance for shapes drawn to the screen. This\n is combined with the ambient light component of environment. The rgb\n color components set define the reflectance. Used in combination\n with emissive, specular, and shininess in setting the material\n properties of shapes."],"~$ellipse",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","2D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","ellipse()","^W",3,"^X",true,"^Y",1531,"^Z",1531,"^[",["^10",["^11",["^10",[["~$x","~$y","^1Q","^1R"]]]]],"^13","Draws an ellipse (oval) in the display window. An ellipse with an\n equal width and height is a circle. The origin may be changed with\n the ellipse-mode function"],"^R","1.0","^B","~$quil.core/ellipse","^S","2D Primitives","^T","out/quil/core.cljc","^U",10,"^V","ellipse()","^15",["^10",[["~$x","~$y","^1Q","^1R"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1525,"^19","^1:","^Z",1531,"^1;",4,"^1<",true,"^[",["^10",["^11",["^10",[["~$x","~$y","^1Q","^1R"]]]]],"^13","Draws an ellipse (oval) in the display window. An ellipse with an\n equal width and height is a circle. The origin may be changed with\n the ellipse-mode function"],"~$text-leading",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","textLeading()","^W",3,"^X",true,"^Y",4295,"^Z",4295,"^[",["^10",["^11",["^10",[["~$leading"]]]]],"^13","Sets the spacing between lines of text in units of pixels. This\n setting will be used in all subsequent calls to the text function."],"^R","1.0","^B","~$quil.core/text-leading","^S","Attributes","^T","out/quil/core.cljc","^U",15,"^V","textLeading()","^15",["^10",[["^?U"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4289,"^19","^1:","^Z",4295,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^?U"]]]]],"^13","Sets the spacing between lines of text in units of pixels. This\n setting will be used in all subsequent calls to the text function."],"~$image-filter",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","2.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]],"^[",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]],"^17",["^10",[null,null]]],"^V","PImage.filter()","^W",3,"^X",true,"^Y",2105,"^Z",2105,"^[",["^10",["^11",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]]]],"^13","Originally named filter in Processing Language.\n Filters given image with the specified mode and level.\n Level defines the quality of the filter and mode may be one of\n the following keywords:\n\n :threshold - converts the image to black and white pixels depending\n if they are above or below the threshold defined by\n the level parameter. The level must be between\n 0.0 (black) and 1.0 (white). If no level is specified,\n 0.5 is used.\n :gray - converts any colors in the image to grayscale\n equivalents. Doesn't work with level.\n :invert - sets each pixel to its inverse value. Doesn't work with\n level.\n :posterize - limits each channel of the image to the number of\n colors specified as the level parameter. The parameter can\n be set to values between 2 and 255, but results are most\n noticeable in the lower ranges.\n :blur - executes a Guassian blur with the level parameter\n specifying the extent of the blurring. If no level\n parameter is used, the blur is equivalent to Guassian\n blur of radius 1.\n :opaque - sets the alpha channel to entirely opaque. Doesn't work\n with level.\n :erode - reduces the light areas. Doesn't work with level.\n :dilate - increases the light areas. Doesn't work with level."],"^R","2.0","^B","~$quil.core/image-filter","^S","Pixels","^T","out/quil/core.cljc","^U",15,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]],"^[",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]],"^17",["^10",[null,null]]],"^V","PImage.filter()","^15",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2099,"^Z",2105,"^1;",3,"^1<",true,"^[",["^10",[["^2=","^1I"],["^2=","^1I","^1J"]]],"^13","Originally named filter in Processing Language.\n Filters given image with the specified mode and level.\n Level defines the quality of the filter and mode may be one of\n the following keywords:\n\n :threshold - converts the image to black and white pixels depending\n if they are above or below the threshold defined by\n the level parameter. The level must be between\n 0.0 (black) and 1.0 (white). If no level is specified,\n 0.5 is used.\n :gray - converts any colors in the image to grayscale\n equivalents. Doesn't work with level.\n :invert - sets each pixel to its inverse value. Doesn't work with\n level.\n :posterize - limits each channel of the image to the number of\n colors specified as the level parameter. The parameter can\n be set to values between 2 and 255, but results are most\n noticeable in the lower ranges.\n :blur - executes a Guassian blur with the level parameter\n specifying the extent of the blurring. If no level\n parameter is used, the blur is equivalent to Guassian\n blur of radius 1.\n :opaque - sets the alpha channel to entirely opaque. Doesn't work\n with level.\n :erode - reduces the light areas. Doesn't work with level.\n :dilate - increases the light areas. Doesn't work with level."],"~$random",["^ ","^O","Math","^P",null,"^Q",["^ ","^O","Math","^R","1.0","^S","Random","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^42"],["~$min","^42"]]],"^[",["^10",[["^42"],["^?Z","^42"]]],"^17",["^10",[null,null]]],"^V","random()","^W",3,"^X",true,"^Y",3207,"^Z",3207,"^[",["^10",["^11",["^10",[["^42"],["^?Z","^42"]]]]],"^13","Generates random numbers. Each time the random function is called,\n it returns an unexpected value within the specified range. If one\n parameter is passed to the function it will return a float between\n zero and the value of the high parameter. The function call (random\n 5) returns values between 0 and 5 (starting at zero, up to but not\n including 5). If two parameters are passed, it will return a float\n with a value between the parameters. The function call\n (random -5 10.2) returns values starting at -5 up to (but not\n including) 10.2."],"^R","1.0","^B","~$quil.core/random","^S","Random","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",2,"^15",["^10",[["^42"],["^?Z","^42"]]],"^[",["^10",[["^42"],["^?Z","^42"]]],"^17",["^10",[null,null]]],"^V","random()","^15",["^10",[["^42"],["^?Z","^42"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3201,"^Z",3207,"^1;",2,"^1<",true,"^[",["^10",[["^42"],["^?Z","^42"]]],"^13","Generates random numbers. Each time the random function is called,\n it returns an unexpected value within the specified range. If one\n parameter is passed to the function it will return a float between\n zero and the value of the high parameter. The function call (random\n 5) returns values between 0 and 5 (starting at zero, up to but not\n including 5). If two parameters are passed, it will return a float\n with a value between the parameters. The function call\n (random -5 10.2) returns values starting at -5 up to (but not\n including) 10.2."],"~$texture-mode",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Vertex","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","textureMode()","^W",3,"^X",true,"^Y",4367,"^Z",4367,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Sets the coordinate space for texture mapping. There are two\n options, :image and :normal.\n\n :image refers to the actual coordinates of the image and :normal\n refers to a normalized space of values ranging from 0 to 1. The\n default mode is :image. In :image, if an image is 100 x 200 pixels,\n mapping the image onto the entire size of a quad would require the\n points (0,0) (0,100) (100,200) (0,200). The same mapping in\n NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1)."],"^R","1.0","^B","~$quil.core/texture-mode","^S","Vertex","^T","out/quil/core.cljc","^U",15,"^V","textureMode()","^15",["^10",[["^1I"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",4361,"^19","^1:","^Z",4367,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^1I"]]]]],"^13","Sets the coordinate space for texture mapping. There are two\n options, :image and :normal.\n\n :image refers to the actual coordinates of the image and :normal\n refers to a normalized space of values ranging from 0 to 1. The\n default mode is :image. In :image, if an image is 100 x 200 pixels,\n mapping the image onto the entire size of a quad would require the\n points (0,0) (0,100) (100,200) (0,200). The same mapping in\n NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1)."],"~$redraw",["^ ","^O","Structure","^P",null,"^Q",["^ ","^O","Structure","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^V","redraw()","^W",3,"^X",true,"^Y",3344,"^Z",3344,"^[",["^10",["^11",["^10",[[]]]]],"^13","Executes the code within the draw fn one time. This functions\n allows the program to update the display window only when necessary,\n for example when an event registered by mouse-pressed or\n key-pressed occurs.\n\n In structuring a program, it only makes sense to call redraw\n within events such as mouse-pressed. This is because redraw does\n not run draw immediately (it only sets a flag that indicates an\n update is needed).\n\n Calling redraw within draw has no effect because draw is\n continuously called anyway."],"^R","1.0","^B","~$quil.core/redraw","^S",null,"^T","out/quil/core.cljc","^U",9,"^V","redraw()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3338,"^19","^1:","^Z",3344,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Executes the code within the draw fn one time. This functions\n allows the program to update the display window only when necessary,\n for example when an event registered by mouse-pressed or\n key-pressed occurs.\n\n In structuring a program, it only makes sense to call redraw\n within events such as mouse-pressed. This is because redraw does\n not run draw immediately (it only sets a flag that indicates an\n update is needed).\n\n Calling redraw within draw has no effect because draw is\n continuously called anyway."],"~$RAD-TO-DEG",["^ ","^B","~$quil.core/RAD-TO-DEG","^T","out/quil/core.cljc","^Y",83,"^W",1,"^Z",83,"^U",16,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",83,"^W",6,"^Z",83,"^U",16],"^1?","^4P"],"~$get-pixel",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]],"^[",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]],"^17",["^10",[null,null,null,null,null,null]]],"^V","get()","^W",3,"^X",true,"^Y",1911,"^Z",1911,"^[",["^10",["^11",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]]]],"^13","Reads the color of any pixel or grabs a section of an image. If no\n parameters are specified, a copy of entire image is returned. Get the\n value of one pixel by specifying an x,y coordinate. Get a section of\n the image by specifying an additional width and height parameter.\n If the pixel requested is outside of the image window, black is returned.\n The numbers returned are scaled according to the current color ranges,\n but only RGB values are returned by this function. For example, even though\n you may have drawn a shape with (color-mode :hsb), the numbers returned\n will be in RGB.\n\n Getting the color of a single pixel with (get x y) is easy, but not\n as fast as grabbing the data directly using the pixels fn.\n\n If no img specified - current-graphics is used."],"^R","1.0","^B","~$quil.core/get-pixel","^S","Pixels","^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]],"^[",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]],"^17",["^10",[null,null,null,null,null,null]]],"^V","get()","^15",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]],"^16",null,"^17",["^10",[null,null,null,null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",1905,"^Z",1911,"^1;",5,"^1<",true,"^[",["^10",[[],["^2="],["~$x","~$y"],["^2=","~$x","~$y"],["~$x","~$y","~$w","~$h"],["^2=","~$x","~$y","~$w","~$h"]]],"^13","Reads the color of any pixel or grabs a section of an image. If no\n parameters are specified, a copy of entire image is returned. Get the\n value of one pixel by specifying an x,y coordinate. Get a section of\n the image by specifying an additional width and height parameter.\n If the pixel requested is outside of the image window, black is returned.\n The numbers returned are scaled according to the current color ranges,\n but only RGB values are returned by this function. For example, even though\n you may have drawn a shape with (color-mode :hsb), the numbers returned\n will be in RGB.\n\n Getting the color of a single pixel with (get x y) is easy, but not\n as fast as grabbing the data directly using the pixels fn.\n\n If no img specified - current-graphics is used."],"~$rotate",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^12"],["^12","~$vx","~$vy","~$vz"]]],"^[",["^10",[["^12"],["^12","^@9","^@:","^@;"]]],"^17",["^10",[null,null]]],"^V","rotate()","^W",3,"^X",true,"^Y",3438,"^Z",3438,"^[",["^10",["^11",["^10",[["^12"],["^12","^@9","^@:","^@;"]]]]],"^13","Rotates a shape the amount specified by the angle parameter. Angles\n should be specified in radians (values from 0 to TWO-PI) or\n converted to radians with the radians function.\n\n Objects are always rotated around their relative position to the\n origin and positive numbers rotate objects in a clockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate HALF-PI) and then (rotate HALF-PI) is the\n same as (rotate PI). All tranformations are reset when draw begins\n again.\n\n Technically, rotate multiplies the current transformation matrix by\n a rotation matrix. This function can be further controlled by the\n push-matrix and pop-matrix."],"^R","1.0","^B","~$quil.core/rotate","^S",null,"^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["^12"],["^12","^@9","^@:","^@;"]]],"^[",["^10",[["^12"],["^12","^@9","^@:","^@;"]]],"^17",["^10",[null,null]]],"^V","rotate()","^15",["^10",[["^12"],["^12","^@9","^@:","^@;"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3432,"^Z",3438,"^1;",4,"^1<",true,"^[",["^10",[["^12"],["^12","^@9","^@:","^@;"]]],"^13","Rotates a shape the amount specified by the angle parameter. Angles\n should be specified in radians (values from 0 to TWO-PI) or\n converted to radians with the radians function.\n\n Objects are always rotated around their relative position to the\n origin and positive numbers rotate objects in a clockwise\n direction. Transformations apply to everything that happens after\n and subsequent calls to the function accumulates the effect. For\n example, calling (rotate HALF-PI) and then (rotate HALF-PI) is the\n same as (rotate PI). All tranformations are reset when draw begins\n again.\n\n Technically, rotate multiplies the current transformation matrix by\n a rotation matrix. This function can be further controlled by the\n push-matrix and pop-matrix."],"~$set-pixel",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Pixels","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]],"^[",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]],"^17",["^10",[null,null]]],"^V","set()","^W",3,"^X",true,"^Y",3696,"^Z",3696,"^[",["^10",["^11",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]]]],"^13","Changes the color of any pixel in the display window. The x and y\n parameters specify the pixel to change and the color parameter\n specifies the color value. The color parameter is affected by the\n current color mode (the default is RGB values from 0 to 255).\n\n Setting the color of a single pixel with (set x, y) is easy, but not\n as fast as putting the data directly into pixels[].\n\n This function ignores imageMode().\n\n Due to what appears to be a bug in Apple's Java implementation, the\n point() and set() methods are extremely slow in some circumstances\n when used with the default renderer. Using :p2d or :p3d will fix the\n problem. Grouping many calls to point or set-pixel together can also\n help. (Bug 1094)"],"^R","1.0","^B","~$quil.core/set-pixel","^S","Pixels","^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",4,"^15",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]],"^[",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]],"^17",["^10",[null,null]]],"^V","set()","^15",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3690,"^Z",3696,"^1;",4,"^1<",true,"^[",["^10",[["~$x","~$y","~$c"],["^2=","~$x","~$y","~$c"]]],"^13","Changes the color of any pixel in the display window. The x and y\n parameters specify the pixel to change and the color parameter\n specifies the color value. The color parameter is affected by the\n current color mode (the default is RGB values from 0 to 255).\n\n Setting the color of a single pixel with (set x, y) is easy, but not\n as fast as putting the data directly into pixels[].\n\n This function ignores imageMode().\n\n Due to what appears to be a bug in Apple's Java implementation, the\n point() and set() methods are extremely slow in some circumstances\n when used with the default renderer. Using :p2d or :p3d will fix the\n problem. Grouping many calls to point or set-pixel together can also\n help. (Bug 1094)"],"~$push-matrix",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",14,"^V","pushMatrix()","^W",3,"^X",true,"^Y",3110,"^Z",3110,"^[",["^10",["^11",["^10",[[]]]]],"^13","Pushes the current transformation matrix onto the matrix\n stack. Understanding push-matrix and pop-matrix requires\n understanding the concept of a matrix stack. The push-matrix\n function saves the current coordinate system to the stack and\n pop-matrix restores the prior coordinate system. push-matrix and\n pop-matrix are used in conjuction with the other transformation\n methods and may be embedded to control the scope of the\n transformations."],"^R","1.0","^B","~$quil.core/push-matrix","^S",null,"^T","out/quil/core.cljc","^U",14,"^V","pushMatrix()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3104,"^19","^1:","^Z",3110,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Pushes the current transformation matrix onto the matrix\n stack. Understanding push-matrix and pop-matrix requires\n understanding the concept of a matrix stack. The push-matrix\n function saves the current coordinate system to the stack and\n pop-matrix restores the prior coordinate system. push-matrix and\n pop-matrix are used in conjuction with the other transformation\n methods and may be embedded to control the scope of the\n transformations."],"~$no-smooth",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","Attributes","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","noSmooth()","^W",3,"^X",true,"^Y",2853,"^Z",2853,"^[",["^10",["^11",["^10",[[]]]]],"^13","Draws all geometry with jagged (aliased) edges. Must be called inside\n :settings handler."],"^R","1.0","^B","~$quil.core/no-smooth","^S","Attributes","^T","out/quil/core.cljc","^U",12,"^V","noSmooth()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2847,"^19","^1:","^Z",2853,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Draws all geometry with jagged (aliased) edges. Must be called inside\n :settings handler."],"^2N",["^ ","^O","Color","^P",null,"^Q",["^ ","^O","Color","^R","1.0","^S","Creating & Reading","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^V","alpha()","^W",3,"^X",true,"^Y",313,"^Z",313,"^[",["^10",["^11",["^10",[["^87"]]]]],"^13","Extracts the alpha value from a color."],"^R","1.0","^B","~$quil.core/alpha","^S","Creating & Reading","^T","out/quil/core.cljc","^U",8,"^V","alpha()","^15",["^10",[["^87"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",307,"^19","^1:","^Z",313,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^87"]]]]],"^13","Extracts the alpha value from a color."],"~$camera",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Camera","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",9,"^15",["^10",[[],["~$eyeX","~$eyeY","~$eyeZ","~$centerX","~$centerY","~$centerZ","~$upX","~$upY","~$upZ"]]],"^[",["^10",[[],["^@E","^@F","^@G","^@H","^@I","^@J","^@K","^@L","^@M"]]],"^17",["^10",[null,null]]],"^V","camera()","^W",3,"^X",true,"^Y",939,"^Z",939,"^[",["^10",["^11",["^10",[[],["^@E","^@F","^@G","^@H","^@I","^@J","^@K","^@L","^@M"]]]]],"^13","Sets the position of the camera through setting the eye position,\n the center of the scene, and which axis is facing upward. Moving the\n eye position and the direction it is pointing (the center of the\n scene) allows the images to be seen from different angles. The\n version without any parameters sets the camera to the default\n position, pointing to the center of the display window with the Y\n axis as up. The default values are:\n\n eyeX: (/ (width) 2.0)\n eyeY: (/ (height) 2.0)\n eyeZ: (/ (/ (height) 2.0) (tan (/ (* Math/PI 60.0) 360.0)))\n centerX: (/ (width) 2.0)\n centerY: (/ (height) 2.0)\n centerZ: 0\n upX: 0\n upY: 1\n upZ: 0\n\n Similar imilar to gluLookAt() in OpenGL, but it first clears the\n current camera settings."],"^R","1.0","^B","~$quil.core/camera","^S","Camera","^T","out/quil/core.cljc","^U",9,"^1F",["^ ","^18",false,"^1;",9,"^15",["^10",[[],["^@E","^@F","^@G","^@H","^@I","^@J","^@K","^@L","^@M"]]],"^[",["^10",[[],["^@E","^@F","^@G","^@H","^@I","^@J","^@K","^@L","^@M"]]],"^17",["^10",[null,null]]],"^V","camera()","^15",["^10",[[],["^@E","^@F","^@G","^@H","^@I","^@J","^@K","^@L","^@M"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",933,"^Z",939,"^1;",9,"^1<",true,"^[",["^10",[[],["^@E","^@F","^@G","^@H","^@I","^@J","^@K","^@L","^@M"]]],"^13","Sets the position of the camera through setting the eye position,\n the center of the scene, and which axis is facing upward. Moving the\n eye position and the direction it is pointing (the center of the\n scene) allows the images to be seen from different angles. The\n version without any parameters sets the camera to the default\n position, pointing to the center of the display window with the Y\n axis as up. The default values are:\n\n eyeX: (/ (width) 2.0)\n eyeY: (/ (height) 2.0)\n eyeZ: (/ (/ (height) 2.0) (tan (/ (* Math/PI 60.0) 360.0)))\n centerX: (/ (width) 2.0)\n centerY: (/ (height) 2.0)\n centerZ: 0\n upX: 0\n upY: 1\n upZ: 0\n\n Similar imilar to gluLookAt() in OpenGL, but it first clears the\n current camera settings."],"~$translate",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$v"],["~$tx","~$ty"],["^@P","^@Q","~$tz"]]],"^[",["^10",[["~$v"],["^@P","^@Q"],["^@P","^@Q","^@R"]]],"^17",["^10",[null,null,null]]],"^V","translate()","^W",3,"^X",true,"^Y",4488,"^Z",4488,"^[",["^10",["^11",["^10",[["~$v"],["^@P","^@Q"],["^@P","^@Q","^@R"]]]]],"^13","Specifies an amount to displace objects within the display\n window. The x parameter specifies left/right translation, the y\n parameter specifies up/down translation, and the z parameter\n specifies translations toward/away from the screen. Transformations\n apply to everything that happens after and subsequent calls to the\n function accumulates the effect. For example, calling (translate 50\n 0) and then (translate 20, 0) is the same as (translate 70, 0). If\n translate is called within draw, the transformation is reset when\n the loop begins again. This function can be further controlled by\n the push-matrix and pop-matrix."],"^R","1.0","^B","~$quil.core/translate","^S",null,"^T","out/quil/core.cljc","^U",12,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$v"],["^@P","^@Q"],["^@P","^@Q","^@R"]]],"^[",["^10",[["~$v"],["^@P","^@Q"],["^@P","^@Q","^@R"]]],"^17",["^10",[null,null,null]]],"^V","translate()","^15",["^10",[["~$v"],["^@P","^@Q"],["^@P","^@Q","^@R"]]],"^16",null,"^17",["^10",[null,null,null]],"^W",1,"^18",false,"^X",true,"^Y",4482,"^Z",4488,"^1;",3,"^1<",true,"^[",["^10",[["~$v"],["^@P","^@Q"],["^@P","^@Q","^@R"]]],"^13","Specifies an amount to displace objects within the display\n window. The x parameter specifies left/right translation, the y\n parameter specifies up/down translation, and the z parameter\n specifies translations toward/away from the screen. Transformations\n apply to everything that happens after and subsequent calls to the\n function accumulates the effect. For example, calling (translate 50\n 0) and then (translate 20, 0) is the same as (translate 70, 0). If\n translate is called within draw, the transformation is reset when\n the loop begins again. This function can be further controlled by\n the push-matrix and pop-matrix."],"~$load-font",["^ ","^O","Typography","^P",null,"^Q",["^ ","^O","Typography","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","loadFont()","^W",3,"^X",true,"^Y",2344,"^Z",2344,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","Loads a font into a variable of type PFont. To load correctly,\n fonts must be located in the data directory of the current sketch.\n To create a font to use with Processing use the create-font fn.\n\n Like load-image and other methods that load data, the load-font fn\n should not be used inside draw, because it will slow down the sketch\n considerably, as the font will be re-loaded from the disk (or\n network) on each frame.\n\n For most renderers, Processing displays fonts using the .vlw font\n format, which uses images for each letter, rather than defining them\n through vector data. When hint :enable-native-fonts is used with the\n JAVA2D renderer, the native version of a font will be used if it is\n installed on the user's machine.\n\n Using create-font (instead of load-font) enables vector data to be\n used with the JAVA2D (default) renderer setting. This can be helpful\n when many font sizes are needed, or when using any renderer based on\n JAVA2D, such as the PDF library."],"^R","1.0","^B","~$quil.core/load-font","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",12,"^V","loadFont()","^15",["^10",[["^56"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2338,"^19","^1:","^Z",2344,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^56"]]]]],"^13","Loads a font into a variable of type PFont. To load correctly,\n fonts must be located in the data directory of the current sketch.\n To create a font to use with Processing use the create-font fn.\n\n Like load-image and other methods that load data, the load-font fn\n should not be used inside draw, because it will slow down the sketch\n considerably, as the font will be re-loaded from the disk (or\n network) on each frame.\n\n For most renderers, Processing displays fonts using the .vlw font\n format, which uses images for each letter, rather than defining them\n through vector data. When hint :enable-native-fonts is used with the\n JAVA2D renderer, the native version of a font will be used if it is\n installed on the user's machine.\n\n Using create-font (instead of load-font) enables vector data to be\n used with the JAVA2D (default) renderer setting. This can be helpful\n when many font sizes are needed, or when using any renderer based on\n JAVA2D, such as the PDF library."],"~$ambient",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^3I"],["~$x","~$y","~$z"]]],"^[",["^10",[["^3I"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","ambient()","^W",3,"^X",true,"^Y",356,"^Z",356,"^[",["^10",["^11",["^10",[["^3I"],["~$x","~$y","~$z"]]]]],"^13","Sets the ambient reflectance for shapes drawn to the screen. This\n is combined with the ambient light component of environment. The\n color components set through the parameters define the\n reflectance. For example in the default color mode, setting x=255,\n y=126, z=0, would cause all the red light to reflect and half of the\n green light to reflect. Used in combination with emissive, specular,\n and shininess in setting the material properties of shapes."],"^R","1.0","^B","~$quil.core/ambient","^S","Material Properties","^T","out/quil/core.cljc","^U",10,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["^3I"],["~$x","~$y","~$z"]]],"^[",["^10",[["^3I"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","ambient()","^15",["^10",[["^3I"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",350,"^Z",356,"^1;",3,"^1<",true,"^[",["^10",[["^3I"],["~$x","~$y","~$z"]]],"^13","Sets the ambient reflectance for shapes drawn to the screen. This\n is combined with the ambient light component of environment. The\n color components set through the parameters define the\n reflectance. For example in the default color mode, setting x=255,\n y=126, z=0, would cause all the red light to reflect and half of the\n green light to reflect. Used in combination with emissive, specular,\n and shininess in setting the material properties of shapes."],"~$shear-y",["^ ","^O","Transform","^P",null,"^Q",["^ ","^O","Transform","^R","1.0","^S",null,"^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","shearY()","^W",3,"^X",true,"^Y",3801,"^Z",3801,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Shears a shape around the y-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0 to\n PI*2) or converted to radians with the radians() function. Objects\n are always sheared around their relative position to the origin and\n positive numbers shear objects in a clockwise direction.\n Transformations apply to everything that happens after and\n subsequent calls to the function accumulates the effect. For\n example, calling (shear-y (/ PI 2)) and then (shear-y (/ PI 2)) is\n the same as (shear-y PI). If shear-y is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function works in P2D or JAVA2D mode.\n\n Technically, shear-y multiplies the current transformation matrix\n by a rotation matrix. This function can be further controlled by the\n push-matrix and pop-matrix fns."],"^R","1.0","^B","~$quil.core/shear-y","^S",null,"^T","out/quil/core.cljc","^U",10,"^V","shearY()","^15",["^10",[["^12"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",3795,"^19","^1:","^Z",3801,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^12"]]]]],"^13","Shears a shape around the y-axis the amount specified by the angle\n parameter. Angles should be specified in radians (values from 0 to\n PI*2) or converted to radians with the radians() function. Objects\n are always sheared around their relative position to the origin and\n positive numbers shear objects in a clockwise direction.\n Transformations apply to everything that happens after and\n subsequent calls to the function accumulates the effect. For\n example, calling (shear-y (/ PI 2)) and then (shear-y (/ PI 2)) is\n the same as (shear-y PI). If shear-y is called within the draw fn,\n the transformation is reset when the loop begins again. This\n function works in P2D or JAVA2D mode.\n\n Technically, shear-y multiplies the current transformation matrix\n by a rotation matrix. This function can be further controlled by the\n push-matrix and pop-matrix fns."],"~$cursor-modes",["^ ","^B","~$quil.core/cursor-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",72,"^U",14,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",72,"^W",2,"^Z",72,"^U",14],"^1?","^1@"],"~$mouse-y",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Mouse","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","mouseY","^W",3,"^X",true,"^Y",2631,"^Z",2631,"^[",["^10",["^11",["^10",[[]]]]],"^13","Current vertical coordinate of the mouse."],"^R","1.0","^B","~$quil.core/mouse-y","^S","Mouse","^T","out/quil/core.cljc","^U",10,"^V","mouseY","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2625,"^19","^1:","^Z",2631,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Current vertical coordinate of the mouse."],"~$mouse-button",["^ ","^O","Input","^P",null,"^Q",["^ ","^O","Input","^R","1.0","^S","Mouse","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","mouseButton","^W",3,"^X",true,"^Y",2581,"^Z",2581,"^[",["^10",["^11",["^10",[[]]]]],"^13","The value of the system variable mouseButton is either :left, :right,\n or :center depending on which button is pressed. nil if no button pressed"],"^R","1.0","^B","~$quil.core/mouse-button","^S","Mouse","^T","out/quil/core.cljc","^U",15,"^V","mouseButton","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2575,"^19",["^A",["~$cljs.core/Keyword","^?7"]],"^Z",2581,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","The value of the system variable mouseButton is either :left, :right,\n or :center depending on which button is pressed. nil if no button pressed"],"~$p-shape-modes",["^ ","^B","~$quil.core/p-shape-modes","^T","out/quil/core.cljc","^Y",45,"^W",1,"^Z",63,"^U",15,"^Q",["^ ","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^Y",63,"^W",2,"^Z",63,"^U",15],"^1?","^1@"],"~$image",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]],"^[",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]],"^17",["^10",[null,null]]],"^V","image()","^W",3,"^X",true,"^Y",2076,"^Z",2076,"^[",["^10",["^11",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]]]],"^13","Displays images to the screen. Processing currently works with GIF,\n JPEG, and Targa images. The color of an image may be modified with\n the tint function and if a GIF has transparency, it will maintain\n its transparency. The img parameter specifies the image to display\n and the x and y parameters define the location of the image from its\n upper-left corner. The image is displayed at its original size\n unless the width and height parameters specify a different size. The\n image-mode fn changes the way the parameters work. A call to\n (image-mode :corners) will change the width and height parameters to\n define the x and y values of the opposite corner of the image.\n\n Starting with release 0124, when using the default (JAVA2D)\n renderer, smooth will also improve image quality of resized\n images."],"^R","1.0","^B","~$quil.core/image","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",5,"^15",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]],"^[",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]],"^17",["^10",[null,null]]],"^V","image()","^15",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2070,"^Z",2076,"^1;",5,"^1<",true,"^[",["^10",[["^2=","~$x","~$y"],["^2=","~$x","~$y","~$c","~$d"]]],"^13","Displays images to the screen. Processing currently works with GIF,\n JPEG, and Targa images. The color of an image may be modified with\n the tint function and if a GIF has transparency, it will maintain\n its transparency. The img parameter specifies the image to display\n and the x and y parameters define the location of the image from its\n upper-left corner. The image is displayed at its original size\n unless the width and height parameters specify a different size. The\n image-mode fn changes the way the parameters work. A call to\n (image-mode :corners) will change the width and height parameters to\n define the x and y values of the opposite corner of the image.\n\n Starting with release 0124, when using the default (JAVA2D)\n renderer, smooth will also improve image quality of resized\n images."],"~$unbinary",["^ ","^O","Data","^P",null,"^Q",["^ ","^O","Data","^4R",false,"^R","1.0","^S","Conversion","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",11,"^V","unbinary()","^W",3,"^Y",4526,"^Z",4526,"^[",["^10",["^11",["^10",[["~$str-val"]]]]],"^13","Unpack a binary string to an integer. See binary for converting\n integers to strings."],"^4R",false,"^R","1.0","^B","~$quil.core/unbinary","^S","Conversion","^T","out/quil/core.cljc","^U",11,"^V","unbinary()","^15",["^10",[["^A:"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^Y",4520,"^19","^1:","^Z",4526,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^A:"]]]]],"^13","Unpack a binary string to an integer. See binary for converting\n integers to strings."],"~$no-tint",["^ ","^O","Image","^P",null,"^Q",["^ ","^O","Image","^R","1.0","^S","Loading & Displaying","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",10,"^V","noTint()","^W",3,"^X",true,"^Y",2876,"^Z",2876,"^[",["^10",["^11",["^10",[[]]]]],"^13","Removes the current fill value for displaying images and reverts to\n displaying images with their original hues."],"^R","1.0","^B","~$quil.core/no-tint","^S","Loading & Displaying","^T","out/quil/core.cljc","^U",10,"^V","noTint()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2870,"^19","^1:","^Z",2876,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Removes the current fill value for displaying images and reverts to\n displaying images with their original hues."],"~$no-lights",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Lights","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",12,"^V","noLights()","^W",3,"^X",true,"^Y",2785,"^Z",2785,"^[",["^10",["^11",["^10",[[]]]]],"^13","Disable all lighting. Lighting is turned off by default and enabled\n with the lights fn. This function can be used to disable lighting so\n that 2D geometry (which does not require lighting) can be drawn\n after a set of lighted 3D geometry."],"^R","1.0","^B","~$quil.core/no-lights","^S","Lights","^T","out/quil/core.cljc","^U",12,"^V","noLights()","^15",["^10",[[]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2779,"^19","^1:","^Z",2785,"^1;",0,"^1<",true,"^[",["^10",["^11",["^10",[[]]]]],"^13","Disable all lighting. Lighting is turned off by default and enabled\n with the lights fn. This function can be used to disable lighting so\n that 2D geometry (which does not require lighting) can be drawn\n after a set of lighted 3D geometry."],"~$emissive-int",["^ ","^O","Lights, Camera","^P",null,"^Q",["^ ","^O","Lights, Camera","^R","1.0","^S","Material Properties","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",15,"^V","emissive()","^W",3,"^X",true,"^Y",1580,"^Z",1580,"^[",["^10",["^11",["^10",[["~$int-val"]]]]],"^13","Sets the emissive color of the material used for drawing shapes\n drawn to the screen. Used in combination with ambient, specular, and\n shininess in setting the material properties of shapes. Converts all\n args to ints"],"^R","1.0","^B","~$quil.core/emissive-int","^S","Material Properties","^T","out/quil/core.cljc","^U",15,"^V","emissive()","^15",["^10",[["^AA"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",1574,"^19","^1:","^Z",1580,"^1;",1,"^1<",true,"^[",["^10",["^11",["^10",[["^AA"]]]]],"^13","Sets the emissive color of the material used for drawing shapes\n drawn to the screen. Used in combination with ambient, specular, and\n shininess in setting the material properties of shapes. Converts all\n args to ints"],"~$point",["^ ","^O","Shape","^P",null,"^Q",["^ ","^O","Shape","^R","1.0","^S","2D Primitives","^T","/home/mediocregopher/src/viz/out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","point()","^W",3,"^X",true,"^Y",2995,"^Z",2995,"^[",["^10",["^11",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]]]],"^13","Draws a point, a coordinate in space at the dimension of one\n pixel. The first parameter is the horizontal value for the point,\n the second value is the vertical value for the point, and the\n optional third value is the depth value. Drawing this shape in 3D\n using the z parameter requires the :P3D or :opengl renderer to be\n used."],"^R","1.0","^B","~$quil.core/point","^S","2D Primitives","^T","out/quil/core.cljc","^U",8,"^1F",["^ ","^18",false,"^1;",3,"^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^17",["^10",[null,null]]],"^V","point()","^15",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^16",null,"^17",["^10",[null,null]],"^W",1,"^18",false,"^X",true,"^Y",2989,"^Z",2995,"^1;",3,"^1<",true,"^[",["^10",[["~$x","~$y"],["~$x","~$y","~$z"]]],"^13","Draws a point, a coordinate in space at the dimension of one\n pixel. The first parameter is the horizontal value for the point,\n the second value is the vertical value for the point, and the\n optional third value is the depth value. Drawing this shape in 3D\n using the z parameter requires the :P3D or :opengl renderer to be\n used."]],"~:cljs.spec/registry-ref",[],"~:require-macros",["^ ","^H","^I","^I","^I","~$u","^J","^J","^J"],"~:cljs.analyzer/constants",["^ ","~:seen",["^A",["~:shift","~$.endDraw","~:open","~:baseline","~:disable-stroke-perspective","~$old-stroke__1569__auto__","~:hsb","~:quads","~:arrow","~:dilate","^>F","~$try","^?6","~:quad-strip","~:down","~:disable-depth-mask","~$cljs.core/binding","~:burn","~$gr__1596__auto__","~:posterize","~$quil.sketch/with-sketch","~:f8","^@S","~:screen","~:enable-depth-test","~:gray","~:enable-depth-sort","~:f1","~:corner","~:disable-texture-mipmaps","~:darkest","~:f10","~:dodge","~:bottom","~:bevel","~:disable-stroke-pure","~:replace","~:alt","~$tr__1578__auto__","~:top","~$cljs.core/apply","~:disable-depth-test","~$finally","~:pie","^4Y","~:enable-stroke-perspective","~:chord","~:rgb","~$.dispose","~:lines","~:argb","~:move","~:f5","~:command","^6L","~:miter","~:points","~:hand","~:close","~:radius","~:normal","~:threshold","~:up","~:center","~:round","~:disable-optimized-stroke","~$tr__1587__auto__","~$cljs.core/let","~:corners","~:f11","~:opaque","~:overlay","~:enable-opengl-errors","~:enable-stroke-pure","~:blur","~:project","~:triangle-fan","~:f3","~:enable-depth-mask","~:f2","~:control","~:difference","^@@","~$gr__1390__auto__","~:square","~:enable-optimized-stroke","~:p2d","~:shape","~:f12","~:exclusion","^9O","~:disable-opengl-errors","~:unknown-key","~:alpha","~:wait","~:right","^?C","~:repeat","~:hard-light","~$quil.sketch$macros/defsketch","~:image","~:multiply","~:lightest","^@<","~:f7","~$old-fill__1560__auto__","~:blend","~:disable-depth-sort","~:f9","~:erode","~:add","~:soft-light","^24","~:subtract","~:clamp","~:f6","~:f4","~:triangle-strip","~:cross","~:triangles","~$.beginDraw","~:left","~:invert","~:text","~:enable-texture-mipmaps","~:model"]],"~:order",["^AK","^BG","^BE","^BP","^BJ","^D2","^C8","^D0","^AP","^AT","^AX","^B1","^B8","^B:","^B>","^C3","^C=","^CD","^CK","^CN","^CO","^CR","^CV","^CW","^CX","^BH","^AO","^BK","^CG","^BW","^BS","^B6","^C0","^AM","^AV","^B2","^B4","^B7","^B=","^BC","^BF","^BY","^C4","^C5","^C:","^C@","^CE","^CS","^D7","^C?","^BX","^C7","^D8","^BO","^B<","^D4","^CI","^BA","^B;","^AL","^CB","^CM","^BT","^CY","^CJ","^BU","^B3","^D5","^AZ","^C6","^C2","^CU","^AR","^AQ","^D1","^BQ","^BL","^D6","^CH","^B9","^BN","^B0","^BM","^C;","^AU","^CZ","^CP","^C1","^C<","^C[","^B5","^CC","^AI","^CT","^BV","^B?","^C9","^A[","^CA","^B[","^C>","^24","^BI","^BR","^CQ","^>F","^BB","^9O","^AN","^?C","^6L","^B@","^@@","^AS","^@S","^BD","^4Y","^BZ","^@<","^AY","^AW","^?6","^D3","^AJ","^CL","^CF"]],"^13","Wrappers and extensions around the core Processing.org API."] \ No newline at end of file diff --git a/src/assets/viz/2/quil/core.js b/src/assets/viz/2/quil/core.js deleted file mode 100644 index d4a2954..0000000 --- a/src/assets/viz/2/quil/core.js +++ /dev/null @@ -1,5543 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.core'); -goog.require('cljs.core'); -goog.require('clojure.string'); -goog.require('org.processingjs.Processing'); -goog.require('quil.sketch'); -goog.require('quil.util'); -quil.core._STAR_graphics_STAR_ = null; -quil.core.no_fill_prop = "no-fill-quil"; -/** - * Graphics currently used for drawing. By default it is sketch graphics, - * but if called inside with-graphics macro - graphics passed to the macro - * is returned. This method should be used if you need to call some methods - * that are not implemented by quil. Example: - * (.beginDraw (current-graphics)). - */ -quil.core.current_graphics = (function quil$core$current_graphics(){ -var or__4047__auto__ = quil.core._STAR_graphics_STAR_; -if(cljs.core.truth_(or__4047__auto__)){ -return or__4047__auto__; -} else { -return quil.sketch.current_applet.call(null); -} -}); -quil.core.arc_modes = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"open","open",-1763596448),(Processing.prototype.PConstants["OPEN"]),new cljs.core.Keyword(null,"chord","chord",-696248342),(Processing.prototype.PConstants["CHORD"]),new cljs.core.Keyword(null,"pie","pie",1530441672),(Processing.prototype.PConstants["PIE"])], null); - -quil.core.shape_modes = new cljs.core.PersistentArrayMap(null, 7, [new cljs.core.Keyword(null,"points","points",-1486596883),(Processing.prototype.PConstants["POINTS"]),new cljs.core.Keyword(null,"lines","lines",-700165781),(Processing.prototype.PConstants["LINES"]),new cljs.core.Keyword(null,"triangles","triangles",-1525417058),(Processing.prototype.PConstants["TRIANGLES"]),new cljs.core.Keyword(null,"triangle-fan","triangle-fan",1743150739),(Processing.prototype.PConstants["TRIANGLE_FAN"]),new cljs.core.Keyword(null,"triangle-strip","triangle-strip",221845500),(Processing.prototype.PConstants["TRIANGLE_STRIP"]),new cljs.core.Keyword(null,"quads","quads",1347497505),(Processing.prototype.PConstants["QUADS"]),new cljs.core.Keyword(null,"quad-strip","quad-strip",-1297270686),(Processing.prototype.PConstants["QUAD_STRIP"])], null); - -quil.core.blend_modes = cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"burn","burn",-458179293),new cljs.core.Keyword(null,"screen","screen",1990059748),new cljs.core.Keyword(null,"darkest","darkest",68197253),new cljs.core.Keyword(null,"dodge","dodge",-1556666427),new cljs.core.Keyword(null,"replace","replace",-786587770),new cljs.core.Keyword(null,"overlay","overlay",-139131598),new cljs.core.Keyword(null,"difference","difference",1916101396),new cljs.core.Keyword(null,"exclusion","exclusion",531897910),new cljs.core.Keyword(null,"hard-light","hard-light",-37591145),new cljs.core.Keyword(null,"multiply","multiply",-1036907048),new cljs.core.Keyword(null,"lightest","lightest",-2043115912),new cljs.core.Keyword(null,"blend","blend",249565561),new cljs.core.Keyword(null,"add","add",235287739),new cljs.core.Keyword(null,"soft-light","soft-light",513207899),new cljs.core.Keyword(null,"subtract","subtract",2136988635)],[(Processing.prototype.PConstants["BURN"]),(Processing.prototype.PConstants["SCREEN"]),(Processing.prototype.PConstants["DARKEST"]),(Processing.prototype.PConstants["DODGE"]),(Processing.prototype.PConstants["REPLACE"]),(Processing.prototype.PConstants["OVERLAY"]),(Processing.prototype.PConstants["DIFFERENCE"]),(Processing.prototype.PConstants["EXCLUSION"]),(Processing.prototype.PConstants["HARD_LIGHT"]),(Processing.prototype.PConstants["MULTIPLY"]),(Processing.prototype.PConstants["LIGHTEST"]),(Processing.prototype.PConstants["BLEND"]),(Processing.prototype.PConstants["ADD"]),(Processing.prototype.PConstants["SOFT_LIGHT"]),(Processing.prototype.PConstants["SUBTRACT"])]); - -quil.core.color_modes = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"rgb","rgb",1432123467),(Processing.prototype.PConstants["RGB"]),new cljs.core.Keyword(null,"hsb","hsb",-753472031),(Processing.prototype.PConstants["HSB"])], null); - -quil.core.image_formats = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"rgb","rgb",1432123467),(Processing.prototype.PConstants["RGB"]),new cljs.core.Keyword(null,"argb","argb",633844107),(Processing.prototype.PConstants["ARGB"]),new cljs.core.Keyword(null,"alpha","alpha",-1574982441),(Processing.prototype.PConstants["ALPHA"])], null); - -quil.core.ellipse_modes = new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"center","center",-748944368),(Processing.prototype.PConstants["CENTER"]),new cljs.core.Keyword(null,"radius","radius",-2073122258),(Processing.prototype.PConstants["RADIUS"]),new cljs.core.Keyword(null,"corner","corner",1296717125),(Processing.prototype.PConstants["CORNER"]),new cljs.core.Keyword(null,"corners","corners",-137817903),(Processing.prototype.PConstants["CORNERS"])], null); - -quil.core.hint_options = cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"disable-stroke-perspective","disable-stroke-perspective",479198433),new cljs.core.Keyword(null,"disable-depth-mask","disable-depth-mask",3298562),new cljs.core.Keyword(null,"enable-depth-test","enable-depth-test",1519326084),new cljs.core.Keyword(null,"enable-depth-sort","enable-depth-sort",-383089627),new cljs.core.Keyword(null,"disable-texture-mipmaps","disable-texture-mipmaps",1697917541),new cljs.core.Keyword(null,"disable-stroke-pure","disable-stroke-pure",735493926),new cljs.core.Keyword(null,"disable-depth-test","disable-depth-test",284606407),new cljs.core.Keyword(null,"enable-stroke-perspective","enable-stroke-perspective",-259923319),new cljs.core.Keyword(null,"disable-optimized-stroke","disable-optimized-stroke",74038544),new cljs.core.Keyword(null,"enable-opengl-errors","enable-opengl-errors",89998962),new cljs.core.Keyword(null,"enable-stroke-pure","enable-stroke-pure",881345587),new cljs.core.Keyword(null,"enable-depth-mask","enable-depth-mask",872785875),new cljs.core.Keyword(null,"enable-optimized-stroke","enable-optimized-stroke",1537575253),new cljs.core.Keyword(null,"disable-opengl-errors","disable-opengl-errors",506822839),new cljs.core.Keyword(null,"disable-depth-sort","disable-depth-sort",-1568352839),new cljs.core.Keyword(null,"enable-texture-mipmaps","enable-texture-mipmaps",1241892671)],[(Processing.prototype.PConstants["DISABLE_STROKE_PERSPECTIVE"]),(Processing.prototype.PConstants["DISABLE_DEPTH_MASK"]),(Processing.prototype.PConstants["ENABLE_DEPTH_TEST"]),(Processing.prototype.PConstants["ENABLE_DEPTH_SORT"]),(Processing.prototype.PConstants["DISABLE_TEXTURE_MIPMAPS"]),(Processing.prototype.PConstants["DISABLE_STROKE_PURE"]),(Processing.prototype.PConstants["DISABLE_DEPTH_TEST"]),(Processing.prototype.PConstants["ENABLE_STROKE_PERSPECTIVE"]),(Processing.prototype.PConstants["DISABLE_OPTIMIZED_STROKE"]),(Processing.prototype.PConstants["ENABLE_OPENGL_ERRORS"]),(Processing.prototype.PConstants["ENABLE_STROKE_PURE"]),(Processing.prototype.PConstants["ENABLE_DEPTH_MASK"]),(Processing.prototype.PConstants["ENABLE_OPTIMIZED_STROKE"]),(Processing.prototype.PConstants["DISABLE_OPENGL_ERRORS"]),(Processing.prototype.PConstants["DISABLE_DEPTH_SORT"]),(Processing.prototype.PConstants["ENABLE_TEXTURE_MIPMAPS"])]); - -quil.core.image_modes = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"corner","corner",1296717125),(Processing.prototype.PConstants["CORNER"]),new cljs.core.Keyword(null,"corners","corners",-137817903),(Processing.prototype.PConstants["CORNERS"]),new cljs.core.Keyword(null,"center","center",-748944368),(Processing.prototype.PConstants["CENTER"])], null); - -quil.core.rect_modes = new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"corner","corner",1296717125),(Processing.prototype.PConstants["CORNER"]),new cljs.core.Keyword(null,"corners","corners",-137817903),(Processing.prototype.PConstants["CORNERS"]),new cljs.core.Keyword(null,"center","center",-748944368),(Processing.prototype.PConstants["CENTER"]),new cljs.core.Keyword(null,"radius","radius",-2073122258),(Processing.prototype.PConstants["RADIUS"])], null); - -quil.core.p_shape_modes = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"corner","corner",1296717125),(Processing.prototype.PConstants["CORNER"]),new cljs.core.Keyword(null,"corners","corners",-137817903),(Processing.prototype.PConstants["CORNERS"]),new cljs.core.Keyword(null,"center","center",-748944368),(Processing.prototype.PConstants["CENTER"])], null); - -quil.core.stroke_cap_modes = new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"square","square",812434677),(Processing.prototype.PConstants["SQUARE"]),new cljs.core.Keyword(null,"round","round",2009433328),(Processing.prototype.PConstants["ROUND"]),new cljs.core.Keyword(null,"project","project",1124394579),(Processing.prototype.PConstants["PROJECT"]),new cljs.core.Keyword(null,"model","model",331153215),(Processing.prototype.PConstants["MODEL"])], null); - -quil.core.stroke_join_modes = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"miter","miter",327727052),(Processing.prototype.PConstants["MITER"]),new cljs.core.Keyword(null,"bevel","bevel",2090515654),(Processing.prototype.PConstants["BEVEL"]),new cljs.core.Keyword(null,"round","round",2009433328),(Processing.prototype.PConstants["ROUND"])], null); - -quil.core.horizontal_alignment_modes = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"left","left",-399115937),(Processing.prototype.PConstants["LEFT"]),new cljs.core.Keyword(null,"center","center",-748944368),(Processing.prototype.PConstants["CENTER"]),new cljs.core.Keyword(null,"right","right",-452581833),(Processing.prototype.PConstants["RIGHT"])], null); - -quil.core.vertical_alignment_modes = new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"top","top",-1856271961),(Processing.prototype.PConstants["TOP"]),new cljs.core.Keyword(null,"bottom","bottom",-1550509018),(Processing.prototype.PConstants["BOTTOM"]),new cljs.core.Keyword(null,"center","center",-748944368),(Processing.prototype.PConstants["CENTER"]),new cljs.core.Keyword(null,"baseline","baseline",1151033280),(Processing.prototype.PConstants["BASELINE"])], null); - -quil.core.text_modes = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"model","model",331153215),(Processing.prototype.PConstants["MODEL"]),new cljs.core.Keyword(null,"shape","shape",1190694006),(Processing.prototype.PConstants["SHAPE"])], null); - -quil.core.texture_modes = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"image","image",-58725096),(Processing.prototype.PConstants["IMAGE"]),new cljs.core.Keyword(null,"normal","normal",-1519123858),(Processing.prototype.PConstants["NORMAL"])], null); - -quil.core.texture_wrap_modes = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"clamp","clamp",1803814940),(Processing.prototype.PConstants["CLAMP"]),new cljs.core.Keyword(null,"repeat","repeat",832692087),(Processing.prototype.PConstants["REPEAT"])], null); - -quil.core.filter_modes = new cljs.core.PersistentArrayMap(null, 8, [new cljs.core.Keyword(null,"threshold","threshold",204221583),(Processing.prototype.PConstants["THRESHOLD"]),new cljs.core.Keyword(null,"gray","gray",1013268388),(Processing.prototype.PConstants["GRAY"]),new cljs.core.Keyword(null,"invert","invert",1553577503),(Processing.prototype.PConstants["INVERT"]),new cljs.core.Keyword(null,"posterize","posterize",-148251901),(Processing.prototype.PConstants["POSTERIZE"]),new cljs.core.Keyword(null,"blur","blur",-453500461),(Processing.prototype.PConstants["BLUR"]),new cljs.core.Keyword(null,"opaque","opaque",-1243552654),(Processing.prototype.PConstants["OPAQUE"]),new cljs.core.Keyword(null,"erode","erode",1539530618),(Processing.prototype.PConstants["ERODE"]),new cljs.core.Keyword(null,"dilate","dilate",1504745153),(Processing.prototype.PConstants["DILATE"])], null); - -quil.core.cursor_modes = new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"arrow","arrow",1071351425),(Processing.prototype.PConstants["ARROW"]),new cljs.core.Keyword(null,"cross","cross",194557789),(Processing.prototype.PConstants["CROSS"]),new cljs.core.Keyword(null,"hand","hand",791601933),(Processing.prototype.PConstants["HAND"]),new cljs.core.Keyword(null,"move","move",-2110884309),(Processing.prototype.PConstants["MOVE"]),new cljs.core.Keyword(null,"text","text",-1790561697),(Processing.prototype.PConstants["TEXT"]),new cljs.core.Keyword(null,"wait","wait",-260664777),(Processing.prototype.PConstants["WAIT"])], null); -quil.core.PI = Math.PI; -quil.core.HALF_PI = (quil.core.PI / 2.0); -quil.core.THIRD_PI = (quil.core.PI / 3.0); -quil.core.QUARTER_PI = (quil.core.PI / 4.0); -quil.core.TWO_PI = (quil.core.PI * 2.0); -quil.core.DEG_TO_RAD = (quil.core.PI / 180.0); -quil.core.RAD_TO_DEG = (180.0 / quil.core.PI); -quil.core.KEY_CODES = cljs.core.PersistentHashMap.fromArrays([(121),(39),(157),(119),(116),(113),(40),(117),(118),(122),(17),(115),(112),(123),(16),(120),(38),(18),(114),(37)],[new cljs.core.Keyword(null,"f10","f10",627525541),new cljs.core.Keyword(null,"right","right",-452581833),new cljs.core.Keyword(null,"command","command",-894540724),new cljs.core.Keyword(null,"f8","f8",-2141475484),new cljs.core.Keyword(null,"f5","f5",1587057387),new cljs.core.Keyword(null,"f2","f2",396168596),new cljs.core.Keyword(null,"down","down",1565245570),new cljs.core.Keyword(null,"f6","f6",2103080604),new cljs.core.Keyword(null,"f7","f7",356150168),new cljs.core.Keyword(null,"f11","f11",-1417398799),new cljs.core.Keyword(null,"control","control",1892578036),new cljs.core.Keyword(null,"f4","f4",990968764),new cljs.core.Keyword(null,"f1","f1",1714532389),new cljs.core.Keyword(null,"f12","f12",853352790),new cljs.core.Keyword(null,"shift","shift",997140064),new cljs.core.Keyword(null,"f9","f9",704633338),new cljs.core.Keyword(null,"up","up",-269712113),new cljs.core.Keyword(null,"alt","alt",-3214426),new cljs.core.Keyword(null,"f3","f3",1954829043),new cljs.core.Keyword(null,"left","left",-399115937)]); -/** - * Writes to the text area of the Processing environment's console. - * This is often helpful for looking at the data a program is producing. - * Each call to this function creates a new line of output. - * Individual elements can be separated with quotes ("") and joined with the string concatenation operator (+). - * Also writes the content of an array to the text area of the Processing environment. - * This is often helpful for looking at the data a program is producing. - * A new line is put between each element of the array. This function can only print 1D arrays, - * but can test to see if the content are null or not null for 2+ dimensional arrays. - */ -quil.core.prc_println = (function quil$core$prc_println(msg){ -return quil.sketch.current_applet.call(null).println(msg); -}); -/** - * Writes to the console area of the Processing environment. - * This is often helpful for looking at the data a program is producing. - * The companion function println() works like print(), but creates a new line of text for each call to the function. - * Individual elements can be separated with quotes ("") and joined with the addition operator (+). - */ -quil.core.prc_print = (function quil$core$prc_print(msg){ -return quil.sketch.current_applet.call(null).print(msg); -}); -/** - * Returns sketch object by id of canvas element of sketch. - */ -quil.core.get_sketch_by_id = (function quil$core$get_sketch_by_id(id){ -return Processing.getInstanceById(id); -}); -var ret__4684__auto___1286 = (function (){ -quil.core.with_sketch = (function quil$core$with_sketch(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1287 = arguments.length; -var i__4642__auto___1288 = (0); -while(true){ -if((i__4642__auto___1288 < len__4641__auto___1287)){ -args__4647__auto__.push((arguments[i__4642__auto___1288])); - -var G__1289 = (i__4642__auto___1288 + (1)); -i__4642__auto___1288 = G__1289; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.with_sketch.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.with_sketch.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,applet,body){ -if(quil.util.clj_compilation_QMARK_.call(null)){ -return null; -} else { -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.sketch","with-sketch","quil.sketch/with-sketch",-634067708,null),null,(1),null)),(new cljs.core.List(null,applet,null,(1),null)),body))); -} -}); - -quil.core.with_sketch.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.with_sketch.cljs$lang$applyTo = (function (seq1282){ -var G__1283 = cljs.core.first.call(null,seq1282); -var seq1282__$1 = cljs.core.next.call(null,seq1282); -var G__1284 = cljs.core.first.call(null,seq1282__$1); -var seq1282__$2 = cljs.core.next.call(null,seq1282__$1); -var G__1285 = cljs.core.first.call(null,seq1282__$2); -var seq1282__$3 = cljs.core.next.call(null,seq1282__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1283,G__1284,G__1285,seq1282__$3); -}); - -return null; -})() -; -quil.core.with_sketch.cljs$lang$macro = true; - -/** - * Retrieve sketch-specific state-atom. All changes to the - * atom will be reflected in the state. - * - * (set-state! :foo 1) - * (state :foo) ;=> 1 - * (swap! (state-atom) update-in [:foo] inc) - * (state :foo) ;=> 2 - */ -quil.core.state_atom = (function quil$core$state_atom(){ -return quil.sketch.current_applet.call(null).quil; -}); -/** - * Retrieve sketch-specific state by key. Must initially call - * set-state! to store state. If no parameter passed whole - * state map is returned. - * - * (set-state! :foo 1) - * (state :foo) ;=> 1 - * (state) ;=> {:foo 1} - */ -quil.core.state = (function quil$core$state(var_args){ -var G__1291 = arguments.length; -switch (G__1291) { -case 0: -return quil.core.state.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.state.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.state.cljs$core$IFn$_invoke$arity$0 = (function (){ -return cljs.core.deref.call(null,quil.core.state_atom.call(null)); -}); - -quil.core.state.cljs$core$IFn$_invoke$arity$1 = (function (key){ -var state = quil.core.state.call(null); -if(cljs.core.contains_QMARK_.call(null,state,key)){ -} else { -throw Error(["Unable to find state with key: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(key)].join('')); -} - -return cljs.core.get.call(null,state,key); -}); - -quil.core.state.cljs$lang$maxFixedArity = 1; - -/** - * Set sketch-specific state. May only be called once (ideally in the - * setup fn). Subsequent calls have no effect. - * - * Example: - * (set-state! :foo 1 :bar (atom true) :baz (/ (width) 2)) - */ -quil.core.set_state_BANG_ = (function quil$core$set_state_BANG_(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1294 = arguments.length; -var i__4642__auto___1295 = (0); -while(true){ -if((i__4642__auto___1295 < len__4641__auto___1294)){ -args__4647__auto__.push((arguments[i__4642__auto___1295])); - -var G__1296 = (i__4642__auto___1295 + (1)); -i__4642__auto___1295 = G__1296; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((0) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((0)),(0),null)):null); -return quil.core.set_state_BANG_.cljs$core$IFn$_invoke$arity$variadic(argseq__4648__auto__); -}); - -quil.core.set_state_BANG_.cljs$core$IFn$_invoke$arity$variadic = (function (state_vals){ -var state_STAR_ = quil.core.state_atom.call(null); -if(cljs.core.truth_(cljs.core.deref.call(null,state_STAR_))){ -return null; -} else { -var state_map = cljs.core.apply.call(null,cljs.core.hash_map,state_vals); -return cljs.core.reset_BANG_.call(null,state_STAR_,state_map); -} -}); - -quil.core.set_state_BANG_.cljs$lang$maxFixedArity = (0); - -/** @this {Function} */ -quil.core.set_state_BANG_.cljs$lang$applyTo = (function (seq1293){ -var self__4629__auto__ = this; -return self__4629__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq1293)); -}); - -/** - * Calculates the absolute value (magnitude) of a number. The - * absolute value of a number is always positive. Dynamically casts to - * an int or float appropriately - */ -quil.core.abs = (function quil$core$abs(n){ -return quil.sketch.current_applet.call(null).abs(n); -}); -/** - * The inverse of cos, returns the arc cosine of a value. This - * function expects the values in the range of -1 to 1 and values are - * returned in the range 0 to Math/PI (3.1415927). - */ -quil.core.acos = (function quil$core$acos(n){ -return quil.sketch.current_applet.call(null).acos(n); -}); -/** - * Extracts the alpha value from a color. - */ -quil.core.alpha = (function quil$core$alpha(color){ -return quil.core.current_graphics.call(null).alpha(cljs.core.unchecked_int.call(null,color)); -}); -/** - * Sets the ambient reflectance for shapes drawn to the screen. This - * is combined with the ambient light component of environment. The - * color components set through the parameters define the - * reflectance. For example in the default color mode, setting x=255, - * y=126, z=0, would cause all the red light to reflect and half of the - * green light to reflect. Used in combination with emissive, specular, - * and shininess in setting the material properties of shapes. - */ -quil.core.ambient_float = (function quil$core$ambient_float(var_args){ -var G__1298 = arguments.length; -switch (G__1298) { -case 1: -return quil.core.ambient_float.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.ambient_float.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.ambient_float.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -return quil.core.current_graphics.call(null).ambient(gray); -}); - -quil.core.ambient_float.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).ambient(x,y,z); -}); - -quil.core.ambient_float.cljs$lang$maxFixedArity = 3; - -/** - * Sets the ambient reflectance for shapes drawn to the screen. This - * is combined with the ambient light component of environment. The rgb - * color components set define the reflectance. Used in combination - * with emissive, specular, and shininess in setting the material - * properties of shapes. - */ -quil.core.ambient_int = (function quil$core$ambient_int(rgb){ -return quil.core.current_graphics.call(null).ambient((rgb | (0))); -}); -/** - * Sets the ambient reflectance for shapes drawn to the screen. This - * is combined with the ambient light component of environment. The - * color components set through the parameters define the - * reflectance. For example in the default color mode, setting x=255, - * y=126, z=0, would cause all the red light to reflect and half of the - * green light to reflect. Used in combination with emissive, specular, - * and shininess in setting the material properties of shapes. - */ -quil.core.ambient = (function quil$core$ambient(var_args){ -var G__1301 = arguments.length; -switch (G__1301) { -case 1: -return quil.core.ambient.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.ambient.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.ambient.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.ambient_float.call(null,rgb); -}); - -quil.core.ambient.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.ambient_float.call(null,x,y,z); -}); - -quil.core.ambient.cljs$lang$maxFixedArity = 3; - -/** - * Adds an ambient light. Ambient light doesn't come from a specific direction, - * the rays have light have bounced around so much that objects are - * evenly lit from all sides. Ambient lights are almost always used in - * combination with other types of lights. Lights need to be included - * in the draw to remain persistent in a looping program. Placing them - * in the setup of a looping program will cause them to only have an - * effect the first time through the loop. The effect of the - * parameters is determined by the current color mode. - */ -quil.core.ambient_light = (function quil$core$ambient_light(var_args){ -var G__1304 = arguments.length; -switch (G__1304) { -case 3: -return quil.core.ambient_light.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 6: -return quil.core.ambient_light.cljs$core$IFn$_invoke$arity$6((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.ambient_light.cljs$core$IFn$_invoke$arity$3 = (function (red,green,blue){ -return quil.core.current_graphics.call(null).ambientLight(red,green,blue); -}); - -quil.core.ambient_light.cljs$core$IFn$_invoke$arity$6 = (function (red,green,blue,x,y,z){ -return quil.core.current_graphics.call(null).ambientLight(red,green,blue,x,y,z); -}); - -quil.core.ambient_light.cljs$lang$maxFixedArity = 6; - -/** - * Multiplies the current matrix by the one specified through the - * parameters. This is very slow because it will try to calculate the - * inverse of the transform, so avoid it whenever possible. The - * equivalent function in OpenGL is glMultMatrix(). - */ -quil.core.apply_matrix = (function quil$core$apply_matrix(n00,n01,n02,n03,n10,n11,n12,n13,n20,n21,n22,n23,n30,n31,n32,n33){ -return quil.core.current_graphics.call(null).applyMatrix(n00,n01,n02,n03,n10,n11,n12,n13,n20,n21,n22,n23,n30,n31,n32,n33); -}); -/** - * Draws an arc in the display window. Arcs are drawn along the outer - * edge of an ellipse defined by the x, y, width and height - * parameters. The origin or the arc's ellipse may be changed with the - * ellipse-mode function. The start and stop parameters specify the - * angles at which to draw the arc. The mode is either :open, :chord or :pie. - */ -quil.core.arc = (function quil$core$arc(x,y,width,height,start,stop){ -return quil.core.current_graphics.call(null).arc(x,y,width,height,start,stop); -}); -/** - * The inverse of sin, returns the arc sine of a value. This function - * expects the values in the range of -1 to 1 and values are returned - * in the range -PI/2 to PI/2. - */ -quil.core.asin = (function quil$core$asin(n){ -return quil.sketch.current_applet.call(null).asin(n); -}); -/** - * The inverse of tan, returns the arc tangent of a value. This - * function expects the values in the range of -Infinity to - * Infinity (exclusive) and values are returned in the range -PI/2 to - * PI/2 . - */ -quil.core.atan = (function quil$core$atan(n){ -return quil.sketch.current_applet.call(null).atan(n); -}); -/** - * Calculates the angle (in radians) from a specified point to the - * coordinate origin as measured from the positive x-axis. Values are - * returned as a float in the range from PI to -PI. The atan2 function - * is most often used for orienting geometry to the position of the - * cursor. Note: The y-coordinate of the point is the first parameter - * and the x-coordinate is the second due to the structure of - * calculating the tangent. - */ -quil.core.atan2 = (function quil$core$atan2(y,x){ -return quil.sketch.current_applet.call(null).atan2(y,x); -}); -/** - * A sequence of strings representing the fonts on this system - * available for use. - * - * Because of limitations in Java, not all fonts can be used and some - * might work with one operating system and not others. When sharing a - * sketch with other people or posting it on the web, you may need to - * include a .ttf or .otf version of your font in the data directory of - * the sketch because other people might not have the font installed on - * their computer. Only fonts that can legally be distributed should be - * included with a sketch. - */ -quil.core.available_fonts = (function quil$core$available_fonts(){ -return cljs.core.seq.call(null,PFont.list()); -}); -/** - * Sets the color used for the background of the Processing - * window. The default background is light gray. In the draw function, - * the background color is used to clear the display window at the - * beginning of each frame. - * - * It is not possible to use transparency (alpha) in background colors - * with the main drawing surface, however they will work properly with - * create-graphics. Converts args to floats. - */ -quil.core.background_float = (function quil$core$background_float(var_args){ -var G__1307 = arguments.length; -switch (G__1307) { -case 1: -return quil.core.background_float.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.background_float.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.background_float.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.background_float.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.background_float.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -return quil.core.current_graphics.call(null).background(gray); -}); - -quil.core.background_float.cljs$core$IFn$_invoke$arity$2 = (function (gray,alpha){ -return quil.core.current_graphics.call(null).background(gray,alpha); -}); - -quil.core.background_float.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.current_graphics.call(null).background(r,g,b); -}); - -quil.core.background_float.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,a){ -return quil.core.current_graphics.call(null).background(r,g,b,a); -}); - -quil.core.background_float.cljs$lang$maxFixedArity = 4; - -/** - * Sets the color used for the background of the Processing - * window. The default background is light gray. In the draw function, - * the background color is used to clear the display window at the - * beginning of each frame. - * - * It is not possible to use transparency (alpha) in background colors - * with the main drawing surface, however they will work properly with - * create-graphics. Converts rgb to an int and alpha to a float. - */ -quil.core.background_int = (function quil$core$background_int(var_args){ -var G__1310 = arguments.length; -switch (G__1310) { -case 1: -return quil.core.background_int.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.background_int.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.background_int.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.current_graphics.call(null).background(cljs.core.unchecked_int.call(null,rgb)); -}); - -quil.core.background_int.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.current_graphics.call(null).background(cljs.core.unchecked_int.call(null,rgb),alpha); -}); - -quil.core.background_int.cljs$lang$maxFixedArity = 2; - -/** - * Sets the color used for the background of the Processing - * window. The default background is light gray. In the draw function, - * the background color is used to clear the display window at the - * beginning of each frame. - * - * It is not possible to use transparency (alpha) in background colors - * with the main drawing surface, however they will work properly with - * create-graphics. Converts args to floats. - */ -quil.core.background = (function quil$core$background(var_args){ -var G__1313 = arguments.length; -switch (G__1313) { -case 1: -return quil.core.background.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.background.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.background.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.background.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.background.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.current_graphics.call(null).background(rgb); -}); - -quil.core.background.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.current_graphics.call(null).background(rgb,alpha); -}); - -quil.core.background.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.background_float.call(null,r,g,b); -}); - -quil.core.background.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,a){ -return quil.core.background_float.call(null,r,g,b,a); -}); - -quil.core.background.cljs$lang$maxFixedArity = 4; - -/** - * Specify an image to be used as the background for a sketch. Its - * width and height must be the same size as the sketch window. Images - * used as background will ignore the current tint setting. - */ -quil.core.background_image = (function quil$core$background_image(img){ -return quil.core.current_graphics.call(null).background(img); -}); -/** - * Sets the matrix mode to the camera matrix so calls such as - * translate, rotate, apply-matrix and reset-matrix affect the - * camera. begin-camera should always be used with a following - * end-camera and pairs of begin-camera and end-camera cannot be - * nested. - * - * For most situations the camera function will be sufficient. - */ -quil.core.begin_camera = (function quil$core$begin_camera(){ -return quil.core.current_graphics.call(null).beginCamera(); -}); -/** - * Use the begin-contour and end-contour function to create negative - * shapes within shapes. These functions can only be within a - * begin-shape/end-shape pair and they only work with the :p2d and :p3d - * renderers. - */ -quil.core.begin_contour = (function quil$core$begin_contour(){ -return quil.core.current_graphics.call(null).beginContour(); -}); -/** - * Enables the creation of complex forms. begin-shape begins recording - * vertices for a shape and end-shape stops recording. Use the mode - * keyword to specify which shape create from the provided - * vertices. With no mode specified, the shape can be any irregular - * polygon. - * - * The available mode keywords are :points, :lines, :triangles, - * :triangle-fan, :triangle-strip, - * :quads, :quad-strip. - * - * After calling the begin-shape function, a series of vertex commands - * must follow. To stop drawing the shape, call end-shape. The vertex - * function with two parameters specifies a position in 2D and the - * vertex function with three parameters specifies a position in - * 3D. Each shape will be outlined with the current stroke color and - * filled with the fill color. - * - * Transformations such as translate, rotate, and scale do not work - * within begin-shape. It is also not possible to use other shapes, - * such as ellipse or rect within begin-shape. - */ -quil.core.begin_shape = (function quil$core$begin_shape(var_args){ -var G__1316 = arguments.length; -switch (G__1316) { -case 0: -return quil.core.begin_shape.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.begin_shape.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.begin_shape.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.current_graphics.call(null).beginShape(); -}); - -quil.core.begin_shape.cljs$core$IFn$_invoke$arity$1 = (function (mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.shape_modes); -return quil.core.current_graphics.call(null).beginShape((mode__$1 | (0))); -}); - -quil.core.begin_shape.cljs$lang$maxFixedArity = 1; - -/** - * Draws a Bezier curve on the screen. These curves are defined by a - * series of anchor and control points. The first two parameters - * specify the first anchor point and the last two parameters specify - * the other anchor point. The middle parameters specify the control - * points which define the shape of the curve. - */ -quil.core.bezier = (function quil$core$bezier(var_args){ -var G__1319 = arguments.length; -switch (G__1319) { -case 8: -return quil.core.bezier.cljs$core$IFn$_invoke$arity$8((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)])); - -break; -case 12: -return quil.core.bezier.cljs$core$IFn$_invoke$arity$12((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)]),(arguments[(9)]),(arguments[(10)]),(arguments[(11)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.bezier.cljs$core$IFn$_invoke$arity$8 = (function (x1,y1,cx1,cy1,cx2,cy2,x2,y2){ -return quil.core.current_graphics.call(null).bezier(x1,y1,cx1,cy1,cx2,cy2,x2,y2); -}); - -quil.core.bezier.cljs$core$IFn$_invoke$arity$12 = (function (x1,y1,z1,cx1,cy1,cz1,cx2,cy2,cz2,x2,y2,z2){ -return quil.core.current_graphics.call(null).bezier(x1,y1,z1,cx1,cy1,cz1,cx2,cy2,cz2,x2,y2,z2); -}); - -quil.core.bezier.cljs$lang$maxFixedArity = 12; - -/** - * Sets the resolution at which Beziers display. The default value is - * 20. This function is only useful when using the :p3d or :opengl - * renderer as the default (:java2d) renderer does not use this - * information. - */ -quil.core.bezier_detail = (function quil$core$bezier_detail(detail){ -return quil.core.current_graphics.call(null).bezierDetail((detail | (0))); -}); -/** - * Evaluates the Bezier at point t for points a, b, c, d. The - * parameter t varies between 0 and 1, a and d are points on the curve, - * and b and c are the control points. This can be done once with the x - * coordinates and a second time with the y coordinates to get the - * location of a bezier curve at t. - */ -quil.core.bezier_point = (function quil$core$bezier_point(a,b,c,d,t){ -return quil.core.current_graphics.call(null).bezierPoint(a,b,c,d,t); -}); -/** - * Calculates the tangent of a point on a Bezier curve. - * (See http://en.wikipedia.org/wiki/Tangent) - */ -quil.core.bezier_tangent = (function quil$core$bezier_tangent(a,b,c,d,t){ -return quil.core.current_graphics.call(null).bezierTangent(a,b,c,d,t); -}); -/** - * Specifies vertex coordinates for Bezier curves. Each call to - * bezier-vertex defines the position of two control points and one - * anchor point of a Bezier curve, adding a new segment to a line or - * shape. The first time bezier-vertex is used within a begin-shape - * call, it must be prefaced with a call to vertex to set the first - * anchor point. This function must be used between begin-shape and - * end-shape and only when there is no parameter specified to - * begin-shape. - */ -quil.core.bezier_vertex = (function quil$core$bezier_vertex(var_args){ -var G__1322 = arguments.length; -switch (G__1322) { -case 6: -return quil.core.bezier_vertex.cljs$core$IFn$_invoke$arity$6((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)])); - -break; -case 9: -return quil.core.bezier_vertex.cljs$core$IFn$_invoke$arity$9((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.bezier_vertex.cljs$core$IFn$_invoke$arity$6 = (function (cx1,cy1,cx2,cy2,x,y){ -return quil.core.current_graphics.call(null).bezierVertex(cx1,cy1,cx2,cy2,x,y); -}); - -quil.core.bezier_vertex.cljs$core$IFn$_invoke$arity$9 = (function (cx1,cy1,cz1,cx2,cy2,cz2,x,y,z){ -return quil.core.current_graphics.call(null).bezierVertex(cx1,cy1,cz1,cx2,cy2,cz2,x,y,z); -}); - -quil.core.bezier_vertex.cljs$lang$maxFixedArity = 9; - -/** - * Returns a string representing the binary value of an int, char or - * byte. When converting an int to a string, it is possible to specify - * the number of digits used. - */ -quil.core.binary = (function quil$core$binary(var_args){ -var G__1325 = arguments.length; -switch (G__1325) { -case 1: -return quil.core.binary.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.binary.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.binary.cljs$core$IFn$_invoke$arity$1 = (function (val){ -return quil.sketch.current_applet.call(null).binary(val); -}); - -quil.core.binary.cljs$core$IFn$_invoke$arity$2 = (function (val,num_digits){ -return quil.sketch.current_applet.call(null).binary(val,num_digits); -}); - -quil.core.binary.cljs$lang$maxFixedArity = 2; - -/** - * Blends a region of pixels from one image into another with full alpha - * channel support. If src is not specified it defaults to current-graphics. - * If dest is not specified it defaults to current-graphics. - * - * Note: blend-mode function is recommended to use instead of this one. - * - * Available blend modes are: - * - * :blend - linear interpolation of colours: C = A*factor + B - * :add - additive blending with white clip: - * C = min(A*factor + B, 255) - * :subtract - subtractive blending with black clip: - * C = max(B - A*factor, 0) - * :darkest - only the darkest colour succeeds: - * C = min(A*factor, B) - * :lightest - only the lightest colour succeeds: - * C = max(A*factor, B) - * :difference - subtract colors from underlying image. - * :exclusion - similar to :difference, but less extreme. - * :multiply - Multiply the colors, result will always be darker. - * :screen - Opposite multiply, uses inverse values of the colors. - * :overlay - A mix of :multiply and :screen. Multiplies dark values - * and screens light values. - * :hard-light - :screen when greater than 50% gray, :multiply when - * lower. - * :soft-light - Mix of :darkest and :lightest. Works like :overlay, - * but not as harsh. - * :dodge - Lightens light tones and increases contrast, ignores - * darks. - * Called "Color Dodge" in Illustrator and Photoshop. - * :burn - Darker areas are applied, increasing contrast, ignores - * lights. Called "Color Burn" in Illustrator and - * Photoshop. - */ -quil.core.blend = (function quil$core$blend(var_args){ -var G__1328 = arguments.length; -switch (G__1328) { -case 9: -return quil.core.blend.cljs$core$IFn$_invoke$arity$9((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)])); - -break; -case 10: -return quil.core.blend.cljs$core$IFn$_invoke$arity$10((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)]),(arguments[(9)])); - -break; -case 11: -return quil.core.blend.cljs$core$IFn$_invoke$arity$11((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)]),(arguments[(9)]),(arguments[(10)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.blend.cljs$core$IFn$_invoke$arity$9 = (function (x,y,width,height,dx,dy,dwidth,dheight,mode){ -return quil.core.blend.call(null,quil.core.current_graphics.call(null),quil.core.current_graphics.call(null),x,y,width,height,dx,dy,dwidth,dheight,mode); -}); - -quil.core.blend.cljs$core$IFn$_invoke$arity$10 = (function (src_img,x,y,width,height,dx,dy,dwidth,dheight,mode){ -return quil.core.blend.call(null,src_img,quil.core.current_graphics.call(null),x,y,width,height,dx,dy,dwidth,dheight,mode); -}); - -quil.core.blend.cljs$core$IFn$_invoke$arity$11 = (function (src_img,dest_img,x,y,width,height,dx,dy,dwidth,dheight,mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.blend_modes); -return dest_img.blend(src_img,(x | (0)),(y | (0)),(width | (0)),(height | (0)),(dx | (0)),(dy | (0)),(dwidth | (0)),(dheight | (0)),(mode__$1 | (0))); -}); - -quil.core.blend.cljs$lang$maxFixedArity = 11; - -/** - * Blends two color values together based on the blending mode given specified - * with the mode keyword. - * - * Available blend modes are: - * - * :blend - linear interpolation of colours: C = A*factor + B - * :add - additive blending with white clip: - * C = min(A*factor + B, 255) - * :subtract - subtractive blending with black clip: - * C = max(B - A*factor, 0) - * :darkest - only the darkest colour succeeds: - * C = min(A*factor, B) - * :lightest - only the lightest colour succeeds: - * C = max(A*factor, B) - * :difference - subtract colors from underlying image. - * :exclusion - similar to :difference, but less extreme. - * :multiply - Multiply the colors, result will always be darker. - * :screen - Opposite multiply, uses inverse values of the colors. - * :overlay - A mix of :multiply and :screen. Multiplies dark values - * and screens light values. - * :hard-light - :screen when greater than 50% gray, :multiply when - * lower. - * :soft-light - Mix of :darkest and :lightest. Works like :overlay, - * but not as harsh. - * :dodge - Lightens light tones and increases contrast, ignores - * darks. - * Called "Color Dodge" in Illustrator and Photoshop. - * :burn - Darker areas are applied, increasing contrast, ignores - * lights. Called "Color Burn" in Illustrator and - * Photoshop. - */ -quil.core.blend_color = (function quil$core$blend_color(c1,c2,mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.blend_modes); -return quil.core.current_graphics.call(null).blendColor(c1,c2,mode__$1); -}); -/** - * Extracts the blue value from a color, scaled to match current color-mode. - * Returns a float. - */ -quil.core.blue = (function quil$core$blue(color){ -return quil.core.current_graphics.call(null).blue(cljs.core.unchecked_int.call(null,color)); -}); -/** - * Creates an extruded rectangle. - */ -quil.core.box = (function quil$core$box(var_args){ -var G__1331 = arguments.length; -switch (G__1331) { -case 1: -return quil.core.box.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.box.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.box.cljs$core$IFn$_invoke$arity$1 = (function (size){ -return quil.core.current_graphics.call(null).box(size); -}); - -quil.core.box.cljs$core$IFn$_invoke$arity$3 = (function (width,height,depth){ -return quil.core.current_graphics.call(null).box(width,height,depth); -}); - -quil.core.box.cljs$lang$maxFixedArity = 3; - -/** - * Extracts the brightness value from a color. Returns a float. - */ -quil.core.brightness = (function quil$core$brightness(color){ -return quil.core.current_graphics.call(null).brightness(cljs.core.unchecked_int.call(null,color)); -}); -/** - * Sets the position of the camera through setting the eye position, - * the center of the scene, and which axis is facing upward. Moving the - * eye position and the direction it is pointing (the center of the - * scene) allows the images to be seen from different angles. The - * version without any parameters sets the camera to the default - * position, pointing to the center of the display window with the Y - * axis as up. The default values are: - * - * eyeX: (/ (width) 2.0) - * eyeY: (/ (height) 2.0) - * eyeZ: (/ (/ (height) 2.0) (tan (/ (* Math/PI 60.0) 360.0))) - * centerX: (/ (width) 2.0) - * centerY: (/ (height) 2.0) - * centerZ: 0 - * upX: 0 - * upY: 1 - * upZ: 0 - * - * Similar imilar to gluLookAt() in OpenGL, but it first clears the - * current camera settings. - */ -quil.core.camera = (function quil$core$camera(var_args){ -var G__1334 = arguments.length; -switch (G__1334) { -case 0: -return quil.core.camera.cljs$core$IFn$_invoke$arity$0(); - -break; -case 9: -return quil.core.camera.cljs$core$IFn$_invoke$arity$9((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.camera.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.current_graphics.call(null).camera(); -}); - -quil.core.camera.cljs$core$IFn$_invoke$arity$9 = (function (eyeX,eyeY,eyeZ,centerX,centerY,centerZ,upX,upY,upZ){ -return quil.core.current_graphics.call(null).camera(eyeX,eyeY,eyeZ,centerX,centerY,centerZ,upX,upY,upZ); -}); - -quil.core.camera.cljs$lang$maxFixedArity = 9; - -/** - * Calculates the closest int value that is greater than or equal to - * the value of the parameter. For example, (ceil 9.03) returns the - * value 10. - */ -quil.core.ceil = (function quil$core$ceil(n){ -return quil.sketch.current_applet.call(null).ceil(n); -}); -/** - * Creates an integer representation of a color The parameters are - * interpreted as RGB or HSB values depending on the current - * color-mode. The default mode is RGB values from 0 to 255 and - * therefore, the function call (color 255 204 0) will return a bright - * yellow. Args are cast to floats. - * - * r - red or hue value - * g - green or saturation value - * b - blue or brightness value - * a - alpha value - */ -quil.core.color = (function quil$core$color(var_args){ -var G__1337 = arguments.length; -switch (G__1337) { -case 1: -return quil.core.color.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.color.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.color.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.color.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.color.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -return quil.core.current_graphics.call(null).color(gray); -}); - -quil.core.color.cljs$core$IFn$_invoke$arity$2 = (function (gray,alpha){ -return quil.core.current_graphics.call(null).color(gray,alpha); -}); - -quil.core.color.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.current_graphics.call(null).color(r,g,b); -}); - -quil.core.color.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,a){ -return quil.core.current_graphics.call(null).color(r,g,b,a); -}); - -quil.core.color.cljs$lang$maxFixedArity = 4; - -/** - * Changes the way Processing interprets color data. Available modes - * are :rgb and :hsb.By default, the parameters for fill, stroke, - * background, and color are defined by values between 0 and 255 using - * the :rgb color model. The color-mode fn is used to change the - * numerical range used for specifying colors and to switch color - * systems. For example, calling - * (color-mode :rgb 1.0) will specify that values are specified between - * 0 and 1. The limits for defining colors are altered by setting the - * parameters range1, range2, range3, and range 4. - */ -quil.core.color_mode = (function quil$core$color_mode(var_args){ -var G__1340 = arguments.length; -switch (G__1340) { -case 1: -return quil.core.color_mode.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.color_mode.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 4: -return quil.core.color_mode.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 5: -return quil.core.color_mode.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.color_mode.cljs$core$IFn$_invoke$arity$1 = (function (mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.color_modes); -return quil.core.current_graphics.call(null).colorMode((mode__$1 | (0))); -}); - -quil.core.color_mode.cljs$core$IFn$_invoke$arity$2 = (function (mode,max){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.color_modes); -return quil.core.current_graphics.call(null).colorMode((mode__$1 | (0)),max); -}); - -quil.core.color_mode.cljs$core$IFn$_invoke$arity$4 = (function (mode,max_x,max_y,max_z){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.color_modes); -return quil.core.current_graphics.call(null).colorMode((mode__$1 | (0)),max_x,max_y,max_z); -}); - -quil.core.color_mode.cljs$core$IFn$_invoke$arity$5 = (function (mode,max_x,max_y,max_z,max_a){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.color_modes); -return quil.core.current_graphics.call(null).colorMode((mode__$1 | (0)),max_x,max_y,max_z,max_a); -}); - -quil.core.color_mode.cljs$lang$maxFixedArity = 5; - -/** - * Constrains a value to not exceed a maximum and minimum value. - */ -quil.core.constrain = (function quil$core$constrain(amt,low,high){ -return quil.sketch.current_applet.call(null).constrain(amt,low,high); -}); -/** - * Copies a region of pixels from the one image to another. If src-img - * is not specified it defaults to current-graphics. If dest-img is not - * specified - it defaults to current-graphics. If the source - * and destination regions aren't the same size, it will automatically - * resize the source pixels to fit the specified target region. No - * alpha information is used in the process, however if the source - * image has an alpha channel set, it will be copied as well. - */ -quil.core.copy = (function quil$core$copy(var_args){ -var G__1343 = arguments.length; -switch (G__1343) { -case 2: -return quil.core.copy.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.copy.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.copy.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.copy.cljs$core$IFn$_invoke$arity$2 = (function (p__1344,p__1345){ -var vec__1346 = p__1344; -var sx = cljs.core.nth.call(null,vec__1346,(0),null); -var sy = cljs.core.nth.call(null,vec__1346,(1),null); -var swidth = cljs.core.nth.call(null,vec__1346,(2),null); -var sheight = cljs.core.nth.call(null,vec__1346,(3),null); -var vec__1349 = p__1345; -var dx = cljs.core.nth.call(null,vec__1349,(0),null); -var dy = cljs.core.nth.call(null,vec__1349,(1),null); -var dwidth = cljs.core.nth.call(null,vec__1349,(2),null); -var dheight = cljs.core.nth.call(null,vec__1349,(3),null); -return quil.core.current_graphics.call(null).copy((sx | (0)),(sy | (0)),(swidth | (0)),(sheight | (0)),(dx | (0)),(dy | (0)),(dwidth | (0)),(dheight | (0))); -}); - -quil.core.copy.cljs$core$IFn$_invoke$arity$3 = (function (src_img,p__1352,p__1353){ -var vec__1354 = p__1352; -var sx = cljs.core.nth.call(null,vec__1354,(0),null); -var sy = cljs.core.nth.call(null,vec__1354,(1),null); -var swidth = cljs.core.nth.call(null,vec__1354,(2),null); -var sheight = cljs.core.nth.call(null,vec__1354,(3),null); -var vec__1357 = p__1353; -var dx = cljs.core.nth.call(null,vec__1357,(0),null); -var dy = cljs.core.nth.call(null,vec__1357,(1),null); -var dwidth = cljs.core.nth.call(null,vec__1357,(2),null); -var dheight = cljs.core.nth.call(null,vec__1357,(3),null); -return quil.core.copy.call(null,src_img,quil.core.current_graphics.call(null),new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [sx,sy,swidth,sheight], null),new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [dx,dy,dwidth,dheight], null)); -}); - -quil.core.copy.cljs$core$IFn$_invoke$arity$4 = (function (src_img,dest_img,p__1360,p__1361){ -var vec__1362 = p__1360; -var sx = cljs.core.nth.call(null,vec__1362,(0),null); -var sy = cljs.core.nth.call(null,vec__1362,(1),null); -var swidth = cljs.core.nth.call(null,vec__1362,(2),null); -var sheight = cljs.core.nth.call(null,vec__1362,(3),null); -var vec__1365 = p__1361; -var dx = cljs.core.nth.call(null,vec__1365,(0),null); -var dy = cljs.core.nth.call(null,vec__1365,(1),null); -var dwidth = cljs.core.nth.call(null,vec__1365,(2),null); -var dheight = cljs.core.nth.call(null,vec__1365,(3),null); -return dest_img.copy(src_img,(sx | (0)),(sy | (0)),(swidth | (0)),(sheight | (0)),(dx | (0)),(dy | (0)),(dwidth | (0)),(dheight | (0))); -}); - -quil.core.copy.cljs$lang$maxFixedArity = 4; - -/** - * Calculates the cosine of an angle. This function expects the values - * of the angle parameter to be provided in radians (values from 0 to - * Math/PI*2). Values are returned in the range -1 to 1. - */ -quil.core.cos = (function quil$core$cos(angle){ -return quil.sketch.current_applet.call(null).cos(angle); -}); -/** - * Dynamically converts a font to the format used by Processing (a - * PFont) from either a font name that's installed on the computer, or - * from a .ttf or .otf file inside the sketches 'data' folder. This - * function is an advanced feature for precise control. - * - * Use available-fonts to obtain the names for the fonts recognized by - * the computer and are compatible with this function. - * - * The size parameter states the font size you want to generate. The - * smooth parameter specifies if the font should be antialiased or not, - * and the charset parameter is an array of chars that specifies the - * characters to generate. - * - * This function creates a bitmapped version of a font It loads a font - * by name, and converts it to a series of images based on the size of - * the font. When possible, the text function will use a native font - * rather than the bitmapped version created behind the scenes with - * create-font. For instance, when using the default renderer - * setting (JAVA2D), the actual native version of the font will be - * employed by the sketch, improving drawing quality and - * performance. With the :p2d, :p3d, and :opengl renderer settings, the - * bitmapped version will be used. While this can drastically improve - * speed and appearance, results are poor when exporting if the sketch - * does not include the .otf or .ttf file, and the requested font is - * not available on the machine running the sketch. - */ -quil.core.create_font = (function quil$core$create_font(var_args){ -var G__1370 = arguments.length; -switch (G__1370) { -case 2: -return quil.core.create_font.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.create_font.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.create_font.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.create_font.cljs$core$IFn$_invoke$arity$2 = (function (name,size){ -return quil.sketch.current_applet.call(null).createFont(cljs.core.str.cljs$core$IFn$_invoke$arity$1(name),size); -}); - -quil.core.create_font.cljs$core$IFn$_invoke$arity$3 = (function (name,size,smooth){ -return quil.sketch.current_applet.call(null).createFont(cljs.core.str.cljs$core$IFn$_invoke$arity$1(name),size,smooth); -}); - -quil.core.create_font.cljs$core$IFn$_invoke$arity$4 = (function (name,size,smooth,charset){ -return quil.sketch.current_applet.call(null).createFont(cljs.core.str.cljs$core$IFn$_invoke$arity$1(name),size,smooth,charset); -}); - -quil.core.create_font.cljs$lang$maxFixedArity = 4; - -/** - * Creates and returns a new PGraphics object of the types :p2d, :p3d, - * :java2d, :pdf. By default :java2d is used. Use this class if you - * need to draw into an off-screen graphics buffer. It's not possible - * to use create-graphics with the :opengl renderer, because it doesn't - * allow offscreen use. The :pdf renderer requires the filename parameter. - * - * Note: don't use create-graphics in draw in clojurescript, it leaks memory. - * You should create graphic in setup and reuse it in draw instead of creating - * a new one. - * - * It's important to call any drawing commands between (.beginDraw graphics) and - * (.endDraw graphics) statements or use with-graphics macro. This is also true - * for any commands that affect drawing, such as smooth or color-mode. - * - * If you're using :pdf renderer - don't forget to call (.dispose graphics) - * as last command inside with-graphics macro, otherwise graphics won't be - * saved. - * - * Unlike the main drawing surface which is completely opaque, surfaces - * created with create-graphics can have transparency. This makes it - * possible to draw into a graphics and maintain the alpha channel. By - * using save to write a PNG or TGA file, the transparency of the - * graphics object will be honored. - */ -quil.core.create_graphics = (function quil$core$create_graphics(var_args){ -var G__1373 = arguments.length; -switch (G__1373) { -case 2: -return quil.core.create_graphics.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.create_graphics.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.create_graphics.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.create_graphics.cljs$core$IFn$_invoke$arity$2 = (function (w,h){ -return quil.sketch.current_applet.call(null).createGraphics((w | (0)),(h | (0)),new cljs.core.Keyword(null,"p2d","p2d",-2106175755)); -}); - -quil.core.create_graphics.cljs$core$IFn$_invoke$arity$3 = (function (w,h,renderer){ -return quil.sketch.current_applet.call(null).createGraphics((w | (0)),(h | (0)),quil.sketch.resolve_renderer.call(null,renderer)); -}); - -quil.core.create_graphics.cljs$core$IFn$_invoke$arity$4 = (function (w,h,renderer,path){ -return quil.sketch.current_applet.call(null).createGraphics((w | (0)),(h | (0)),quil.sketch.resolve_renderer.call(null,renderer),path); -}); - -quil.core.create_graphics.cljs$lang$maxFixedArity = 4; - -/** - * Creates a new PImage (the datatype for storing images). This - * provides a fresh buffer of pixels to play with. Set the size of the - * buffer with the width and height parameters. The format parameter - * defines how the pixels are stored. See the PImage reference for more - * information. - * - * Possible formats: :rgb, :argb, :alpha (grayscale alpha channel) - * - * Prefer using create-image over initialising new PImage instances - * directly. - */ -quil.core.create_image = (function quil$core$create_image(w,h,format){ -var format__$1 = quil.util.resolve_constant_key.call(null,format,quil.core.image_formats); -return quil.sketch.current_applet.call(null).createImage((w | (0)),(h | (0)),(format__$1 | (0))); -}); -/** - * Return the current fill color. - */ -quil.core.current_fill = (function quil$core$current_fill(){ -return quil.core.current_graphics.call(null).fillColor; -}); -/** - * Return the current stroke color. - */ -quil.core.current_stroke = (function quil$core$current_stroke(){ -return quil.core.current_graphics.call(null).strokeColor; -}); -/** - * Sets the cursor to a predefined symbol or makes it - * visible if already hidden (after no-cursor was called). - * - * Available modes: :arrow, :cross, :hand, :move, :text, :wait - * - * See cursor-image for specifying a generic image as the cursor - * symbol. - */ -quil.core.cursor = (function quil$core$cursor(var_args){ -var G__1376 = arguments.length; -switch (G__1376) { -case 0: -return quil.core.cursor.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.cursor.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.cursor.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.sketch.current_applet.call(null).cursor(); -}); - -quil.core.cursor.cljs$core$IFn$_invoke$arity$1 = (function (cursor_mode){ -var cursor_mode__$1 = quil.util.resolve_constant_key.call(null,cursor_mode,quil.core.cursor_modes); -return quil.sketch.current_applet.call(null).cursor(cljs.core.str.cljs$core$IFn$_invoke$arity$1(cursor_mode__$1)); -}); - -quil.core.cursor.cljs$lang$maxFixedArity = 1; - -/** - * Set the cursor to a predefined image. The horizontal and vertical - * active spots of the cursor may be specified with hx and hy. - * It is recommended to make the size 16x16 or 32x32 pixels. - */ -quil.core.cursor_image = (function quil$core$cursor_image(var_args){ -var G__1379 = arguments.length; -switch (G__1379) { -case 1: -return quil.core.cursor_image.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.cursor_image.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.cursor_image.cljs$core$IFn$_invoke$arity$1 = (function (img){ -return quil.sketch.current_applet.call(null).cursor(img); -}); - -quil.core.cursor_image.cljs$core$IFn$_invoke$arity$3 = (function (img,hx,hy){ -return quil.sketch.current_applet.call(null).cursor(img,(hx | (0)),(hy | (0))); -}); - -quil.core.cursor_image.cljs$lang$maxFixedArity = 3; - -/** - * Draws a curved line on the screen. The first and second parameters - * specify the beginning control point and the last two parameters - * specify the ending control point. The middle parameters specify the - * start and stop of the curve. Longer curves can be created by putting - * a series of curve fns together or using curve-vertex. An additional - * fn called curve-tightness provides control for the visual quality of - * the curve. The curve fn is an implementation of Catmull-Rom - * splines. - */ -quil.core.curve = (function quil$core$curve(var_args){ -var G__1382 = arguments.length; -switch (G__1382) { -case 8: -return quil.core.curve.cljs$core$IFn$_invoke$arity$8((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)])); - -break; -case 12: -return quil.core.curve.cljs$core$IFn$_invoke$arity$12((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)]),(arguments[(9)]),(arguments[(10)]),(arguments[(11)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.curve.cljs$core$IFn$_invoke$arity$8 = (function (x1,y1,x2,y2,x3,y3,x4,y4){ -return quil.core.current_graphics.call(null).curve(x1,y1,x2,y2,x3,y3,x4,y4); -}); - -quil.core.curve.cljs$core$IFn$_invoke$arity$12 = (function (x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4){ -return quil.core.current_graphics.call(null).curve(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4); -}); - -quil.core.curve.cljs$lang$maxFixedArity = 12; - -/** - * Sets the resolution at which curves display. The default value is - * 20. This function is only useful when using the :p3d or :opengl - * renderer as the default (:java2d) renderer does not use this - * information. - */ -quil.core.curve_detail = (function quil$core$curve_detail(detail){ -return quil.core.current_graphics.call(null).curveDetail((detail | (0))); -}); -/** - * Evalutes the curve at point t for points a, b, c, d. The parameter - * t varies between 0 and 1, a and d are points on the curve, and b c - * and are the control points. This can be done once with the x - * coordinates and a second time with the y coordinates to get the - * location of a curve at t. - */ -quil.core.curve_point = (function quil$core$curve_point(a,b,c,d,t){ -return quil.core.current_graphics.call(null).curvePoint(a,b,c,d,t); -}); -/** - * Calculates the tangent of a point on a curve. - * See: http://en.wikipedia.org/wiki/Tangent - */ -quil.core.curve_tangent = (function quil$core$curve_tangent(a,b,c,d,t){ -return quil.core.current_graphics.call(null).curveTangent(a,b,c,d,t); -}); -/** - * Modifies the quality of forms created with curve and - * curve-vertex. The parameter squishy determines how the curve fits - * to the vertex points. The value 0.0 is the default value for - * squishy (this value defines the curves to be Catmull-Rom splines) - * and the value 1.0 connects all the points with straight - * lines. Values within the range -5.0 and 5.0 will deform the curves - * but will leave them recognizable and as values increase in - * magnitude, they will continue to deform. - */ -quil.core.curve_tightness = (function quil$core$curve_tightness(ti){ -return quil.core.current_graphics.call(null).curveTightness(ti); -}); -/** - * Specifies vertex coordinates for curves. This function may only be - * used between begin-shape and end-shape and only when there is no - * mode keyword specified to begin-shape. The first and last points in a - * series of curve-vertex lines will be used to guide the beginning and - * end of a the curve. A minimum of four points is required to draw a - * tiny curve between the second and third points. Adding a fifth point - * with curve-vertex will draw the curve between the second, third, and - * fourth points. The curve-vertex function is an implementation of - * Catmull-Rom splines. - */ -quil.core.curve_vertex = (function quil$core$curve_vertex(var_args){ -var G__1385 = arguments.length; -switch (G__1385) { -case 2: -return quil.core.curve_vertex.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.curve_vertex.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.curve_vertex.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.core.current_graphics.call(null).curveVertex(x,y); -}); - -quil.core.curve_vertex.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).curveVertex(x,y,z); -}); - -quil.core.curve_vertex.cljs$lang$maxFixedArity = 3; - -/** - * Get the current day of the month (1 through 31). - */ -quil.core.day = (function quil$core$day(){ -return quil.sketch.current_applet.call(null).day(); -}); -/** - * Converts a radian measurement to its corresponding value in - * degrees. Radians and degrees are two ways of measuring the same - * thing. There are 360 degrees in a circle and (* 2 Math/PI) radians - * in a circle. For example, (= 90° (/ Math/PI 2) 1.5707964). All - * trigonometric methods in Processing require their parameters to be - * specified in radians. - */ -quil.core.degrees = (function quil$core$degrees(radians){ -return quil.sketch.current_applet.call(null).degrees(radians); -}); -/** - * Forces the program to stop running for a specified time. Delay - * times are specified in thousandths of a second, therefore the - * function call (delay 3000) will stop the program for three - * seconds. Because the screen is updated only at the end of draw, - * the program may appear to 'freeze', because the screen will not - * update when the delay fn is used. This function has no affect - * inside setup. - */ -quil.core.delay_frame = (function quil$core$delay_frame(freeze_ms){ -return quil.sketch.current_applet.call(null).delay((freeze_ms | (0))); -}); -/** - * Adds a directional light. Directional light comes from one - * direction and is stronger when hitting a surface squarely and weaker - * if it hits at a gentle angle. After hitting a surface, a - * directional lights scatters in all directions. Lights need to be - * included in the draw fn to remain persistent in a looping - * program. Placing them in the setup fn of a looping program will cause - * them to only have an effect the first time through the loop. The - * affect of the r, g, and b parameters is determined by the current - * color mode. The nx, ny, and nz parameters specify the direction the - * light is facing. For example, setting ny to -1 will cause the - * geometry to be lit from below (the light is facing directly upward) - */ -quil.core.directional_light = (function quil$core$directional_light(r,g,b,nx,ny,nz){ -return quil.core.current_graphics.call(null).directionalLight(r,g,b,nx,ny,nz); -}); -/** - * Calculates the distance between two points - */ -quil.core.dist = (function quil$core$dist(var_args){ -var G__1388 = arguments.length; -switch (G__1388) { -case 4: -return quil.core.dist.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 6: -return quil.core.dist.cljs$core$IFn$_invoke$arity$6((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.dist.cljs$core$IFn$_invoke$arity$4 = (function (x1,y1,x2,y2){ -return quil.sketch.current_applet.call(null).dist(x1,y1,x2,y2); -}); - -quil.core.dist.cljs$core$IFn$_invoke$arity$6 = (function (x1,y1,z1,x2,y2,z2){ -return quil.sketch.current_applet.call(null).dist(x1,y1,z1,x2,y2,z2); -}); - -quil.core.dist.cljs$lang$maxFixedArity = 6; - -var ret__4684__auto___1395 = (function (){ -/** - * Macro for drawing on graphics which saves result in the file at the end. - * Similar to 'with-graphics' macro. do-record assumed to be used with :pdf - * graphics. Example: - * - * (q/do-record (q/create-graphics 200 200 :pdf "output.pdf") - * (q/fill 250 0 0) - * (q/ellipse 100 100 150 150)) - * - */ -quil.core.do_record = (function quil$core$do_record(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1396 = arguments.length; -var i__4642__auto___1397 = (0); -while(true){ -if((i__4642__auto___1397 < len__4641__auto___1396)){ -args__4647__auto__.push((arguments[i__4642__auto___1397])); - -var G__1398 = (i__4642__auto___1397 + (1)); -i__4642__auto___1397 = G__1398; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.do_record.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.do_record.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,graphics,body){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","let","cljs.core/let",-308701135,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1390__auto__","gr__1390__auto__",907895732,null),null,(1),null)),(new cljs.core.List(null,graphics,null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","with-graphics","quil.core/with-graphics",481277883,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1390__auto__","gr__1390__auto__",907895732,null),null,(1),null)),body))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,".dispose",".dispose",-1697594101,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1390__auto__","gr__1390__auto__",907895732,null),null,(1),null))))),null,(1),null))))); -}); - -quil.core.do_record.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.do_record.cljs$lang$applyTo = (function (seq1391){ -var G__1392 = cljs.core.first.call(null,seq1391); -var seq1391__$1 = cljs.core.next.call(null,seq1391); -var G__1393 = cljs.core.first.call(null,seq1391__$1); -var seq1391__$2 = cljs.core.next.call(null,seq1391__$1); -var G__1394 = cljs.core.first.call(null,seq1391__$2); -var seq1391__$3 = cljs.core.next.call(null,seq1391__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1392,G__1393,G__1394,seq1391__$3); -}); - -return null; -})() -; -quil.core.do_record.cljs$lang$macro = true; - -/** - * Draws an ellipse (oval) in the display window. An ellipse with an - * equal width and height is a circle. The origin may be changed with - * the ellipse-mode function - */ -quil.core.ellipse = (function quil$core$ellipse(x,y,width,height){ -return quil.core.current_graphics.call(null).ellipse(x,y,width,height); -}); -/** - * Modifies the origin of the ellispse according to the specified mode: - * - * :center - specifies the location of the ellipse as - * the center of the shape. (Default). - * :radius - similar to center, but the width and height parameters to - * ellipse specify the radius of the ellipse, rather than the - * diameter. - * :corner - draws the shape from the upper-left corner of its bounding - * box. - * :corners - uses the four parameters to ellipse to set two opposing - * corners of the ellipse's bounding box. - */ -quil.core.ellipse_mode = (function quil$core$ellipse_mode(mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.ellipse_modes); -return quil.core.current_graphics.call(null).ellipseMode((mode__$1 | (0))); -}); -/** - * Sets the emissive color of the material used for drawing shapes - * drawn to the screen. Used in combination with ambient, specular, and - * shininess in setting the material properties of shapes. Converts all - * args to floats - */ -quil.core.emissive_float = (function quil$core$emissive_float(var_args){ -var G__1400 = arguments.length; -switch (G__1400) { -case 1: -return quil.core.emissive_float.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.emissive_float.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.emissive_float.cljs$core$IFn$_invoke$arity$1 = (function (float_val){ -return quil.core.current_graphics.call(null).emissive(float_val); -}); - -quil.core.emissive_float.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.current_graphics.call(null).emissive(r,g,b); -}); - -quil.core.emissive_float.cljs$lang$maxFixedArity = 3; - -/** - * Sets the emissive color of the material used for drawing shapes - * drawn to the screen. Used in combination with ambient, specular, and - * shininess in setting the material properties of shapes. Converts all - * args to ints - */ -quil.core.emissive_int = (function quil$core$emissive_int(int_val){ -return quil.core.current_graphics.call(null).emissive((int_val | (0))); -}); -/** - * Sets the emissive color of the material used for drawing shapes - * drawn to the screen. Used in combination with ambient, specular, and - * shininess in setting the material properties of shapes. - * - * If passed one arg - it is assumed to be an int (i.e. a color), - * multiple args are converted to floats. - */ -quil.core.emissive = (function quil$core$emissive(var_args){ -var G__1403 = arguments.length; -switch (G__1403) { -case 1: -return quil.core.emissive.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.emissive.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.emissive.cljs$core$IFn$_invoke$arity$1 = (function (c){ -return quil.core.emissive_float.call(null,c); -}); - -quil.core.emissive.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.emissive_float.call(null,r,g,b); -}); - -quil.core.emissive.cljs$lang$maxFixedArity = 3; - -/** - * Unsets the matrix mode from the camera matrix. See begin-camera. - */ -quil.core.end_camera = (function quil$core$end_camera(){ -return quil.core.current_graphics.call(null).endCamera(); -}); -/** - * Use the begin-contour and end-contour function to create negative - * shapes within shapes. These functions can only be within a - * begin-shape/end-shape pair and they only work with the :p2d and :p3d - * renderers. - */ -quil.core.end_contour = (function quil$core$end_contour(){ -return quil.core.current_graphics.call(null).endContour(); -}); -/** - * Complement to begin-raw; they must always be used together. See - * the begin-raw docstring for details. - */ -quil.core.end_raw = (function quil$core$end_raw(){ -return quil.core.current_graphics.call(null).endRaw(); -}); -/** - * May only be called after begin-shape. When end-shape is called, - * all of image data defined since the previous call to begin-shape is - * written into the image buffer. The keyword :close may be passed to - * close the shape (to connect the beginning and the end). - */ -quil.core.end_shape = (function quil$core$end_shape(var_args){ -var G__1406 = arguments.length; -switch (G__1406) { -case 0: -return quil.core.end_shape.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.end_shape.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.end_shape.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.current_graphics.call(null).endShape(); -}); - -quil.core.end_shape.cljs$core$IFn$_invoke$arity$1 = (function (mode){ -if(cljs.core._EQ_.call(null,new cljs.core.Keyword(null,"close","close",1835149582),mode)){ -} else { -} - -return quil.core.current_graphics.call(null).endShape((2)); -}); - -quil.core.end_shape.cljs$lang$maxFixedArity = 1; - -/** - * Quits/stops/exits the program. Rather than terminating - * immediately, exit will cause the sketch to exit after draw has - * completed (or after setup completes if called during the setup - * method). - */ -quil.core.exit = (function quil$core$exit(){ -return quil.sketch.current_applet.call(null).exit(); -}); -/** - * Returns Euler's number e (2.71828...) raised to the power of the - * value parameter. - */ -quil.core.exp = (function quil$core$exp(val){ -return quil.sketch.current_applet.call(null).exp(val); -}); -/** - * Sets custom property on graphcs object indicating that it has - * fill color. - */ -quil.core.clear_no_fill_cljs = (function quil$core$clear_no_fill_cljs(graphics){ -return (graphics[quil.core.no_fill_prop] = false); -}); -/** - * Sets the color used to fill shapes. For example, (fill 204 102 0), - * will specify that all subsequent shapes will be filled with orange. - */ -quil.core.fill_float = (function quil$core$fill_float(var_args){ -var G__1409 = arguments.length; -switch (G__1409) { -case 1: -return quil.core.fill_float.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.fill_float.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.fill_float.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.fill_float.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.fill_float.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -quil.core.current_graphics.call(null).fill(gray); - -return quil.core.clear_no_fill_cljs.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.fill_float.cljs$core$IFn$_invoke$arity$2 = (function (gray,alpha){ -quil.core.current_graphics.call(null).fill(gray,alpha); - -return quil.core.clear_no_fill_cljs.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.fill_float.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -quil.core.current_graphics.call(null).fill(r,g,b); - -return quil.core.clear_no_fill_cljs.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.fill_float.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,alpha){ -quil.core.current_graphics.call(null).fill(r,g,b,alpha); - -return quil.core.clear_no_fill_cljs.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.fill_float.cljs$lang$maxFixedArity = 4; - -/** - * Sets the color used to fill shapes. - */ -quil.core.fill_int = (function quil$core$fill_int(var_args){ -var G__1412 = arguments.length; -switch (G__1412) { -case 1: -return quil.core.fill_int.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.fill_int.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.fill_int.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -quil.core.current_graphics.call(null).fill(cljs.core.unchecked_int.call(null,rgb)); - -return quil.core.clear_no_fill_cljs.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.fill_int.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -quil.core.current_graphics.call(null).fill(cljs.core.unchecked_int.call(null,rgb),alpha); - -return quil.core.clear_no_fill_cljs.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.fill_int.cljs$lang$maxFixedArity = 2; - -/** - * Sets the color used to fill shapes. - */ -quil.core.fill = (function quil$core$fill(var_args){ -var G__1415 = arguments.length; -switch (G__1415) { -case 1: -return quil.core.fill.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.fill.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.fill.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.fill.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.fill.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.fill_float.call(null,rgb); -}); - -quil.core.fill.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.fill_float.call(null,rgb,alpha); -}); - -quil.core.fill.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.fill_float.call(null,r,g,b); -}); - -quil.core.fill.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,a){ -return quil.core.fill_float.call(null,r,g,b,a); -}); - -quil.core.fill.cljs$lang$maxFixedArity = 4; - -/** - * Originally named filter in Processing Language. - * Filters the display window with the specified mode and level. - * Level defines the quality of the filter and mode may be one of the - * following keywords: - * - * :threshold - converts the image to black and white pixels depending - * if they are above or below the threshold defined by - * the level parameter. The level must be between - * 0.0 (black) and 1.0 (white). If no level is specified, - * 0.5 is used. - * :gray - converts any colors in the image to grayscale - * equivalents. Doesn't work with level. - * :invert - sets each pixel to its inverse value. Doesn't work with - * level. - * :posterize - limits each channel of the image to the number of - * colors specified as the level parameter. The parameter can - * be set to values between 2 and 255, but results are most - * noticeable in the lower ranges. - * :blur - executes a Guassian blur with the level parameter - * specifying the extent of the blurring. If no level - * parameter is used, the blur is equivalent to Guassian - * blur of radius 1. - * :opaque - sets the alpha channel to entirely opaque. Doesn't work - * with level. - * :erode - reduces the light areas. Doesn't work with level. - * :dilate - increases the light areas. Doesn't work with level. - */ -quil.core.display_filter = (function quil$core$display_filter(var_args){ -var G__1418 = arguments.length; -switch (G__1418) { -case 1: -return quil.core.display_filter.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.display_filter.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.display_filter.cljs$core$IFn$_invoke$arity$1 = (function (mode){ -return quil.core.current_graphics.call(null).filter((quil.util.resolve_constant_key.call(null,mode,quil.core.filter_modes) | (0))); -}); - -quil.core.display_filter.cljs$core$IFn$_invoke$arity$2 = (function (mode,level){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.filter_modes); -return quil.core.current_graphics.call(null).filter((mode__$1 | (0)),level); -}); - -quil.core.display_filter.cljs$lang$maxFixedArity = 2; - -/** - * Calculates the closest int value that is less than or equal to the - * value of the parameter. For example, (floor 9.03) returns the value 9. - */ -quil.core.floor = (function quil$core$floor(n){ -return quil.sketch.current_applet.call(null).floor(n); -}); -/** - * Returns a boolean value representing whether the applet has focus. - */ -quil.core.focused = (function quil$core$focused(){ -return quil.sketch.current_applet.call(null).focused; -}); -/** - * The system variable frameCount contains the number of frames - * displayed since the program started. Inside setup() the value is 0 - * and after the first iteration of draw it is 1, etc. - */ -quil.core.frame_count = (function quil$core$frame_count(){ -return quil.sketch.current_applet.call(null).frameCount; -}); -/** - * Returns the current framerate - */ -quil.core.current_frame_rate = (function quil$core$current_frame_rate(){ -return quil.sketch.current_applet.call(null).__frameRate; -}); -/** - * Specifies a new target framerate (number of frames to be displayed every - * second). If the processor is not fast enough to maintain the - * specified rate, it will not be achieved. For example, the function - * call (frame-rate 30) will attempt to refresh 30 times a second. It - * is recommended to set the frame rate within setup. The default rate - * is 60 frames per second. - */ -quil.core.frame_rate = (function quil$core$frame_rate(new_rate){ -cljs.core.reset_BANG_.call(null,quil.sketch.current_applet.call(null).target_frame_rate,new_rate); - -return quil.sketch.current_applet.call(null).frameRate(new_rate); -}); -/** - * Sets a perspective matrix defined through the parameters. Works - * like glFrustum, except it wipes out the current perspective matrix - * rather than muliplying itself with it. - */ -quil.core.frustum = (function quil$core$frustum(left,right,bottom,top,near,far){ -return quil.core.current_graphics.call(null).frustum(left,right,bottom,top,near,far); -}); -/** - * Reads the color of any pixel or grabs a section of an image. If no - * parameters are specified, a copy of entire image is returned. Get the - * value of one pixel by specifying an x,y coordinate. Get a section of - * the image by specifying an additional width and height parameter. - * If the pixel requested is outside of the image window, black is returned. - * The numbers returned are scaled according to the current color ranges, - * but only RGB values are returned by this function. For example, even though - * you may have drawn a shape with (color-mode :hsb), the numbers returned - * will be in RGB. - * - * Getting the color of a single pixel with (get x y) is easy, but not - * as fast as grabbing the data directly using the pixels fn. - * - * If no img specified - current-graphics is used. - */ -quil.core.get_pixel = (function quil$core$get_pixel(var_args){ -var G__1421 = arguments.length; -switch (G__1421) { -case 0: -return quil.core.get_pixel.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.get_pixel.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.get_pixel.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.get_pixel.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.get_pixel.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 5: -return quil.core.get_pixel.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.get_pixel.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.get_pixel.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.get_pixel.cljs$core$IFn$_invoke$arity$1 = (function (img){ -return img.get(); -}); - -quil.core.get_pixel.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.core.get_pixel.call(null,quil.core.current_graphics.call(null),x,y); -}); - -quil.core.get_pixel.cljs$core$IFn$_invoke$arity$3 = (function (img,x,y){ -return img.get((x | (0)),(y | (0))); -}); - -quil.core.get_pixel.cljs$core$IFn$_invoke$arity$4 = (function (x,y,w,h){ -return quil.core.get_pixel.call(null,quil.core.current_graphics.call(null),x,y,w,h); -}); - -quil.core.get_pixel.cljs$core$IFn$_invoke$arity$5 = (function (img,x,y,w,h){ -return img.get((x | (0)),(y | (0)),(w | (0)),(h | (0))); -}); - -quil.core.get_pixel.cljs$lang$maxFixedArity = 5; - -/** - * Extracts the green value from a color, scaled to match current - * color-mode. This value is always returned as a float so be careful - * not to assign it to an int value. - */ -quil.core.green = (function quil$core$green(col){ -return quil.core.current_graphics.call(null).green(cljs.core.unchecked_int.call(null,col)); -}); -/** - * Converts a byte, char, int, or color to a String containing the - * equivalent hexadecimal notation. For example color(0, 102, 153) will - * convert to the String "FF006699". This function can help make your - * geeky debugging sessions much happier. - */ -quil.core.hex = (function quil$core$hex(var_args){ -var G__1424 = arguments.length; -switch (G__1424) { -case 1: -return quil.core.hex.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.hex.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.hex.cljs$core$IFn$_invoke$arity$1 = (function (val){ -return quil.sketch.current_applet.call(null).hex(val); -}); - -quil.core.hex.cljs$core$IFn$_invoke$arity$2 = (function (val,num_digits){ -return quil.sketch.current_applet.call(null).hex(val,num_digits); -}); - -quil.core.hex.cljs$lang$maxFixedArity = 2; - -/** - * Height of the display window. The value of height is zero until - * size is called. - */ -quil.core.height = (function quil$core$height(){ -return quil.sketch.current_applet.call(null).height; -}); -/** - * Set various hints and hacks for the renderer. This is used to - * handle obscure rendering features that cannot be implemented in a - * consistent manner across renderers. Many options will often graduate - * to standard features instead of hints over time. - * - * Options: - * - * :enable-native-fonts - Use the native version fonts when they are - * installed, rather than the bitmapped version from a .vlw - * file. This is useful with the default (or JAVA2D) renderer - * setting, as it will improve font rendering speed. This is not - * enabled by default, because it can be misleading while testing - * because the type will look great on your machine (because you have - * the font installed) but lousy on others' machines if the identical - * font is unavailable. This option can only be set per-sketch, and - * must be called before any use of text-font. - * - * :disable-native-fonts - Disables native font support. - * - * :disable-depth-test - Disable the zbuffer, allowing you to draw on - * top of everything at will. When depth testing is disabled, items - * will be drawn to the screen sequentially, like a painting. This - * hint is most often used to draw in 3D, then draw in 2D on top of - * it (for instance, to draw GUI controls in 2D on top of a 3D - * interface). Starting in release 0149, this will also clear the - * depth buffer. Restore the default with :enable-depth-test - * but note that with the depth buffer cleared, any 3D drawing that - * happens later in draw will ignore existing shapes on the screen. - * - * :enable-depth-test - Enables the zbuffer. - * - * :enable-depth-sort - Enable primitive z-sorting of triangles and - * lines in :p3d and :opengl rendering modes. This can slow - * performance considerably, and the algorithm is not yet perfect. - * - * :disable-depth-sort - Disables hint :enable-depth-sort - * - * :disable-opengl-errors - Speeds up the OPENGL renderer setting - * by not checking for errors while running. - * - * :enable-opengl-errors - Turns on OpenGL error checking - * - * :enable-depth-mask - * :disable-depth-mask - * - * :enable-optimized-stroke - * :disable-optimized-stroke - * :enable-retina-pixels - * :disable-retina-pixels - * :enable-stroke-perspective - * :disable-stroke-perspective - * :enable-stroke-pure - * :disable-stroke-pure - * :enable-texture-mipmaps - * :disable-texture-mipmaps - */ -quil.core.hint = (function quil$core$hint(hint_type){ -var hint_type__$1 = (((hint_type instanceof cljs.core.Keyword))?cljs.core.get.call(null,quil.core.hint_options,hint_type):hint_type); -return quil.core.current_graphics.call(null).hint((hint_type__$1 | (0))); -}); -/** - * Returns the current hour as a value from 0 - 23. - */ -quil.core.hour = (function quil$core$hour(){ -return quil.sketch.current_applet.call(null).hour(); -}); -/** - * Extracts the hue value from a color. - */ -quil.core.hue = (function quil$core$hue(col){ -return quil.core.current_graphics.call(null).hue(cljs.core.unchecked_int.call(null,col)); -}); -/** - * Displays images to the screen. Processing currently works with GIF, - * JPEG, and Targa images. The color of an image may be modified with - * the tint function and if a GIF has transparency, it will maintain - * its transparency. The img parameter specifies the image to display - * and the x and y parameters define the location of the image from its - * upper-left corner. The image is displayed at its original size - * unless the width and height parameters specify a different size. The - * image-mode fn changes the way the parameters work. A call to - * (image-mode :corners) will change the width and height parameters to - * define the x and y values of the opposite corner of the image. - * - * Starting with release 0124, when using the default (JAVA2D) - * renderer, smooth will also improve image quality of resized - * images. - */ -quil.core.image = (function quil$core$image(var_args){ -var G__1427 = arguments.length; -switch (G__1427) { -case 3: -return quil.core.image.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 5: -return quil.core.image.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.image.cljs$core$IFn$_invoke$arity$3 = (function (img,x,y){ -return quil.core.current_graphics.call(null).image(img,x,y); -}); - -quil.core.image.cljs$core$IFn$_invoke$arity$5 = (function (img,x,y,c,d){ -return quil.core.current_graphics.call(null).image(img,x,y,c,d); -}); - -quil.core.image.cljs$lang$maxFixedArity = 5; - -/** - * Originally named filter in Processing Language. - * Filters given image with the specified mode and level. - * Level defines the quality of the filter and mode may be one of - * the following keywords: - * - * :threshold - converts the image to black and white pixels depending - * if they are above or below the threshold defined by - * the level parameter. The level must be between - * 0.0 (black) and 1.0 (white). If no level is specified, - * 0.5 is used. - * :gray - converts any colors in the image to grayscale - * equivalents. Doesn't work with level. - * :invert - sets each pixel to its inverse value. Doesn't work with - * level. - * :posterize - limits each channel of the image to the number of - * colors specified as the level parameter. The parameter can - * be set to values between 2 and 255, but results are most - * noticeable in the lower ranges. - * :blur - executes a Guassian blur with the level parameter - * specifying the extent of the blurring. If no level - * parameter is used, the blur is equivalent to Guassian - * blur of radius 1. - * :opaque - sets the alpha channel to entirely opaque. Doesn't work - * with level. - * :erode - reduces the light areas. Doesn't work with level. - * :dilate - increases the light areas. Doesn't work with level. - */ -quil.core.image_filter = (function quil$core$image_filter(var_args){ -var G__1430 = arguments.length; -switch (G__1430) { -case 2: -return quil.core.image_filter.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.image_filter.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.image_filter.cljs$core$IFn$_invoke$arity$2 = (function (img,mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.filter_modes); -return img.filter((mode__$1 | (0))); -}); - -quil.core.image_filter.cljs$core$IFn$_invoke$arity$3 = (function (img,mode,level){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.filter_modes); -return img.filter((mode__$1 | (0)),level); -}); - -quil.core.image_filter.cljs$lang$maxFixedArity = 3; - -/** - * Modifies the location from which images draw. The default mode is :corner. - * Available modes are: - * - * :corner - specifies the location to be the upper left corner and - * uses the fourth and fifth parameters of image to set the - * image's width and height. - * - * :corners - uses the second and third parameters of image to set the - * location of one corner of the image and uses the fourth - * and fifth parameters to set the opposite corner. - * - * :center - draw images centered at the given x and y position. - */ -quil.core.image_mode = (function quil$core$image_mode(mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.image_modes); -return quil.core.current_graphics.call(null).imageMode((mode__$1 | (0))); -}); -/** - * The variable keyCode is used to detect special keys such as the UP, - * DOWN, LEFT, RIGHT arrow keys and ALT, CONTROL, SHIFT. When checking - * for these keys, it's first necessary to check and see if the key is - * coded. This is done with the conditional (= (key) CODED). - * - * The keys included in the ASCII specification (BACKSPACE, TAB, ENTER, - * RETURN, ESC, and DELETE) do not require checking to see if they key - * is coded, and you should simply use the key variable instead of - * key-code If you're making cross-platform projects, note that the - * ENTER key is commonly used on PCs and Unix and the RETURN key is - * used instead on Macintosh. Check for both ENTER and RETURN to make - * sure your program will work for all platforms. - * - * For users familiar with Java, the values for UP and DOWN are simply - * shorter versions of Java's KeyEvent.VK_UP and - * KeyEvent.VK_DOWN. Other keyCode values can be found in the Java - * KeyEvent reference. - */ -quil.core.key_code = (function quil$core$key_code(){ -return quil.sketch.current_applet.call(null).keyCode; -}); -/** - * true if any key is currently pressed, false otherwise. - */ -quil.core.key_pressed_QMARK_ = (function quil$core$key_pressed_QMARK_(){ -return quil.sketch.current_applet.call(null).__keyPressed; -}); -/** - * Sets the falloff rates for point lights, spot lights, and ambient - * lights. The parameters are used to determine the falloff with the - * following equation: - * - * d = distance from light position to vertex position - * falloff = 1 / (CONSTANT + d * LINEAR + (d*d) * QUADRATIC) - * - * Like fill, it affects only the elements which are created after it - * in the code. The default value is (light-falloff 1.0 0.0 0.0). - * Thinking about an ambient light with a falloff can be tricky. It is - * used, for example, if you wanted a region of your scene to be lit - * ambiently one color and another region to be lit ambiently by - * another color, you would use an ambient light with location and - * falloff. You can think of it as a point light that doesn't care - * which direction a surface is facing. - */ -quil.core.light_falloff = (function quil$core$light_falloff(constant,linear,quadratic){ -return quil.core.current_graphics.call(null).lightFalloff(constant,linear,quadratic); -}); -/** - * Calculates a color or colors between two color at a specific - * increment. The amt parameter is the amount to interpolate between - * the two values where 0.0 equal to the first point, 0.1 is very near - * the first point, 0.5 is half-way in between, etc. - */ -quil.core.lerp_color = (function quil$core$lerp_color(c1,c2,amt){ -return quil.core.current_graphics.call(null).lerpColor(cljs.core.unchecked_int.call(null,c1),cljs.core.unchecked_int.call(null,c2),amt); -}); -/** - * Calculates a number between two numbers at a specific - * increment. The amt parameter is the amount to interpolate between - * the two values where 0.0 equal to the first point, 0.1 is very near - * the first point, 0.5 is half-way in between, etc. The lerp function - * is convenient for creating motion along a straight path and for - * drawing dotted lines. - */ -quil.core.lerp = (function quil$core$lerp(start,stop,amt){ -return quil.sketch.current_applet.call(null).lerp(start,stop,amt); -}); -/** - * Sets the default ambient light, directional light, falloff, and - * specular values. The defaults are: - * - * (ambient-light 128 128 128) - * (directional-light 128 128 128 0 0 -1) - * (light-falloff 1 0 0) - * (light-specular 0 0 0). - * - * Lights need to be included in the draw to remain persistent in a - * looping program. Placing them in the setup of a looping program - * will cause them to only have an effect the first time through the - * loop. - */ -quil.core.lights = (function quil$core$lights(){ -return quil.core.current_graphics.call(null).lights(); -}); -/** - * Sets the specular color for lights. Like fill, it affects only the - * elements which are created after it in the code. Specular refers to - * light which bounces off a surface in a perferred direction (rather - * than bouncing in all directions like a diffuse light) and is used - * for creating highlights. The specular quality of a light interacts - * with the specular material qualities set through the specular and - * shininess functions. - */ -quil.core.light_specular = (function quil$core$light_specular(r,g,b){ -return quil.core.current_graphics.call(null).lightSpecular(r,g,b); -}); -/** - * Draws a line (a direct path between two points) to the screen. The - * version of line with four parameters draws the line in 2D. To color - * a line, use the stroke function. A line cannot be filled, therefore - * the fill method will not affect the color of a line. 2D lines are - * drawn with a width of one pixel by default, but this can be changed - * with the stroke-weight function. The version with six parameters - * allows the line to be placed anywhere within XYZ space. - */ -quil.core.line = (function quil$core$line(var_args){ -var G__1433 = arguments.length; -switch (G__1433) { -case 2: -return quil.core.line.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 4: -return quil.core.line.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 6: -return quil.core.line.cljs$core$IFn$_invoke$arity$6((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.line.cljs$core$IFn$_invoke$arity$2 = (function (p1,p2){ -return cljs.core.apply.call(null,quil.core.line,cljs.core.concat.call(null,p1,p2)); -}); - -quil.core.line.cljs$core$IFn$_invoke$arity$4 = (function (x1,y1,x2,y2){ -return quil.core.current_graphics.call(null).line(x1,y1,x2,y2); -}); - -quil.core.line.cljs$core$IFn$_invoke$arity$6 = (function (x1,y1,z1,x2,y2,z2){ -return quil.core.current_graphics.call(null).line(x1,y1,z1,x2,y2,z2); -}); - -quil.core.line.cljs$lang$maxFixedArity = 6; - -/** - * Loads a font into a variable of type PFont. To load correctly, - * fonts must be located in the data directory of the current sketch. - * To create a font to use with Processing use the create-font fn. - * - * Like load-image and other methods that load data, the load-font fn - * should not be used inside draw, because it will slow down the sketch - * considerably, as the font will be re-loaded from the disk (or - * network) on each frame. - * - * For most renderers, Processing displays fonts using the .vlw font - * format, which uses images for each letter, rather than defining them - * through vector data. When hint :enable-native-fonts is used with the - * JAVA2D renderer, the native version of a font will be used if it is - * installed on the user's machine. - * - * Using create-font (instead of load-font) enables vector data to be - * used with the JAVA2D (default) renderer setting. This can be helpful - * when many font sizes are needed, or when using any renderer based on - * JAVA2D, such as the PDF library. - */ -quil.core.load_font = (function quil$core$load_font(filename){ -return quil.sketch.current_applet.call(null).loadFont(cljs.core.str.cljs$core$IFn$_invoke$arity$1(filename)); -}); -/** - * Loads an image into a variable of type PImage. Four types of - * images ( .gif, .jpg, .tga, .png) images may be loaded. To load - * correctly, images must be located in the data directory of the - * current sketch. In most cases, load all images in setup to preload - * them at the start of the program. Loading images inside draw will - * reduce the speed of a program. - * - * The filename parameter can also be a URL to a file found online. - * - * If an image is not loaded successfully, the null value is returned - * and an error message will be printed to the console. The error - * message does not halt the program, however the null value may cause - * a NullPointerException if your code does not check whether the value - * returned from load-image is nil. - * - * Depending on the type of error, a PImage object may still be - * returned, but the width and height of the image will be set to - * -1. This happens if bad image data is returned or cannot be decoded - * properly. Sometimes this happens with image URLs that produce a 403 - * error or that redirect to a password prompt, because load-image - * will attempt to interpret the HTML as image data. - */ -quil.core.load_image = (function quil$core$load_image(filename){ -return quil.sketch.current_applet.call(null).loadImage(cljs.core.str.cljs$core$IFn$_invoke$arity$1(filename)); -}); -/** - * Loads a shader into the PShader object. Shaders are compatible with the - * P2D and P3D renderers, but not with the default renderer. - */ -quil.core.load_shader = (function quil$core$load_shader(var_args){ -var G__1436 = arguments.length; -switch (G__1436) { -case 1: -return quil.core.load_shader.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.load_shader.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.load_shader.cljs$core$IFn$_invoke$arity$1 = (function (fragment_filename){ -return quil.core.current_graphics.call(null).loadShader(fragment_filename); -}); - -quil.core.load_shader.cljs$core$IFn$_invoke$arity$2 = (function (fragment_filename,vertex_filename){ -return quil.core.current_graphics.call(null).loadShader(fragment_filename,vertex_filename); -}); - -quil.core.load_shader.cljs$lang$maxFixedArity = 2; - -/** - * Load a geometry from a file as a PShape. - */ -quil.core.load_shape = (function quil$core$load_shape(filename){ -return quil.sketch.current_applet.call(null).loadShape(filename); -}); -/** - * Calculates the natural logarithm (the base-e logarithm) of a - * number. This function expects the values greater than 0.0. - */ -quil.core.log = (function quil$core$log(val){ -return quil.sketch.current_applet.call(null).log(val); -}); -/** - * Calculates the magnitude (or length) of a vector. A vector is a - * direction in space commonly used in computer graphics and linear - * algebra. Because it has no start position, the magnitude of a vector - * can be thought of as the distance from coordinate (0,0) to its (x,y) - * value. Therefore, mag is a shortcut for writing (dist 0 0 x y). - */ -quil.core.mag = (function quil$core$mag(var_args){ -var G__1439 = arguments.length; -switch (G__1439) { -case 2: -return quil.core.mag.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.mag.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.mag.cljs$core$IFn$_invoke$arity$2 = (function (a,b){ -return quil.sketch.current_applet.call(null).mag(a,b); -}); - -quil.core.mag.cljs$core$IFn$_invoke$arity$3 = (function (a,b,c){ -return quil.sketch.current_applet.call(null).mag(a,b,c); -}); - -quil.core.mag.cljs$lang$maxFixedArity = 3; - -/** - * Re-maps a number from one range to another. - * - * Numbers outside the range are not clamped to 0 and 1, because - * out-of-range values are often intentional and useful. - */ -quil.core.map_range = (function quil$core$map_range(val,low1,high1,low2,high2){ -return quil.sketch.current_applet.call(null).map(val,low1,high1,low2,high2); -}); -/** - * Returns the number of milliseconds (thousandths of a second) since - * starting the sketch. This information is often used for timing - * animation sequences. - */ -quil.core.millis = (function quil$core$millis(){ -return quil.sketch.current_applet.call(null).millis(); -}); -/** - * Returns the current minute as a value from 0 - 59 - */ -quil.core.minute = (function quil$core$minute(){ -return quil.sketch.current_applet.call(null).minute(); -}); -/** - * Returns the three-dimensional x, y, z position in model space. This - * returns the x value for a given coordinate based on the current set - * of transformations (scale, rotate, translate, etc.) The x value can - * be used to place an object in space relative to the location of the - * original point once the transformations are no longer in use. - */ -quil.core.model_x = (function quil$core$model_x(x,y,z){ -return quil.core.current_graphics.call(null).modelX(x,y,z); -}); -/** - * Returns the three-dimensional x, y, z position in model space. This - * returns the y value for a given coordinate based on the current set - * of transformations (scale, rotate, translate, etc.) The y value can - * be used to place an object in space relative to the location of the - * original point once the transformations are no longer in use. - */ -quil.core.model_y = (function quil$core$model_y(x,y,z){ -return quil.core.current_graphics.call(null).modelY(x,y,z); -}); -/** - * Returns the three-dimensional x, y, z position in model space. This - * returns the z value for a given coordinate based on the current set - * of transformations (scale, rotate, translate, etc.) The z value can - * be used to place an object in space relative to the location of the - * original point once the transformations are no longer in use. - */ -quil.core.model_z = (function quil$core$model_z(x,y,z){ -return quil.core.current_graphics.call(null).modelZ(x,y,z); -}); -/** - * Returns the current month as a value from 1 - 12. - */ -quil.core.month = (function quil$core$month(){ -return quil.sketch.current_applet.call(null).month(); -}); -/** - * The value of the system variable mouseButton is either :left, :right, - * or :center depending on which button is pressed. nil if no button pressed - */ -quil.core.mouse_button = (function quil$core$mouse_button(){ -var button_code = quil.sketch.current_applet.call(null).mouseButton; -var pred__1441 = cljs.core._EQ_; -var expr__1442 = button_code; -if(cljs.core.truth_(pred__1441.call(null,(37),expr__1442))){ -return new cljs.core.Keyword(null,"left","left",-399115937); -} else { -if(cljs.core.truth_(pred__1441.call(null,(39),expr__1442))){ -return new cljs.core.Keyword(null,"right","right",-452581833); -} else { -if(cljs.core.truth_(pred__1441.call(null,(3),expr__1442))){ -return new cljs.core.Keyword(null,"center","center",-748944368); -} else { -return null; -} -} -} -}); -/** - * Variable storing if a mouse button is pressed. The value of the - * system variable mousePressed is true if a mouse button is pressed - * and false if a button is not pressed. - */ -quil.core.mouse_pressed_QMARK_ = (function quil$core$mouse_pressed_QMARK_(){ -return quil.sketch.current_applet.call(null).__mousePressed; -}); -/** - * Current horizontal coordinate of the mouse. - */ -quil.core.mouse_x = (function quil$core$mouse_x(){ -return quil.sketch.current_applet.call(null).mouseX; -}); -/** - * Current vertical coordinate of the mouse. - */ -quil.core.mouse_y = (function quil$core$mouse_y(){ -return quil.sketch.current_applet.call(null).mouseY; -}); -/** - * Hides the cursor from view. Will not work when running the in full - * screen (Present) mode. - */ -quil.core.no_cursor = (function quil$core$no_cursor(){ -return quil.sketch.current_applet.call(null).noCursor(); -}); -/** - * Disables filling geometry. If both no-stroke and no-fill are called, - * nothing will be drawn to the screen. - */ -quil.core.no_fill = (function quil$core$no_fill(){ -quil.core.current_graphics.call(null).noFill(); - -return (quil.core.current_graphics.call(null)[quil.core.no_fill_prop] = true); -}); -/** - * Returns a new 2D unit vector in a random direction - */ -quil.core.random_2d = (function quil$core$random_2d(){ -var theta = quil.sketch.current_applet.call(null).random(quil.core.TWO_PI); -return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [Math.cos(theta),Math.sin(theta)], null); -}); -/** - * Returns a new 3D unit vector in a random direction - */ -quil.core.random_3d = (function quil$core$random_3d(){ -var theta = quil.sketch.current_applet.call(null).random(quil.core.TWO_PI); -var phi = quil.sketch.current_applet.call(null).random((- quil.core.HALF_PI),quil.core.HALF_PI); -var vx = (Math.cos(theta) * Math.sin(phi)); -var vy = (Math.sin(theta) * Math.sin(phi)); -var vz = Math.cos(phi); -return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [vx,vy,vz], null); -}); -/** - * Returns the Perlin noise value at specified coordinates. Perlin - * noise is a random sequence generator producing a more natural - * ordered, harmonic succession of numbers compared to the standard - * random function. It was invented by Ken Perlin in the 1980s and - * been used since in graphical applications to produce procedural - * textures, natural motion, shapes, terrains etc. - * - * The main difference to the random function is that Perlin noise is - * defined in an infinite n-dimensional space where each pair of - * coordinates corresponds to a fixed semi-random value (fixed only for - * the lifespan of the program). The resulting value will always be - * between 0.0 and 1.0. Processing can compute 1D, 2D and 3D noise, - * depending on the number of coordinates given. The noise value can be - * animated by moving through the noise space and the 2nd and 3rd - * dimensions can also be interpreted as time. - * - * The actual noise is structured similar to an audio signal, in - * respect to the function's use of frequencies. Similar to the concept - * of harmonics in physics, perlin noise is computed over several - * octaves which are added together for the final result. - * - * Another way to adjust the character of the resulting sequence is the - * scale of the input coordinates. As the function works within an - * infinite space the value of the coordinates doesn't matter as such, - * only the distance between successive coordinates does (eg. when - * using noise within a loop). As a general rule the smaller the - * difference between coordinates, the smoother the resulting noise - * sequence will be. Steps of 0.005-0.03 work best for most - * applications, but this will differ depending on use. - */ -quil.core.noise = (function quil$core$noise(var_args){ -var G__1445 = arguments.length; -switch (G__1445) { -case 1: -return quil.core.noise.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.noise.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.noise.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.noise.cljs$core$IFn$_invoke$arity$1 = (function (x){ -return quil.sketch.current_applet.call(null).noise(x); -}); - -quil.core.noise.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.sketch.current_applet.call(null).noise(x,y); -}); - -quil.core.noise.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.sketch.current_applet.call(null).noise(x,y,z); -}); - -quil.core.noise.cljs$lang$maxFixedArity = 3; - -/** - * Adjusts the character and level of detail produced by the Perlin - * noise function. Similar to harmonics in physics, noise is computed - * over several octaves. Lower octaves contribute more to the output - * signal and as such define the overal intensity of the noise, whereas - * higher octaves create finer grained details in the noise - * sequence. By default, noise is computed over 4 octaves with each - * octave contributing exactly half than its predecessor, starting at - * 50% strength for the 1st octave. This falloff amount can be changed - * by adding an additional function parameter. Eg. a falloff factor of - * 0.75 means each octave will now have 75% impact (25% less) of the - * previous lower octave. Any value between 0.0 and 1.0 is valid, - * however note that values greater than 0.5 might result in greater - * than 1.0 values returned by noise. - * - * By changing these parameters, the signal created by the noise - * function can be adapted to fit very specific needs and - * characteristics. - */ -quil.core.noise_detail = (function quil$core$noise_detail(var_args){ -var G__1448 = arguments.length; -switch (G__1448) { -case 1: -return quil.core.noise_detail.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.noise_detail.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.noise_detail.cljs$core$IFn$_invoke$arity$1 = (function (octaves){ -return quil.sketch.current_applet.call(null).noiseDetail((octaves | (0))); -}); - -quil.core.noise_detail.cljs$core$IFn$_invoke$arity$2 = (function (octaves,falloff){ -return quil.sketch.current_applet.call(null).noiseDetail((octaves | (0)),falloff); -}); - -quil.core.noise_detail.cljs$lang$maxFixedArity = 2; - -/** - * Sets the seed value for noise. By default, noise produces different - * results each time the program is run. Set the value parameter to a - * constant to return the same pseudo-random numbers each time the - * software is run. - */ -quil.core.noise_seed = (function quil$core$noise_seed(val){ -return quil.sketch.current_applet.call(null).noiseSeed((val | (0))); -}); -/** - * Disable all lighting. Lighting is turned off by default and enabled - * with the lights fn. This function can be used to disable lighting so - * that 2D geometry (which does not require lighting) can be drawn - * after a set of lighted 3D geometry. - */ -quil.core.no_lights = (function quil$core$no_lights(){ -return quil.core.current_graphics.call(null).noLights(); -}); -/** - * Stops Processing from continuously executing the code within - * draw. If start-loop is called, the code in draw will begin to run - * continuously again. If using no-loop in setup, it should be the last - * line inside the block. - * - * When no-loop is used, it's not possible to manipulate or access the - * screen inside event handling functions such as mouse-pressed or - * key-pressed. Instead, use those functions to call redraw or - * loop which will run draw, which can update the screen - * properly. This means that when no-loop has been called, no drawing - * can happen, and functions like save-frame may not be used. - * - * Note that if the sketch is resized, redraw will be called to - * update the sketch, even after no-oop has been - * specified. Otherwise, the sketch would enter an odd state until - * loop was called. - */ -quil.core.no_loop = (function quil$core$no_loop(){ -return quil.sketch.current_applet.call(null).noLoop(); -}); -/** - * Normalize a value to exist between 0 and 1 (inclusive). - */ -quil.core.norm = (function quil$core$norm(val,start,stop){ -return quil.sketch.current_applet.call(null).norm(val,start,stop); -}); -/** - * Sets the current normal vector. This is for drawing three - * dimensional shapes and surfaces and specifies a vector perpendicular - * to the surface of the shape which determines how lighting affects - * it. Processing attempts to automatically assign normals to shapes, - * but since that's imperfect, this is a better option when you want - * more control. This function is identical to glNormal3f() in OpenGL. - */ -quil.core.normal = (function quil$core$normal(nx,ny,nz){ -return quil.core.current_graphics.call(null).normal(nx,ny,nz); -}); -/** - * Draws all geometry with jagged (aliased) edges. Must be called inside - * :settings handler. - */ -quil.core.no_smooth = (function quil$core$no_smooth(){ -return quil.core.current_graphics.call(null).noSmooth(); -}); -/** - * Disables drawing the stroke (outline). If both no-stroke and - * no-fill are called, nothing will be drawn to the screen. - */ -quil.core.no_stroke = (function quil$core$no_stroke(){ -return quil.core.current_graphics.call(null).noStroke(); -}); -/** - * Removes the current fill value for displaying images and reverts to - * displaying images with their original hues. - */ -quil.core.no_tint = (function quil$core$no_tint(){ -return quil.core.current_graphics.call(null).noTint(); -}); -/** - * Sets an orthographic projection and defines a parallel clipping - * volume. All objects with the same dimension appear the same size, - * regardless of whether they are near or far from the camera. The - * parameters to this function specify the clipping volume where left - * and right are the minimum and maximum x values, top and bottom are - * the minimum and maximum y values, and near and far are the minimum - * and maximum z values. If no parameters are given, the default is - * used: (ortho 0 width 0 height -10 10) - */ -quil.core.ortho = (function quil$core$ortho(var_args){ -var G__1451 = arguments.length; -switch (G__1451) { -case 0: -return quil.core.ortho.cljs$core$IFn$_invoke$arity$0(); - -break; -case 4: -return quil.core.ortho.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 6: -return quil.core.ortho.cljs$core$IFn$_invoke$arity$6((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.ortho.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.current_graphics.call(null).ortho(); -}); - -quil.core.ortho.cljs$core$IFn$_invoke$arity$4 = (function (left,right,bottom,top){ -return quil.core.current_graphics.call(null).ortho(left,right,bottom,top); -}); - -quil.core.ortho.cljs$core$IFn$_invoke$arity$6 = (function (left,right,bottom,top,near,far){ -return quil.core.current_graphics.call(null).ortho(left,right,bottom,top,near,far); -}); - -quil.core.ortho.cljs$lang$maxFixedArity = 6; - -/** - * Sets a perspective projection applying foreshortening, making - * distant objects appear smaller than closer ones. The parameters - * define a viewing volume with the shape of truncated pyramid. Objects - * near to the front of the volume appear their actual size, while - * farther objects appear smaller. This projection simulates the - * perspective of the world more accurately than orthographic - * projection. The version of perspective without parameters sets the - * default perspective and the version with four parameters allows the - * programmer to set the area precisely. The default values are: - * perspective(PI/3.0, width/height, cameraZ/10.0, cameraZ*10.0) where - * cameraZ is ((height/2.0) / tan(PI*60.0/360.0)); - */ -quil.core.perspective = (function quil$core$perspective(var_args){ -var G__1454 = arguments.length; -switch (G__1454) { -case 0: -return quil.core.perspective.cljs$core$IFn$_invoke$arity$0(); - -break; -case 4: -return quil.core.perspective.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.perspective.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.current_graphics.call(null).perspective(); -}); - -quil.core.perspective.cljs$core$IFn$_invoke$arity$4 = (function (fovy,aspect,z_near,z_far){ -return quil.core.current_graphics.call(null).perspective(fovy,aspect,z_near,z_far); -}); - -quil.core.perspective.cljs$lang$maxFixedArity = 4; - -/** - * Array containing the values for all the pixels in the display - * window or image. This array is therefore the size of the display window. If - * this array is modified, the update-pixels fn must be called to update - * the changes. Calls .loadPixels before obtaining the pixel array. - */ -quil.core.pixels = (function quil$core$pixels(var_args){ -var G__1457 = arguments.length; -switch (G__1457) { -case 0: -return quil.core.pixels.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.pixels.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.pixels.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.pixels.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.pixels.cljs$core$IFn$_invoke$arity$1 = (function (img){ -img.loadPixels(); - -var pix_array = img.pixels.toArray(); -img.stored_pix_array = pix_array; - -return pix_array; -}); - -quil.core.pixels.cljs$lang$maxFixedArity = 1; - -/** - * Horizontal coordinate of the mouse in the previous frame - */ -quil.core.pmouse_x = (function quil$core$pmouse_x(){ -return quil.sketch.current_applet.call(null).pmouseX; -}); -/** - * Vertical coordinate of the mouse in the previous frame - */ -quil.core.pmouse_y = (function quil$core$pmouse_y(){ -return quil.sketch.current_applet.call(null).pmouseY; -}); -/** - * Draws a point, a coordinate in space at the dimension of one - * pixel. The first parameter is the horizontal value for the point, - * the second value is the vertical value for the point, and the - * optional third value is the depth value. Drawing this shape in 3D - * using the z parameter requires the :P3D or :opengl renderer to be - * used. - */ -quil.core.point = (function quil$core$point(var_args){ -var G__1460 = arguments.length; -switch (G__1460) { -case 2: -return quil.core.point.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.point.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.point.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.core.current_graphics.call(null).point(x,y); -}); - -quil.core.point.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).point(x,y,z); -}); - -quil.core.point.cljs$lang$maxFixedArity = 3; - -/** - * Adds a point light. Lights need to be included in the draw() to - * remain persistent in a looping program. Placing them in the setup() - * of a looping program will cause them to only have an effect the - * first time through the loop. The affect of the r, g, and b - * parameters is determined by the current color mode. The x, y, and z - * parameters set the position of the light - */ -quil.core.point_light = (function quil$core$point_light(r,g,b,x,y,z){ -return quil.core.current_graphics.call(null).pointLight(r,g,b,x,y,z); -}); -/** - * Pops the current transformation matrix off the matrix - * stack. Understanding pushing and popping requires understanding the - * concept of a matrix stack. The push-matrix fn saves the current - * coordinate system to the stack and pop-matrix restores the prior - * coordinate system. push-matrix and pop-matrix are used in conjuction - * with the other transformation methods and may be embedded to control - * the scope of the transformations. - */ -quil.core.pop_matrix = (function quil$core$pop_matrix(){ -return quil.core.current_graphics.call(null).popMatrix(); -}); -/** - * Restores the prior settings on the 'style stack'. Used in - * conjunction with push-style. Together they allow you to change the - * style settings and later return to what you had. When a new style is - * started with push-style, it builds on the current style information. - * The push-style and pop-style functions can be nested to provide more - * control - */ -quil.core.pop_style = (function quil$core$pop_style(){ -return quil.core.current_graphics.call(null).popStyle(); -}); -/** - * Facilitates exponential expressions. The pow() function is an - * efficient way of multiplying numbers by themselves (or their - * reciprocal) in large quantities. For example, (pow 3 5) is - * equivalent to the expression (* 3 3 3 3 3) and (pow 3 -5) is - * equivalent to (/ 1 (* 3 3 3 3 3)). - */ -quil.core.pow = (function quil$core$pow(num,exponent){ -return quil.sketch.current_applet.call(null).pow(num,exponent); -}); -/** - * Prints the current camera matrix to std out. Useful for debugging. - */ -quil.core.print_camera = (function quil$core$print_camera(){ -return quil.core.current_graphics.call(null).printCamera(); -}); -/** - * Prints the current matrix to std out. Useful for debugging. - */ -quil.core.print_matrix = (function quil$core$print_matrix(){ -return quil.core.current_graphics.call(null).printMatrix(); -}); -/** - * Prints the current projection matrix to std out. Useful for - * debugging - */ -quil.core.print_projection = (function quil$core$print_projection(){ -return quil.core.current_graphics.call(null).printProjection(); -}); -/** - * Pushes the current transformation matrix onto the matrix - * stack. Understanding push-matrix and pop-matrix requires - * understanding the concept of a matrix stack. The push-matrix - * function saves the current coordinate system to the stack and - * pop-matrix restores the prior coordinate system. push-matrix and - * pop-matrix are used in conjuction with the other transformation - * methods and may be embedded to control the scope of the - * transformations. - */ -quil.core.push_matrix = (function quil$core$push_matrix(){ -return quil.core.current_graphics.call(null).pushMatrix(); -}); -/** - * Saves the current style settings onto a 'style stack'. Use with - * pop-style which restores the prior settings. Note that these - * functions are always used together. They allow you to change the - * style settings and later return to what you had. When a new style is - * started with push-style, it builds on the current style - * information. The push-style and pop-style fns can be embedded to - * provide more control. - * - * The style information controlled by the following functions are - * included in the style: fill, stroke, tint, stroke-weight, - * stroke-cap, stroke-join, image-mode, rect-mode, ellipse-mode, - * shape-mode, color-mode, text-align, text-font, text-mode, text-size, - * text-leading, emissive, specular, shininess, and ambient - */ -quil.core.push_style = (function quil$core$push_style(){ -return quil.core.current_graphics.call(null).pushStyle(); -}); -/** - * A quad is a quadrilateral, a four sided polygon. It is similar to a - * rectangle, but the angles between its edges are not constrained to - * be ninety degrees. The first pair of parameters (x1,y1) sets the - * first vertex and the subsequent pairs should proceed clockwise or - * counter-clockwise around the defined shape. - */ -quil.core.quad = (function quil$core$quad(x1,y1,x2,y2,x3,y3,x4,y4){ -return quil.core.current_graphics.call(null).quad(x1,y1,x2,y2,x3,y3,x4,y4); -}); -/** - * Specifies vertex coordinates for quadratic Bezier curves. Each call to - * quadratic-vertex defines the position of one control points and one - * anchor point of a Bezier curve, adding a new segment to a line or shape. - * The first time quadratic-vertex is used within a begin-shape call, it - * must be prefaced with a call to vertex to set the first anchor point. - * This function must be used between begin-shape and end-shape and only - * when there is no MODE parameter specified to begin-shape. Using the 3D - * version requires rendering with :p3d. - */ -quil.core.quadratic_vertex = (function quil$core$quadratic_vertex(var_args){ -var G__1463 = arguments.length; -switch (G__1463) { -case 4: -return quil.core.quadratic_vertex.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 6: -return quil.core.quadratic_vertex.cljs$core$IFn$_invoke$arity$6((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.quadratic_vertex.cljs$core$IFn$_invoke$arity$4 = (function (cx,cy,x3,y3){ -return quil.core.current_graphics.call(null).quadraticVertex(cx,cy,x3,y3); -}); - -quil.core.quadratic_vertex.cljs$core$IFn$_invoke$arity$6 = (function (cx,cy,cz,x3,y3,z3){ -return quil.core.current_graphics.call(null).quadraticVertex(cx,cy,cz,x3,y3,z3); -}); - -quil.core.quadratic_vertex.cljs$lang$maxFixedArity = 6; - -/** - * Converts a degree measurement to its corresponding value in - * radians. Radians and degrees are two ways of measuring the same - * thing. There are 360 degrees in a circle and 2*PI radians in a - * circle. For example, 90° = PI/2 = 1.5707964. All trigonometric - * methods in Processing require their parameters to be specified in - * radians. - */ -quil.core.radians = (function quil$core$radians(degrees){ -return quil.sketch.current_applet.call(null).radians(degrees); -}); -/** - * Generates random numbers. Each time the random function is called, - * it returns an unexpected value within the specified range. If one - * parameter is passed to the function it will return a float between - * zero and the value of the high parameter. The function call (random - * 5) returns values between 0 and 5 (starting at zero, up to but not - * including 5). If two parameters are passed, it will return a float - * with a value between the parameters. The function call - * (random -5 10.2) returns values starting at -5 up to (but not - * including) 10.2. - */ -quil.core.random = (function quil$core$random(var_args){ -var G__1466 = arguments.length; -switch (G__1466) { -case 1: -return quil.core.random.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.random.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.random.cljs$core$IFn$_invoke$arity$1 = (function (max){ -return quil.sketch.current_applet.call(null).random(max); -}); - -quil.core.random.cljs$core$IFn$_invoke$arity$2 = (function (min,max){ -return quil.sketch.current_applet.call(null).random(min,max); -}); - -quil.core.random.cljs$lang$maxFixedArity = 2; - -/** - * Returns a float from a random series of numbers having a mean of 0 and - * standard deviation of 1. Each time the randomGaussian() function is called, - * it returns a number fitting a Gaussian, or normal, distribution. - * There is theoretically no minimum or maximum value that randomGaussian() - * might return. Rather, there is just a very low probability that values far - * from the mean will be returned; and a higher probability that numbers near - * the mean will be returned. . - */ -quil.core.random_gaussian = (function quil$core$random_gaussian(){ -return quil.sketch.current_applet.call(null).randomGaussian(); -}); -/** - * Sets the seed value for random. By default, random produces - * different results each time the program is run. Set the value - * parameter to a constant to return the same pseudo-random numbers - * each time the software is run. - */ -quil.core.random_seed = (function quil$core$random_seed(w){ -return quil.sketch.current_applet.call(null).randomSeed(w); -}); -/** - * Contains the value of the most recent key on the keyboard that was - * used (either pressed or released). - * - * For non-ASCII keys, use the keyCode variable. The keys included in - * the ASCII specification (BACKSPACE, TAB, ENTER, RETURN, ESC, and - * DELETE) do not require checking to see if they key is coded, and you - * should simply use the key variable instead of keyCode If you're - * making cross-platform projects, note that the ENTER key is commonly - * used on PCs and Unix and the RETURN key is used instead on - * Macintosh. Check for both ENTER and RETURN to make sure your program - * will work for all platforms. - */ -quil.core.raw_key = (function quil$core$raw_key(){ -return quil.sketch.current_applet.call(null).key; -}); -/** - * Draws a rectangle to the screen. A rectangle is a four-sided shape - * with every angle at ninety degrees. By default, the first two - * parameters set the location of the upper-left corner, the third - * sets the width, and the fourth sets the height. These parameters - * may be changed with rect-mode. - * - * To draw a rounded rectangle, add a fifth parameter, which is used as - * the radius value for all four corners. To use a different radius value - * for each corner, include eight parameters. - */ -quil.core.rect = (function quil$core$rect(var_args){ -var G__1469 = arguments.length; -switch (G__1469) { -case 4: -return quil.core.rect.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 5: -return quil.core.rect.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -case 8: -return quil.core.rect.cljs$core$IFn$_invoke$arity$8((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.rect.cljs$core$IFn$_invoke$arity$4 = (function (x,y,width,height){ -return quil.core.current_graphics.call(null).rect(x,y,width,height); -}); - -quil.core.rect.cljs$core$IFn$_invoke$arity$5 = (function (x,y,width,height,r){ -return quil.core.current_graphics.call(null).rect(x,y,width,height,r); -}); - -quil.core.rect.cljs$core$IFn$_invoke$arity$8 = (function (x,y,width,height,top_left_r,top_right_r,bottom_right_r,bottom_left_r){ -return quil.core.current_graphics.call(null).rect(x,y,width,height,top_left_r,top_right_r,bottom_right_r,bottom_left_r); -}); - -quil.core.rect.cljs$lang$maxFixedArity = 8; - -/** - * Modifies the location from which rectangles draw. The default mode - * is :corner. Available modes are: - * - * - * :corner - Specifies the location to be the upper left corner of the - * shape and uses the third and fourth parameters of rect to - * specify the width and height. - * - * :corners - Uses the first and second parameters of rect to set the - * location of one corner and uses the third and fourth - * parameters to set the opposite corner. - * - * :center - Draws the image from its center point and uses the third - * and forth parameters of rect to specify the image's width - * and height. - * - * :radius - Draws the image from its center point and uses the third - * and forth parameters of rect() to specify half of the - * image's width and height. - */ -quil.core.rect_mode = (function quil$core$rect_mode(mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.rect_modes); -return quil.core.current_graphics.call(null).rectMode((mode__$1 | (0))); -}); -/** - * Extracts the red value from a color, scaled to match current color-mode. - */ -quil.core.red = (function quil$core$red(c){ -return quil.core.current_graphics.call(null).red(cljs.core.unchecked_int.call(null,c)); -}); -/** - * Executes the code within the draw fn one time. This functions - * allows the program to update the display window only when necessary, - * for example when an event registered by mouse-pressed or - * key-pressed occurs. - * - * In structuring a program, it only makes sense to call redraw - * within events such as mouse-pressed. This is because redraw does - * not run draw immediately (it only sets a flag that indicates an - * update is needed). - * - * Calling redraw within draw has no effect because draw is - * continuously called anyway. - */ -quil.core.redraw = (function quil$core$redraw(){ -return quil.sketch.current_applet.call(null).redraw(); -}); -/** - * This function load images on a separate thread so that your sketch - * does not freeze while images load during setup. While the image is - * loading, its width and height will be 0. If an error occurs while - * loading the image, its width and height will be set to -1. You'll - * know when the image has loaded properly because its width and height - * will be greater than 0. Asynchronous image loading (particularly - * when downloading from a server) can dramatically improve - * performance. - */ -quil.core.request_image = (function quil$core$request_image(filename){ -return quil.sketch.current_applet.call(null).requestImage(cljs.core.str.cljs$core$IFn$_invoke$arity$1(filename)); -}); -/** - * Replaces the current matrix with the identity matrix. The - * equivalent function in OpenGL is glLoadIdentity() - */ -quil.core.reset_matrix = (function quil$core$reset_matrix(){ -return quil.core.current_graphics.call(null).resetMatrix(); -}); -/** - * Resize the image to a new width and height. - * To make the image scale proportionally, use 0 as the value for the wide or - * high parameter. For instance, to make the width of an image 150 pixels, - * and change the height using the same proportion, use resize(150, 0). - * - * Even though a PGraphics is technically a PImage, it is not possible - * to rescale the image data found in a PGraphics. - * (It's simply not possible to do this consistently across renderers: - * technically infeasible with P3D, or what would it even do with PDF?) - * If you want to resize PGraphics content, first get a copy of its image data - * using the get() method, and call resize() on the PImage that is returned. - */ -quil.core.resize = (function quil$core$resize(img,w,h){ -return img.resize(w,h); -}); -/** - * Rotates a shape the amount specified by the angle parameter. Angles - * should be specified in radians (values from 0 to TWO-PI) or - * converted to radians with the radians function. - * - * Objects are always rotated around their relative position to the - * origin and positive numbers rotate objects in a clockwise - * direction. Transformations apply to everything that happens after - * and subsequent calls to the function accumulates the effect. For - * example, calling (rotate HALF-PI) and then (rotate HALF-PI) is the - * same as (rotate PI). All tranformations are reset when draw begins - * again. - * - * Technically, rotate multiplies the current transformation matrix by - * a rotation matrix. This function can be further controlled by the - * push-matrix and pop-matrix. - */ -quil.core.rotate = (function quil$core$rotate(var_args){ -var G__1472 = arguments.length; -switch (G__1472) { -case 1: -return quil.core.rotate.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 4: -return quil.core.rotate.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.rotate.cljs$core$IFn$_invoke$arity$1 = (function (angle){ -return quil.core.current_graphics.call(null).rotate(angle); -}); - -quil.core.rotate.cljs$core$IFn$_invoke$arity$4 = (function (angle,vx,vy,vz){ -return quil.core.current_graphics.call(null).rotate(angle,vx,vy,vz); -}); - -quil.core.rotate.cljs$lang$maxFixedArity = 4; - -/** - * Rotates a shape around the x-axis the amount specified by the angle - * parameter. Angles should be specified in radians (values from 0 to - * (* PI 2)) or converted to radians with the radians function. Objects - * are always rotated around their relative position to the origin and - * positive numbers rotate objects in a counterclockwise - * direction. Transformations apply to everything that happens after - * and subsequent calls to the function accumulates the effect. For - * example, calling (rotate-x HALF-PI) and then (rotate-x HALF-PI) is - * the same as (rotate-x PI). If rotate-x is called within the draw fn, - * the transformation is reset when the loop begins again. This - * function requires either the :p3d or :opengl renderer. - */ -quil.core.rotate_x = (function quil$core$rotate_x(angle){ -return quil.core.current_graphics.call(null).rotateX(angle); -}); -/** - * Rotates a shape around the y-axis the amount specified by the angle - * parameter. Angles should be specified in radians (values from 0 - * to (* PI 2)) or converted to radians with the radians function. - * Objects are always rotated around their relative position to the - * origin and positive numbers rotate objects in a counterclockwise - * direction. Transformations apply to everything that happens after - * and subsequent calls to the function accumulates the effect. For - * example, calling (rotate-y HALF-PI) and then (rotate-y HALF-PI) is - * the same as (rotate-y PI). If rotate-y is called within the draw fn, - * the transformation is reset when the loop begins again. This - * function requires either the :p3d or :opengl renderer. - */ -quil.core.rotate_y = (function quil$core$rotate_y(angle){ -return quil.core.current_graphics.call(null).rotateY(angle); -}); -/** - * Rotates a shape around the z-axis the amount specified by the angle - * parameter. Angles should be specified in radians (values from 0 - * to (* PI 2)) or converted to radians with the radians function. - * Objects are always rotated around their relative position to the - * origin and positive numbers rotate objects in a counterclockwise - * direction. Transformations apply to everything that happens after - * and subsequent calls to the function accumulates the effect. For - * example, calling (rotate-z HALF-PI) and then (rotate-z HALF-PI) is - * the same as (rotate-z PI). If rotate-y is called within the draw fn, - * the transformation is reset when the loop begins again. This - * function requires either the :p3d or :opengl renderer. - */ -quil.core.rotate_z = (function quil$core$rotate_z(angle){ -return quil.core.current_graphics.call(null).rotateZ(angle); -}); -/** - * Calculates the integer closest to the value parameter. For example, - * (round 9.2) returns the value 9. - */ -quil.core.round = (function quil$core$round(val){ -return quil.sketch.current_applet.call(null).round(val); -}); -/** - * Extracts the saturation value from a color. - */ -quil.core.saturation = (function quil$core$saturation(c){ -return quil.core.current_graphics.call(null).saturation(cljs.core.unchecked_int.call(null,c)); -}); -/** - * Saves an image from the display window. Images are saved in TIFF, - * TARGA, JPEG, and PNG format depending on the extension within the - * filename parameter. For example, image.tif will have a TIFF image - * and image.png will save a PNG image. If no extension is included in - * the filename, the image will save in TIFF format and .tif will be - * added to the name. All images saved from the main drawing window - * will be opaque. To save images without a background, use - * create-graphics. - */ -quil.core.save = (function quil$core$save(filename){ -return quil.core.current_graphics.call(null).save(cljs.core.str.cljs$core$IFn$_invoke$arity$1(filename)); -}); -/** - * Saves an image identical to the current display window as a - * file. May be called multple times - each file saved will have a - * unique name. Name and image formate may be modified by passing a - * string parameter of the form "foo-####.ext" where foo- can be any - * arbitrary string, #### will be replaced with the current frame id - * and .ext is one of .tiff, .targa, .png, .jpeg or .jpg - * - * Examples: - * (save-frame) - * (save-frame "pretty-pic-####.jpg") - */ -quil.core.save_frame = (function quil$core$save_frame(var_args){ -var G__1475 = arguments.length; -switch (G__1475) { -case 0: -return quil.core.save_frame.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.save_frame.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.save_frame.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.sketch.current_applet.call(null).saveFrame(); -}); - -quil.core.save_frame.cljs$core$IFn$_invoke$arity$1 = (function (name){ -return quil.sketch.current_applet.call(null).saveFrame(cljs.core.str.cljs$core$IFn$_invoke$arity$1(name)); -}); - -quil.core.save_frame.cljs$lang$maxFixedArity = 1; - -/** - * Increases or decreases the size of a shape by expanding and - * contracting vertices. Objects always scale from their relative - * origin to the coordinate system. Scale values are specified as - * decimal percentages. For example, the function call (scale 2) - * increases the dimension of a shape by 200%. Transformations apply to - * everything that happens after and subsequent calls to the function - * multiply the effect. For example, calling (scale 2) and then - * (scale 1.5) is the same as (scale 3). If scale is called within - * draw, the transformation is reset when the loop begins again. Using - * this fuction with the z parameter requires specfying :p3d or :opengl - * as the renderer. This function can be further controlled by - * push-matrix and pop-matrix. - */ -quil.core.scale = (function quil$core$scale(var_args){ -var G__1478 = arguments.length; -switch (G__1478) { -case 1: -return quil.core.scale.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.scale.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.scale.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.scale.cljs$core$IFn$_invoke$arity$1 = (function (s){ -return quil.core.current_graphics.call(null).scale(s); -}); - -quil.core.scale.cljs$core$IFn$_invoke$arity$2 = (function (sx,sy){ -return quil.core.current_graphics.call(null).scale(sx,sy); -}); - -quil.core.scale.cljs$core$IFn$_invoke$arity$3 = (function (sx,sy,sz){ -return quil.core.current_graphics.call(null).scale(sx,sy,sz); -}); - -quil.core.scale.cljs$lang$maxFixedArity = 3; - -/** - * Takes a three-dimensional x, y, z position and returns the x value - * for where it will appear on a (two-dimensional) screen, once - * affected by translate, scale or any other transformations - */ -quil.core.screen_x = (function quil$core$screen_x(var_args){ -var G__1481 = arguments.length; -switch (G__1481) { -case 2: -return quil.core.screen_x.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.screen_x.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.screen_x.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.core.current_graphics.call(null).screenX(x,y); -}); - -quil.core.screen_x.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).screenX(x,y,z); -}); - -quil.core.screen_x.cljs$lang$maxFixedArity = 3; - -/** - * Takes a three-dimensional x, y, z position and returns the y value - * for where it will appear on a (two-dimensional) screen, once - * affected by translate, scale or any other transformations - */ -quil.core.screen_y = (function quil$core$screen_y(var_args){ -var G__1484 = arguments.length; -switch (G__1484) { -case 2: -return quil.core.screen_y.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.screen_y.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.screen_y.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.core.current_graphics.call(null).screenY(x,y); -}); - -quil.core.screen_y.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).screenY(x,y,z); -}); - -quil.core.screen_y.cljs$lang$maxFixedArity = 3; - -/** - * Given an x, y, z coordinate, returns its z value. - * This value can be used to determine if an x, y, z coordinate is in - * front or in back of another (x, y, z) coordinate. The units are - * based on how the zbuffer is set up, and don't relate to anything - * 'real'. They're only useful for in comparison to another value - * obtained from screen-z, or directly out of the zbuffer - */ -quil.core.screen_z = (function quil$core$screen_z(x,y,z){ -return quil.core.current_graphics.call(null).screenZ(x,y,z); -}); -/** - * Returns the current second as a value from 0 - 59. - */ -quil.core.seconds = (function quil$core$seconds(){ -return quil.sketch.current_applet.call(null).second(); -}); -/** - * Changes the color of any pixel in the display window. The x and y - * parameters specify the pixel to change and the color parameter - * specifies the color value. The color parameter is affected by the - * current color mode (the default is RGB values from 0 to 255). - * - * Setting the color of a single pixel with (set x, y) is easy, but not - * as fast as putting the data directly into pixels[]. - * - * This function ignores imageMode(). - * - * Due to what appears to be a bug in Apple's Java implementation, the - * point() and set() methods are extremely slow in some circumstances - * when used with the default renderer. Using :p2d or :p3d will fix the - * problem. Grouping many calls to point or set-pixel together can also - * help. (Bug 1094) - */ -quil.core.set_pixel = (function quil$core$set_pixel(var_args){ -var G__1487 = arguments.length; -switch (G__1487) { -case 3: -return quil.core.set_pixel.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.set_pixel.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.set_pixel.cljs$core$IFn$_invoke$arity$3 = (function (x,y,c){ -return quil.core.set_pixel.call(null,quil.core.current_graphics.call(null),x,y,c); -}); - -quil.core.set_pixel.cljs$core$IFn$_invoke$arity$4 = (function (img,x,y,c){ -return img.set((x | (0)),(y | (0)),(c | (0))); -}); - -quil.core.set_pixel.cljs$lang$maxFixedArity = 4; - -/** - * Writes an image directly into the display window. The x and y - * parameters define the coordinates for the upper-left corner of the - * image. - */ -quil.core.set_image = (function quil$core$set_image(x,y,src){ -return quil.core.current_graphics.call(null).set((x | (0)),(y | (0)),src); -}); -/** - * Displays shapes to the screen. The shapes must have been loaded - * with load-shape. Processing currently works with SVG shapes - * only. The sh parameter specifies the shape to display and the x and - * y parameters define the location of the shape from its upper-left - * corner. The shape is displayed at its original size unless the width - * and height parameters specify a different size. The shape-mode - * fn changes the way the parameters work. A call to - * (shape-mode :corners), for example, will change the width and height - * parameters to define the x and y values of the opposite corner of - * the shape. - * - * Note complex shapes may draw awkwardly with the renderers :p2d, :p3d, and - * :opengl. Those renderers do not yet support shapes that have holes - * or complicated breaks. - */ -quil.core.shape = (function quil$core$shape(var_args){ -var G__1490 = arguments.length; -switch (G__1490) { -case 1: -return quil.core.shape.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.shape.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 5: -return quil.core.shape.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.shape.cljs$core$IFn$_invoke$arity$1 = (function (sh){ -return quil.core.current_graphics.call(null).shape(sh); -}); - -quil.core.shape.cljs$core$IFn$_invoke$arity$3 = (function (sh,x,y){ -return quil.core.current_graphics.call(null).shape(sh,x,y); -}); - -quil.core.shape.cljs$core$IFn$_invoke$arity$5 = (function (sh,x,y,width,height){ -return quil.core.current_graphics.call(null).shape(sh,x,y,width,height); -}); - -quil.core.shape.cljs$lang$maxFixedArity = 5; - -/** - * Shears a shape around the x-axis the amount specified by the angle - * parameter. Angles should be specified in radians (values from 0 to - * PI*2) or converted to radians with the radians() function. Objects - * are always sheared around their relative position to the origin and - * positive numbers shear objects in a clockwise direction. - * Transformations apply to everything that happens after and - * subsequent calls to the function accumulates the effect. For - * example, calling (shear-x (/ PI 2)) and then (shear-x (/ PI 2)) is - * the same as (shear-x PI). If shear-x is called within the draw fn, - * the transformation is reset when the loop begins again. This - * function works in P2D or JAVA2D mode. - * - * Technically, shear-x multiplies the current transformation matrix - * by a rotation matrix. This function can be further controlled by the - * push-matrix and pop-matrix fns. - */ -quil.core.shear_x = (function quil$core$shear_x(angle){ -return quil.core.current_graphics.call(null).shearX(angle); -}); -/** - * Shears a shape around the y-axis the amount specified by the angle - * parameter. Angles should be specified in radians (values from 0 to - * PI*2) or converted to radians with the radians() function. Objects - * are always sheared around their relative position to the origin and - * positive numbers shear objects in a clockwise direction. - * Transformations apply to everything that happens after and - * subsequent calls to the function accumulates the effect. For - * example, calling (shear-y (/ PI 2)) and then (shear-y (/ PI 2)) is - * the same as (shear-y PI). If shear-y is called within the draw fn, - * the transformation is reset when the loop begins again. This - * function works in P2D or JAVA2D mode. - * - * Technically, shear-y multiplies the current transformation matrix - * by a rotation matrix. This function can be further controlled by the - * push-matrix and pop-matrix fns. - */ -quil.core.shear_y = (function quil$core$shear_y(angle){ -return quil.core.current_graphics.call(null).shearY(angle); -}); -/** - * Modifies the location from which shapes draw. Available modes are - * :corner, :corners and :center. Default is :corner. - * - * :corner - specifies the location to be the upper left corner of the - * shape and uses the third and fourth parameters of shape - * to specify the width and height. - * - * :corners - uses the first and second parameters of shape to set - * the location of one corner and uses the third and fourth - * parameters to set the opposite corner. - * - * :center - draws the shape from its center point and uses the third - * and forth parameters of shape to specify the width and - * height. - */ -quil.core.shape_mode = (function quil$core$shape_mode(mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.p_shape_modes); -return quil.core.current_graphics.call(null).shapeMode((mode__$1 | (0))); -}); -/** - * Sets the amount of gloss in the surface of shapes. Used in - * combination with ambient, specular, and emissive in setting - * the material properties of shapes. - */ -quil.core.shininess = (function quil$core$shininess(shine){ -return quil.core.current_graphics.call(null).shininess(shine); -}); -/** - * Calculates the sine of an angle. This function expects the values - * of the angle parameter to be provided in radians (values from 0 to - * 6.28). A float within the range -1 to 1 is returned. - */ -quil.core.sin = (function quil$core$sin(angle){ -return quil.sketch.current_applet.call(null).sin(angle); -}); -/** - * Draws all geometry with smooth (anti-aliased) edges. This will slow - * down the frame rate of the application, but will enhance the visual - * refinement. - * - * Must be called inside :settings handler. - * - * The level parameter (int) increases the level of smoothness with the - * P2D and P3D renderers. This is the level of over sampling applied to - * the graphics buffer. The value '2' will double the rendering size - * before scaling it down to the display size. This is called '2x - * anti-aliasing.' The value 4 is used for 4x anti-aliasing and 8 is - * specified for 8x anti-aliasing. If level is set to 0, it will disable - * all smoothing; it's the equivalent of the function noSmooth(). - * The maximum anti-aliasing level is determined by the hardware of the - * machine that is running the software. - * - * Note that smooth will also improve image quality of resized images. - */ -quil.core.smooth = (function quil$core$smooth(var_args){ -var G__1493 = arguments.length; -switch (G__1493) { -case 0: -return quil.core.smooth.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.smooth.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.smooth.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.current_graphics.call(null).smooth(); -}); - -quil.core.smooth.cljs$core$IFn$_invoke$arity$1 = (function (level){ -return quil.core.current_graphics.call(null).smooth((level | (0))); -}); - -quil.core.smooth.cljs$lang$maxFixedArity = 1; - -/** - * Sets the specular color of the materials used for shapes drawn to - * the screen, which sets the color of hightlights. Specular refers to - * light which bounces off a surface in a perferred direction (rather - * than bouncing in all directions like a diffuse light). Used in - * combination with emissive, ambient, and shininess in setting - * the material properties of shapes. - */ -quil.core.specular = (function quil$core$specular(var_args){ -var G__1496 = arguments.length; -switch (G__1496) { -case 1: -return quil.core.specular.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 3: -return quil.core.specular.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.specular.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -return quil.core.current_graphics.call(null).specular(gray); -}); - -quil.core.specular.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).specular(x,y,z); -}); - -quil.core.specular.cljs$lang$maxFixedArity = 3; - -/** - * Generates a hollow ball made from tessellated triangles. - */ -quil.core.sphere = (function quil$core$sphere(radius){ -return quil.core.current_graphics.call(null).sphere(radius); -}); -/** - * Controls the detail used to render a sphere by adjusting the number - * of vertices of the sphere mesh. The default resolution is 30, which - * creates a fairly detailed sphere definition with vertices every - * 360/30 = 12 degrees. If you're going to render a great number of - * spheres per frame, it is advised to reduce the level of detail using - * this function. The setting stays active until sphere-detail is - * called again with a new parameter and so should not be called prior - * to every sphere statement, unless you wish to render spheres with - * different settings, e.g. using less detail for smaller spheres or - * ones further away from the camera. To controla the detail of the - * horizontal and vertical resolution independently, use the version of - * the functions with two parameters. - */ -quil.core.sphere_detail = (function quil$core$sphere_detail(var_args){ -var G__1499 = arguments.length; -switch (G__1499) { -case 1: -return quil.core.sphere_detail.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.sphere_detail.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.sphere_detail.cljs$core$IFn$_invoke$arity$1 = (function (res){ -return quil.core.current_graphics.call(null).sphereDetail((res | (0))); -}); - -quil.core.sphere_detail.cljs$core$IFn$_invoke$arity$2 = (function (ures,vres){ -return quil.core.current_graphics.call(null).sphereDetail((ures | (0)),(vres | (0))); -}); - -quil.core.sphere_detail.cljs$lang$maxFixedArity = 2; - -/** - * Adds a spot light. Lights need to be included in the draw to - * remain persistent in a looping program. Placing them in the setup - * of a looping program will cause them to only have an effect the - * first time through the loop. The affect of the r, g, and b - * parameters is determined by the current color mode. The x, y, and z - * parameters specify the position of the light and nx, ny, nz specify - * the direction or light. The angle parameter affects angle of the - * spotlight cone. - */ -quil.core.spot_light = (function quil$core$spot_light(var_args){ -var G__1502 = arguments.length; -switch (G__1502) { -case 11: -return quil.core.spot_light.cljs$core$IFn$_invoke$arity$11((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)]),(arguments[(5)]),(arguments[(6)]),(arguments[(7)]),(arguments[(8)]),(arguments[(9)]),(arguments[(10)])); - -break; -case 5: -return quil.core.spot_light.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.spot_light.cljs$core$IFn$_invoke$arity$11 = (function (r,g,b,x,y,z,nx,ny,nz,angle,concentration){ -return quil.core.current_graphics.call(null).spotLight(r,g,b,x,y,z,nx,ny,nz,angle,concentration); -}); - -quil.core.spot_light.cljs$core$IFn$_invoke$arity$5 = (function (p__1503,p__1504,p__1505,angle,concentration){ -var vec__1506 = p__1503; -var r = cljs.core.nth.call(null,vec__1506,(0),null); -var g = cljs.core.nth.call(null,vec__1506,(1),null); -var b = cljs.core.nth.call(null,vec__1506,(2),null); -var vec__1509 = p__1504; -var x = cljs.core.nth.call(null,vec__1509,(0),null); -var y = cljs.core.nth.call(null,vec__1509,(1),null); -var z = cljs.core.nth.call(null,vec__1509,(2),null); -var vec__1512 = p__1505; -var nx = cljs.core.nth.call(null,vec__1512,(0),null); -var ny = cljs.core.nth.call(null,vec__1512,(1),null); -var nz = cljs.core.nth.call(null,vec__1512,(2),null); -return quil.core.current_graphics.call(null).spotLight(r,g,b,x,y,z,nx,ny,nz,angle,concentration); -}); - -quil.core.spot_light.cljs$lang$maxFixedArity = 11; - -/** - * Squares a number (multiplies a number by itself). The result is - * always a positive number, as multiplying two negative numbers always - * yields a positive result. For example, -1 * -1 = 1. - */ -quil.core.sq = (function quil$core$sq(a){ -return quil.sketch.current_applet.call(null).sq(a); -}); -/** - * Calculates the square root of a number. The square root of a number - * is always positive, even though there may be a valid negative - * root. The square root s of number a is such that (= a (* s s)) . It - * is the opposite of squaring. - */ -quil.core.sqrt = (function quil$core$sqrt(a){ -return quil.sketch.current_applet.call(null).sqrt(a); -}); -/** - * Causes Processing to continuously execute the code within - * draw. If no-loop is called, the code in draw stops executing. - */ -quil.core.start_loop = (function quil$core$start_loop(){ -return quil.sketch.current_applet.call(null).loop(); -}); -/** - * Sets the color used to draw lines and borders around - * shapes. Converts all args to floats - */ -quil.core.stroke_float = (function quil$core$stroke_float(var_args){ -var G__1517 = arguments.length; -switch (G__1517) { -case 1: -return quil.core.stroke_float.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.stroke_float.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.stroke_float.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.stroke_float.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.stroke_float.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -return quil.core.current_graphics.call(null).stroke(gray); -}); - -quil.core.stroke_float.cljs$core$IFn$_invoke$arity$2 = (function (gray,alpha){ -return quil.core.current_graphics.call(null).stroke(gray,alpha); -}); - -quil.core.stroke_float.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).stroke(x,y,z); -}); - -quil.core.stroke_float.cljs$core$IFn$_invoke$arity$4 = (function (x,y,z,a){ -return quil.core.current_graphics.call(null).stroke(x,y,z,a); -}); - -quil.core.stroke_float.cljs$lang$maxFixedArity = 4; - -/** - * Sets the color used to draw lines and borders around - * shapes. Converts rgb to int and alpha to a float. - */ -quil.core.stroke_int = (function quil$core$stroke_int(var_args){ -var G__1520 = arguments.length; -switch (G__1520) { -case 1: -return quil.core.stroke_int.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.stroke_int.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.stroke_int.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.current_graphics.call(null).stroke(cljs.core.unchecked_int.call(null,rgb)); -}); - -quil.core.stroke_int.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.current_graphics.call(null).stroke(cljs.core.unchecked_int.call(null,rgb),alpha); -}); - -quil.core.stroke_int.cljs$lang$maxFixedArity = 2; - -/** - * Sets the color used to draw lines and borders around shapes. This - * color is either specified in terms of the RGB or HSB color depending - * on the current color-mode (the default color space is RGB, with - * each value in the range from 0 to 255). - */ -quil.core.stroke = (function quil$core$stroke(var_args){ -var G__1523 = arguments.length; -switch (G__1523) { -case 1: -return quil.core.stroke.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.stroke.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.stroke.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.stroke.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.stroke.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.stroke_float.call(null,rgb); -}); - -quil.core.stroke.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.stroke_float.call(null,rgb,alpha); -}); - -quil.core.stroke.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.stroke_float.call(null,x,y,z); -}); - -quil.core.stroke.cljs$core$IFn$_invoke$arity$4 = (function (x,y,z,a){ -return quil.core.stroke_float.call(null,x,y,z,a); -}); - -quil.core.stroke.cljs$lang$maxFixedArity = 4; - -/** - * Sets the style for rendering line endings. These ends are either - * squared, extended, or rounded and specified with the corresponding - * parameters :square, :project, and :round. The default cap is :round. - */ -quil.core.stroke_cap = (function quil$core$stroke_cap(cap_mode){ -var cap_mode__$1 = quil.util.resolve_constant_key.call(null,cap_mode,quil.core.stroke_cap_modes); -return quil.core.current_graphics.call(null).strokeCap(cljs.core.str.cljs$core$IFn$_invoke$arity$1(cap_mode__$1)); -}); -/** - * Sets the style of the joints which connect line - * segments. These joints are either mitered, beveled, or rounded and - * specified with the corresponding parameters :miter, :bevel, and - * :round. The default joint is :miter. - * - * This function is not available with the :p2d, :p3d, or :opengl - * renderers. - */ -quil.core.stroke_join = (function quil$core$stroke_join(join_mode){ -var join_mode__$1 = quil.util.resolve_constant_key.call(null,join_mode,quil.core.stroke_join_modes); -return quil.core.current_graphics.call(null).strokeJoin(cljs.core.str.cljs$core$IFn$_invoke$arity$1(join_mode__$1)); -}); -/** - * Sets the width of the stroke used for lines, points, and the border - * around shapes. All widths are set in units of pixels. - */ -quil.core.stroke_weight = (function quil$core$stroke_weight(weight){ -return quil.core.current_graphics.call(null).strokeWeight(weight); -}); -/** - * Calculates the ratio of the sine and cosine of an angle. This - * function expects the values of the angle parameter to be provided in - * radians (values from 0 to PI*2). Values are returned in the range - * infinity to -infinity. - */ -quil.core.tan = (function quil$core$tan(angle){ -return quil.sketch.current_applet.call(null).tan(angle); -}); -/** - * Returns the target framerate specified with the fn frame-rate - */ -quil.core.target_frame_rate = (function quil$core$target_frame_rate(){ -return cljs.core.deref.call(null,quil.sketch.current_applet.call(null).target_frame_rate); -}); -/** - * Returns whether fill is disabled for current graphics. - */ -quil.core.no_fill_QMARK_ = (function quil$core$no_fill_QMARK_(graphics){ -return (graphics[quil.core.no_fill_prop]) === true; -}); -/** - * Draws a char to the screen in the specified position. See text fn - * for more details. - */ -quil.core.text_char = (function quil$core$text_char(var_args){ -var G__1526 = arguments.length; -switch (G__1526) { -case 3: -return quil.core.text_char.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.text_char.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.text_char.cljs$core$IFn$_invoke$arity$3 = (function (c,x,y){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(cljs.core.char$.call(null,c),x,y); -} -}); - -quil.core.text_char.cljs$core$IFn$_invoke$arity$4 = (function (c,x,y,z){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(cljs.core.char$.call(null,c),x,y,z); -} -}); - -quil.core.text_char.cljs$lang$maxFixedArity = 4; - -/** - * Draws a number to the screen in the specified position. See text fn - * for more details. - */ -quil.core.text_num = (function quil$core$text_num(var_args){ -var G__1529 = arguments.length; -switch (G__1529) { -case 3: -return quil.core.text_num.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.text_num.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.text_num.cljs$core$IFn$_invoke$arity$3 = (function (num,x,y){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(num,x,y); -} -}); - -quil.core.text_num.cljs$core$IFn$_invoke$arity$4 = (function (num,x,y,z){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(num,x,y,z); -} -}); - -quil.core.text_num.cljs$lang$maxFixedArity = 4; - -/** - * Draws text to the screen in the position specified by the x and y - * parameters and the optional z parameter. A default font will be used - * unless a font is set with the text-font fn. Change the color of the - * text with the fill fn. The text displays in relation to the - * text-align fn, which gives the option to draw to the left, right, and - * center of the coordinates. - * - * The x1, y1, x2 and y2 parameters define a - * rectangular area to display within and may only be used with string - * data. For text drawn inside a rectangle, the coordinates are - * interpreted based on the current rect-mode setting. - */ -quil.core.text = (function quil$core$text(var_args){ -var G__1532 = arguments.length; -switch (G__1532) { -case 3: -return quil.core.text.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.text.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 5: -return quil.core.text.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.text.cljs$core$IFn$_invoke$arity$3 = (function (s,x,y){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(s,x,y); -} -}); - -quil.core.text.cljs$core$IFn$_invoke$arity$4 = (function (s,x,y,z){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(s,x,y,z); -} -}); - -quil.core.text.cljs$core$IFn$_invoke$arity$5 = (function (s,x1,y1,x2,y2){ -if(quil.core.no_fill_QMARK_.call(null,quil.core.current_graphics.call(null))){ -return null; -} else { -return quil.core.current_graphics.call(null).text(s,x1,y1,x2,y2); -} -}); - -quil.core.text.cljs$lang$maxFixedArity = 5; - -/** - * Sets the current alignment for drawing text. Available modes are: - * - * horizontal - :left, :center, and :right - * vertical - :top, :bottom, :center, and :baseline - * - * An optional second parameter specifies the vertical alignment - * mode. :baseline is the default. The :top and :center parameters are - * straightforward. The :bottom parameter offsets the line based on the - * current text-descent. For multiple lines, the final line will be - * aligned to the bottom, with the previous lines appearing above it. - * - * When using text with width and height parameters, :baseline is - * ignored, and treated as :top. (Otherwise, text would by default draw - * outside the box, since :baseline is the default setting. :baseline is - * not a useful drawing mode for text drawn in a rectangle.) - * - * The vertical alignment is based on the value of text-ascent, which - * many fonts do not specify correctly. It may be necessary to use a - * hack and offset by a few pixels by hand so that the offset looks - * correct. To do this as less of a hack, use some percentage of - * text-ascent or text-descent so that the hack works even if you - * change the size of the font. - */ -quil.core.text_align = (function quil$core$text_align(var_args){ -var G__1535 = arguments.length; -switch (G__1535) { -case 1: -return quil.core.text_align.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.text_align.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.text_align.cljs$core$IFn$_invoke$arity$1 = (function (align){ -var align__$1 = quil.util.resolve_constant_key.call(null,align,quil.core.horizontal_alignment_modes); -return quil.core.current_graphics.call(null).textAlign((align__$1 | (0))); -}); - -quil.core.text_align.cljs$core$IFn$_invoke$arity$2 = (function (align_x,align_y){ -var align_x__$1 = quil.util.resolve_constant_key.call(null,align_x,quil.core.horizontal_alignment_modes); -var align_y__$1 = quil.util.resolve_constant_key.call(null,align_y,quil.core.vertical_alignment_modes); -return quil.core.current_graphics.call(null).textAlign((align_x__$1 | (0)),(align_y__$1 | (0))); -}); - -quil.core.text_align.cljs$lang$maxFixedArity = 2; - -/** - * Returns the ascent of the current font at its current size. This - * information is useful for determining the height of the font above - * the baseline. For example, adding the text-ascent and text-descent - * values will give you the total height of the line. - */ -quil.core.text_ascent = (function quil$core$text_ascent(){ -return quil.core.current_graphics.call(null).textAscent(); -}); -/** - * Returns descent of the current font at its current size. This - * information is useful for determining the height of the font below - * the baseline. For example, adding the text-ascent and text-descent - * values will give you the total height of the line. - */ -quil.core.text_descent = (function quil$core$text_descent(){ -return quil.core.current_graphics.call(null).textDescent(); -}); -/** - * Sets the current font that will be drawn with the text - * function. Fonts must be loaded with load-font before it can be - * used. This font will be used in all subsequent calls to the text - * function. If no size parameter is input, the font will appear at its - * original size until it is changed with text-size. - * - * Because fonts are usually bitmaped, you should create fonts at the - * sizes that will be used most commonly. Using textFont without the - * size parameter will result in the cleanest-looking text. - * - * With the default (JAVA2D) and PDF renderers, it's also possible to - * enable the use of native fonts via the command - * (hint :enable-native-fonts). This will produce vector text in JAVA2D - * sketches and PDF output in cases where the vector data is available: - * when the font is still installed, or the font is created via the - * create-font fn - */ -quil.core.text_font = (function quil$core$text_font(var_args){ -var G__1538 = arguments.length; -switch (G__1538) { -case 1: -return quil.core.text_font.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.text_font.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.text_font.cljs$core$IFn$_invoke$arity$1 = (function (font){ -return quil.core.current_graphics.call(null).textFont(font); -}); - -quil.core.text_font.cljs$core$IFn$_invoke$arity$2 = (function (font,size){ -return quil.core.current_graphics.call(null).textFont(font,(size | (0))); -}); - -quil.core.text_font.cljs$lang$maxFixedArity = 2; - -/** - * Sets the spacing between lines of text in units of pixels. This - * setting will be used in all subsequent calls to the text function. - */ -quil.core.text_leading = (function quil$core$text_leading(leading){ -return quil.core.current_graphics.call(null).textLeading(leading); -}); -/** - * Sets the way text draws to the screen - available modes - * are :model and :shape - * - * In the default configuration (the :model mode), it's possible to - * rotate, scale, and place letters in two and three dimensional space. - * - * The :shape mode draws text using the glyph outlines of individual - * characters rather than as textures. This mode is only supported with - * the PDF and OPENGL renderer settings. With the PDF renderer, you - * must specify the :shape text-mode before any other drawing occurs. - * If the outlines are not available, then :shape will be ignored and - * :model will be used instead. - * - * The :shape option in OPENGL mode can be combined with begin-raw to - * write vector-accurate text to 2D and 3D output files, for instance - * DXF or PDF. :shape is not currently optimized for OPENGL, so if - * recording shape data, use :model until you're ready to capture the - * geometry with begin-raw. - */ -quil.core.text_mode = (function quil$core$text_mode(mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.text_modes); -return quil.core.current_graphics.call(null).textMode((mode__$1 | (0))); -}); -/** - * Sets the current font size. This size will be used in all - * subsequent calls to the text fn. Font size is measured in - * units of pixels. - */ -quil.core.text_size = (function quil$core$text_size(size){ -return quil.core.current_graphics.call(null).textSize(size); -}); -/** - * Sets a texture to be applied to vertex points. The texture fn must - * be called between begin-shape and end-shape and before any calls to - * vertex. - * - * When textures are in use, the fill color is ignored. Instead, use - * tint to specify the color of the texture as it is applied to the - * shape. - */ -quil.core.texture = (function quil$core$texture(img){ -return quil.core.current_graphics.call(null).texture(img); -}); -/** - * Sets the coordinate space for texture mapping. There are two - * options, :image and :normal. - * - * :image refers to the actual coordinates of the image and :normal - * refers to a normalized space of values ranging from 0 to 1. The - * default mode is :image. In :image, if an image is 100 x 200 pixels, - * mapping the image onto the entire size of a quad would require the - * points (0,0) (0,100) (100,200) (0,200). The same mapping in - * NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1). - */ -quil.core.texture_mode = (function quil$core$texture_mode(mode){ -var mode__$1 = quil.util.resolve_constant_key.call(null,mode,quil.core.texture_modes); -return quil.core.current_graphics.call(null).textureMode((mode__$1 | (0))); -}); -/** - * Calculates and returns the width of any text string. - */ -quil.core.text_width = (function quil$core$text_width(data){ -return quil.core.current_graphics.call(null).textWidth(data); -}); -/** - * Sets the fill value for displaying images. Images can be tinted to - * specified colors or made transparent by setting the alpha. - * - * To make an image transparent, but not change it's color, use white - * as the tint color and specify an alpha value. For instance, - * tint(255, 128) will make an image 50% transparent (unless - * colorMode() has been used). - * - * The value for the parameter gray must be less than or equal to the - * current maximum value as specified by colorMode(). The default - * maximum value is 255. - * - * Also used to control the coloring of textures in 3D. - */ -quil.core.tint_float = (function quil$core$tint_float(var_args){ -var G__1541 = arguments.length; -switch (G__1541) { -case 1: -return quil.core.tint_float.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.tint_float.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.tint_float.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.tint_float.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.tint_float.cljs$core$IFn$_invoke$arity$1 = (function (gray){ -return quil.core.current_graphics.call(null).tint(gray); -}); - -quil.core.tint_float.cljs$core$IFn$_invoke$arity$2 = (function (gray,alpha){ -return quil.core.current_graphics.call(null).tint(gray,alpha); -}); - -quil.core.tint_float.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.current_graphics.call(null).tint(r,g,b); -}); - -quil.core.tint_float.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,a){ -return quil.core.current_graphics.call(null).tint(g,g,b,a); -}); - -quil.core.tint_float.cljs$lang$maxFixedArity = 4; - -/** - * Sets the fill value for displaying images. Images can be tinted to - * specified colors or made transparent by setting the alpha. - * - * To make an image transparent, but not change it's color, use white - * as the tint color and specify an alpha value. For instance, - * tint(255, 128) will make an image 50% transparent (unless - * colorMode() has been used). - * - * The value for the parameter gray must be less than or equal to the - * current maximum value as specified by colorMode(). The default - * maximum value is 255. - * - * Also used to control the coloring of textures in 3D. - */ -quil.core.tint_int = (function quil$core$tint_int(var_args){ -var G__1544 = arguments.length; -switch (G__1544) { -case 1: -return quil.core.tint_int.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.tint_int.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.tint_int.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.current_graphics.call(null).tint(cljs.core.unchecked_int.call(null,rgb)); -}); - -quil.core.tint_int.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.current_graphics.call(null).tint(cljs.core.unchecked_int.call(null,rgb),alpha); -}); - -quil.core.tint_int.cljs$lang$maxFixedArity = 2; - -/** - * Sets the fill value for displaying images. Images can be tinted to - * specified colors or made transparent by setting the alpha. - * - * To make an image transparent, but not change it's color, use white - * as the tint color and specify an alpha value. For instance, - * tint(255, 128) will make an image 50% transparent (unless - * colorMode() has been used). - * - * The value for the parameter gray must be less than or equal to the - * current maximum value as specified by colorMode(). The default - * maximum value is 255. - * - * Also used to control the coloring of textures in 3D. - */ -quil.core.tint = (function quil$core$tint(var_args){ -var G__1547 = arguments.length; -switch (G__1547) { -case 1: -return quil.core.tint.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.tint.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.tint.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.tint.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.tint.cljs$core$IFn$_invoke$arity$1 = (function (rgb){ -return quil.core.current_graphics.call(null).tint(rgb); -}); - -quil.core.tint.cljs$core$IFn$_invoke$arity$2 = (function (rgb,alpha){ -return quil.core.current_graphics.call(null).tint(rgb,alpha); -}); - -quil.core.tint.cljs$core$IFn$_invoke$arity$3 = (function (r,g,b){ -return quil.core.tint_float.call(null,r,g,b); -}); - -quil.core.tint.cljs$core$IFn$_invoke$arity$4 = (function (r,g,b,a){ -return quil.core.tint_float.call(null,r,g,b,a); -}); - -quil.core.tint.cljs$lang$maxFixedArity = 4; - -/** - * Specifies an amount to displace objects within the display - * window. The x parameter specifies left/right translation, the y - * parameter specifies up/down translation, and the z parameter - * specifies translations toward/away from the screen. Transformations - * apply to everything that happens after and subsequent calls to the - * function accumulates the effect. For example, calling (translate 50 - * 0) and then (translate 20, 0) is the same as (translate 70, 0). If - * translate is called within draw, the transformation is reset when - * the loop begins again. This function can be further controlled by - * the push-matrix and pop-matrix. - */ -quil.core.translate = (function quil$core$translate(var_args){ -var G__1550 = arguments.length; -switch (G__1550) { -case 1: -return quil.core.translate.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.core.translate.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.translate.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.translate.cljs$core$IFn$_invoke$arity$1 = (function (v){ -return cljs.core.apply.call(null,quil.core.translate,v); -}); - -quil.core.translate.cljs$core$IFn$_invoke$arity$2 = (function (tx,ty){ -return quil.core.current_graphics.call(null).translate(tx,ty); -}); - -quil.core.translate.cljs$core$IFn$_invoke$arity$3 = (function (tx,ty,tz){ -return quil.core.current_graphics.call(null).translate(tx,ty,tz); -}); - -quil.core.translate.cljs$lang$maxFixedArity = 3; - -/** - * A triangle is a plane created by connecting three points. The first - * two arguments specify the first point, the middle two arguments - * specify the second point, and the last two arguments specify the - * third point. - */ -quil.core.triangle = (function quil$core$triangle(x1,y1,x2,y2,x3,y3){ -return quil.core.current_graphics.call(null).triangle(x1,y1,x2,y2,x3,y3); -}); -/** - * Unpack a binary string to an integer. See binary for converting - * integers to strings. - */ -quil.core.unbinary = (function quil$core$unbinary(str_val){ -return quil.sketch.current_applet.call(null).unbinary(cljs.core.str.cljs$core$IFn$_invoke$arity$1(str_val)); -}); -/** - * Converts a String representation of a hexadecimal number to its - * equivalent integer value. - */ -quil.core.unhex = (function quil$core$unhex(hex_str){ -return quil.sketch.current_applet.call(null).unhex(cljs.core.str.cljs$core$IFn$_invoke$arity$1(hex_str)); -}); -/** - * Updates the display window or image with the data in the pixels array. - * Use in conjunction with (pixels). If you're only reading pixels from - * the array, there's no need to call update-pixels unless there are - * changes. - * - * Certain renderers may or may not seem to require pixels or - * update-pixels. However, the rule is that any time you want to - * manipulate the pixels array, you must first call pixels, and - * after changes have been made, call update-pixels. Even if the - * renderer may not seem to use this function in the current Processing - * release, this will always be subject to change. - */ -quil.core.update_pixels = (function quil$core$update_pixels(var_args){ -var G__1553 = arguments.length; -switch (G__1553) { -case 0: -return quil.core.update_pixels.cljs$core$IFn$_invoke$arity$0(); - -break; -case 1: -return quil.core.update_pixels.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.update_pixels.cljs$core$IFn$_invoke$arity$0 = (function (){ -return quil.core.update_pixels.call(null,quil.core.current_graphics.call(null)); -}); - -quil.core.update_pixels.cljs$core$IFn$_invoke$arity$1 = (function (img){ -var temp__4657__auto___1555 = img.stored_pix_array; -if(cljs.core.truth_(temp__4657__auto___1555)){ -var pix_array_1556 = temp__4657__auto___1555; -img.pixels.set(pix_array_1556); - -img.stored_pix_array = null; -} else { -} - -return img.updatePixels(); -}); - -quil.core.update_pixels.cljs$lang$maxFixedArity = 1; - -/** - * All shapes are constructed by connecting a series of - * vertices. vertex is used to specify the vertex coordinates for - * points, lines, triangles, quads, and polygons and is used - * exclusively within the begin-shape and end-shape fns. - * - * Drawing a vertex in 3D using the z parameter requires the :p3d or - * :opengl renderers to be used. - * - * This function is also used to map a texture onto the geometry. The - * texture fn declares the texture to apply to the geometry and the u - * and v coordinates set define the mapping of this texture to the - * form. By default, the coordinates used for u and v are specified in - * relation to the image's size in pixels, but this relation can be - * changed with texture-mode. - */ -quil.core.vertex = (function quil$core$vertex(var_args){ -var G__1558 = arguments.length; -switch (G__1558) { -case 2: -return quil.core.vertex.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.core.vertex.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -case 4: -return quil.core.vertex.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); - -break; -case 5: -return quil.core.vertex.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.core.vertex.cljs$core$IFn$_invoke$arity$2 = (function (x,y){ -return quil.core.current_graphics.call(null).vertex(x,y); -}); - -quil.core.vertex.cljs$core$IFn$_invoke$arity$3 = (function (x,y,z){ -return quil.core.current_graphics.call(null).vertex(x,y,z); -}); - -quil.core.vertex.cljs$core$IFn$_invoke$arity$4 = (function (x,y,u,v){ -return quil.core.current_graphics.call(null).vertex(x,y,u,v); -}); - -quil.core.vertex.cljs$core$IFn$_invoke$arity$5 = (function (x,y,z,u,v){ -return quil.core.current_graphics.call(null).vertex(x,y,z,u,v); -}); - -quil.core.vertex.cljs$lang$maxFixedArity = 5; - -/** - * Returns the current year as an integer (2003, 2004, 2005, etc). - */ -quil.core.year = (function quil$core$year(){ -return quil.sketch.current_applet.call(null).year(); -}); -/** - * Width of the display window. The value of width is zero until size is - * called. - */ -quil.core.width = (function quil$core$width(){ -return quil.sketch.current_applet.call(null).width; -}); -var ret__4684__auto___1565 = (function (){ -/** - * Temporarily set the fill color for the body of this macro. - * The code outside of with-fill form will have the previous fill color set. - * - * The fill color has to be in a vector! - * Example: (with-fill [255] ...) - * (with-fill [10 80 98] ...) - */ -quil.core.with_fill = (function quil$core$with_fill(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1566 = arguments.length; -var i__4642__auto___1567 = (0); -while(true){ -if((i__4642__auto___1567 < len__4641__auto___1566)){ -args__4647__auto__.push((arguments[i__4642__auto___1567])); - -var G__1568 = (i__4642__auto___1567 + (1)); -i__4642__auto___1567 = G__1568; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.with_fill.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.with_fill.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,fill_args,body){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","let","cljs.core/let",-308701135,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"old-fill__1560__auto__","old-fill__1560__auto__",-175135463,null),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","current-fill","quil.core/current-fill",269663137,null),null,(1),null))))),null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","apply","cljs.core/apply",1757277831,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol("quil.core","fill","quil.core/fill",814613078,null),null,(1),null)),(new cljs.core.List(null,fill_args,null,(1),null))))),null,(1),null)),body,(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","fill","quil.core/fill",814613078,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"old-fill__1560__auto__","old-fill__1560__auto__",-175135463,null),null,(1),null))))),null,(1),null))))); -}); - -quil.core.with_fill.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.with_fill.cljs$lang$applyTo = (function (seq1561){ -var G__1562 = cljs.core.first.call(null,seq1561); -var seq1561__$1 = cljs.core.next.call(null,seq1561); -var G__1563 = cljs.core.first.call(null,seq1561__$1); -var seq1561__$2 = cljs.core.next.call(null,seq1561__$1); -var G__1564 = cljs.core.first.call(null,seq1561__$2); -var seq1561__$3 = cljs.core.next.call(null,seq1561__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1562,G__1563,G__1564,seq1561__$3); -}); - -return null; -})() -; -quil.core.with_fill.cljs$lang$macro = true; - -var ret__4684__auto___1574 = (function (){ -/** - * Temporarily set the stroke color for the body of this macro. - * The code outside of with-stroke form will have the previous stroke color set. - * - * The stroke color has to be in a vector! - * Example: (with-stroke [255] ...) - * (with-stroke [10 80 98] ...) - */ -quil.core.with_stroke = (function quil$core$with_stroke(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1575 = arguments.length; -var i__4642__auto___1576 = (0); -while(true){ -if((i__4642__auto___1576 < len__4641__auto___1575)){ -args__4647__auto__.push((arguments[i__4642__auto___1576])); - -var G__1577 = (i__4642__auto___1576 + (1)); -i__4642__auto___1576 = G__1577; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.with_stroke.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.with_stroke.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,stroke_args,body){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","let","cljs.core/let",-308701135,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"old-stroke__1569__auto__","old-stroke__1569__auto__",-1825235711,null),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","current-stroke","quil.core/current-stroke",-1148124489,null),null,(1),null))))),null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","apply","cljs.core/apply",1757277831,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol("quil.core","stroke","quil.core/stroke",577473004,null),null,(1),null)),(new cljs.core.List(null,stroke_args,null,(1),null))))),null,(1),null)),body,(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","stroke","quil.core/stroke",577473004,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"old-stroke__1569__auto__","old-stroke__1569__auto__",-1825235711,null),null,(1),null))))),null,(1),null))))); -}); - -quil.core.with_stroke.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.with_stroke.cljs$lang$applyTo = (function (seq1570){ -var G__1571 = cljs.core.first.call(null,seq1570); -var seq1570__$1 = cljs.core.next.call(null,seq1570); -var G__1572 = cljs.core.first.call(null,seq1570__$1); -var seq1570__$2 = cljs.core.next.call(null,seq1570__$1); -var G__1573 = cljs.core.first.call(null,seq1570__$2); -var seq1570__$3 = cljs.core.next.call(null,seq1570__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1571,G__1572,G__1573,seq1570__$3); -}); - -return null; -})() -; -quil.core.with_stroke.cljs$lang$macro = true; - -var ret__4684__auto___1583 = (function (){ -/** - * Performs body with translation, restores current transformation on - * exit. - */ -quil.core.with_translation = (function quil$core$with_translation(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1584 = arguments.length; -var i__4642__auto___1585 = (0); -while(true){ -if((i__4642__auto___1585 < len__4641__auto___1584)){ -args__4647__auto__.push((arguments[i__4642__auto___1585])); - -var G__1586 = (i__4642__auto___1585 + (1)); -i__4642__auto___1585 = G__1586; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.with_translation.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.with_translation.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,translation_vector,body){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","let","cljs.core/let",-308701135,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"tr__1578__auto__","tr__1578__auto__",-613961657,null),null,(1),null)),(new cljs.core.List(null,translation_vector,null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","push-matrix","quil.core/push-matrix",1356326676,null),null,(1),null))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"try","try",-1273693247,null),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","translate","quil.core/translate",150889028,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"tr__1578__auto__","tr__1578__auto__",-613961657,null),null,(1),null))))),null,(1),null)),body,(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"finally","finally",-1065347064,null),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","pop-matrix","quil.core/pop-matrix",310892617,null),null,(1),null))))),null,(1),null))))),null,(1),null))))),null,(1),null))))); -}); - -quil.core.with_translation.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.with_translation.cljs$lang$applyTo = (function (seq1579){ -var G__1580 = cljs.core.first.call(null,seq1579); -var seq1579__$1 = cljs.core.next.call(null,seq1579); -var G__1581 = cljs.core.first.call(null,seq1579__$1); -var seq1579__$2 = cljs.core.next.call(null,seq1579__$1); -var G__1582 = cljs.core.first.call(null,seq1579__$2); -var seq1579__$3 = cljs.core.next.call(null,seq1579__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1580,G__1581,G__1582,seq1579__$3); -}); - -return null; -})() -; -quil.core.with_translation.cljs$lang$macro = true; - -var ret__4684__auto___1592 = (function (){ -/** - * Performs body with rotation, restores current transformation on exit. - * Accepts a vector [angle] or [angle x-axis y-axis z-axis]. - * - * Example: - * (with-rotation [angle] - * (vertex 1 2)) - */ -quil.core.with_rotation = (function quil$core$with_rotation(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1593 = arguments.length; -var i__4642__auto___1594 = (0); -while(true){ -if((i__4642__auto___1594 < len__4641__auto___1593)){ -args__4647__auto__.push((arguments[i__4642__auto___1594])); - -var G__1595 = (i__4642__auto___1594 + (1)); -i__4642__auto___1594 = G__1595; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.with_rotation.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.with_rotation.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,rotation,body){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","let","cljs.core/let",-308701135,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"tr__1587__auto__","tr__1587__auto__",-1418251344,null),null,(1),null)),(new cljs.core.List(null,rotation,null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","push-matrix","quil.core/push-matrix",1356326676,null),null,(1),null))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"try","try",-1273693247,null),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","apply","cljs.core/apply",1757277831,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol("quil.core","rotate","quil.core/rotate",-1944995048,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"tr__1587__auto__","tr__1587__auto__",-1418251344,null),null,(1),null))))),null,(1),null)),body,(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"finally","finally",-1065347064,null),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","pop-matrix","quil.core/pop-matrix",310892617,null),null,(1),null))))),null,(1),null))))),null,(1),null))))),null,(1),null))))); -}); - -quil.core.with_rotation.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.with_rotation.cljs$lang$applyTo = (function (seq1588){ -var G__1589 = cljs.core.first.call(null,seq1588); -var seq1588__$1 = cljs.core.next.call(null,seq1588); -var G__1590 = cljs.core.first.call(null,seq1588__$1); -var seq1588__$2 = cljs.core.next.call(null,seq1588__$1); -var G__1591 = cljs.core.first.call(null,seq1588__$2); -var seq1588__$3 = cljs.core.next.call(null,seq1588__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1589,G__1590,G__1591,seq1588__$3); -}); - -return null; -})() -; -quil.core.with_rotation.cljs$lang$macro = true; - -var ret__4684__auto___1601 = (function (){ -/** - * All subsequent calls of any drawing function will draw on given - * graphics. 'with-graphics' cannot be nested (you can draw simultaneously - * only on 1 graphics) - */ -quil.core.with_graphics = (function quil$core$with_graphics(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1602 = arguments.length; -var i__4642__auto___1603 = (0); -while(true){ -if((i__4642__auto___1603 < len__4641__auto___1602)){ -args__4647__auto__.push((arguments[i__4642__auto___1603])); - -var G__1604 = (i__4642__auto___1603 + (1)); -i__4642__auto___1603 = G__1604; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.with_graphics.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.with_graphics.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,graphics,body){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","let","cljs.core/let",-308701135,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1596__auto__","gr__1596__auto__",-1397057021,null),null,(1),null)),(new cljs.core.List(null,graphics,null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","binding","cljs.core/binding",2050379843,null),null,(1),null)),(new cljs.core.List(null,cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.core","*graphics*","quil.core/*graphics*",-1088142302,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1596__auto__","gr__1596__auto__",-1397057021,null),null,(1),null)))))),null,(1),null)),(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,".beginDraw",".beginDraw",1110767550,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1596__auto__","gr__1596__auto__",-1397057021,null),null,(1),null))))),null,(1),null)),body,(new cljs.core.List(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,".endDraw",".endDraw",795589408,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol(null,"gr__1596__auto__","gr__1596__auto__",-1397057021,null),null,(1),null))))),null,(1),null))))),null,(1),null))))); -}); - -quil.core.with_graphics.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.with_graphics.cljs$lang$applyTo = (function (seq1597){ -var G__1598 = cljs.core.first.call(null,seq1597); -var seq1597__$1 = cljs.core.next.call(null,seq1597); -var G__1599 = cljs.core.first.call(null,seq1597__$1); -var seq1597__$2 = cljs.core.next.call(null,seq1597__$1); -var G__1600 = cljs.core.first.call(null,seq1597__$2); -var seq1597__$3 = cljs.core.next.call(null,seq1597__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1598,G__1599,G__1600,seq1597__$3); -}); - -return null; -})() -; -quil.core.with_graphics.cljs$lang$macro = true; - -/** - * Create and start a new visualisation applet. Can be used to create - * new sketches programmatically. See documentation for 'defsketch' for - * list of available options. - */ -quil.core.sketch = (function quil$core$sketch(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1606 = arguments.length; -var i__4642__auto___1607 = (0); -while(true){ -if((i__4642__auto___1607 < len__4641__auto___1606)){ -args__4647__auto__.push((arguments[i__4642__auto___1607])); - -var G__1608 = (i__4642__auto___1607 + (1)); -i__4642__auto___1607 = G__1608; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((0) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((0)),(0),null)):null); -return quil.core.sketch.cljs$core$IFn$_invoke$arity$variadic(argseq__4648__auto__); -}); - -quil.core.sketch.cljs$core$IFn$_invoke$arity$variadic = (function (opts){ -return cljs.core.apply.call(null,quil.sketch.sketch,opts); -}); - -quil.core.sketch.cljs$lang$maxFixedArity = (0); - -/** @this {Function} */ -quil.core.sketch.cljs$lang$applyTo = (function (seq1605){ -var self__4629__auto__ = this; -return self__4629__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq1605)); -}); - -var ret__4684__auto___1613 = (function (){ -/** - * Define and start a sketch and bind it to a var with the symbol - * app-name. If any of the options to the various callbacks are - * symbols, it wraps them in a call to var to ensure they aren't - * inlined and that redefinitions to the original fns are reflected in - * the visualisation. - * - * Available options: - * - * :size - A vector of width and height for the sketch or :fullscreen. - * Defaults to [500 300]. If you're using :fullscreen you may - * want to enable present mode - :features [:present] - * - * :renderer - Specifies the renderer type. One of :p2d, :p3d, :java2d, - * :opengl, :pdf). Defaults to :java2d. :dxf renderer - * can't be used as sketch renderer. Use begin-raw method - * instead. In clojurescript only :p2d and :p3d renderers - * are supported. - * - * :output-file - Specifies an output file path. Only used in :pdf mode. - * Not supported in clojurescript. - * - * :title - A string which will be displayed at the top of - * the sketch window. Not supported in clojurescript. - * - * :features - A vector of keywords customizing sketch behaviour. - * Supported features: - * - * :keep-on-top - Sketch window will always be above other - * windows. Note: some platforms might not - * support always-on-top windows. - * Not supported in clojurescript. - * - * :exit-on-close - Shutdown JVM when sketch is closed. - * Not supported in clojurescript. - * - * :resizable - Makes sketch resizable. - * Not supported in clojurescript. - * - * :no-safe-fns - Do not catch and print exceptions thrown - * inside functions provided to sketch (like - * draw, mouse-click, key-pressed and - * other). By default all exceptions thrown - * inside these functions are catched. This - * prevents sketch from breaking when bad - * function was provided and allows you to - * fix it and reload it on fly. You can - * disable this behaviour by enabling - * :no-safe-fns feature. - * Not supported in clojurescript. - * - * :present - Switch to present mode (fullscreen without - * borders, OS panels). You may want to use - * this feature together with :size :fullscreen. - * Not supported in clojurescript. - * - * :no-start - Disables autostart if sketch was created using - * defsketch macro. To start sketch you have to - * call function created defsketch. - * Supported only in clojurescript. - * - * :global-key-events - Allows a sketch to receive any - * keyboard event sent to the page, - * regardless of whether the canvas it is - * loaded in has focus or not. - * Supported only in clojurescript. - * - * Usage example: :features [:keep-on-top :present] - * - * :bgcolor - Sets background color for unused space in present mode. - * Color is specified in hex format: #XXXXXX. - * Example: :bgcolor "#00FFFF" (cyan background) - * Not supported in clojurescript. - * - * :display - Sets what display should be used by this sketch. - * Displays are numbered starting from 0. Example: :display 1. - * Not supported in clojurescript. - * - * :setup - A function to be called once when setting the sketch up. - * - * :draw - A function to be repeatedly called at most n times per - * second where n is the target frame-rate set for - * the visualisation. - * - * :host - String id of canvas element or DOM element itself. - * Specifies host for the sketch. Must be specified in sketch, - * may be omitted in defsketch. If ommitted in defsketch, - * :host is set to the name of the sketch. If element with - * specified id is not found on the page and page is empty - - * new canvas element will be created. Used in clojurescript. - * - * :focus-gained - Called when the sketch gains focus. - * Not supported in clojurescript. - * - * :focus-lost - Called when the sketch loses focus. - * Not supported in clojurescript. - * - * :mouse-entered - Called when the mouse enters the sketch window. - * - * :mouse-exited - Called when the mouse leaves the sketch window - * - * :mouse-pressed - Called every time a mouse button is pressed. - * - * :mouse-released - Called every time a mouse button is released. - * - * :mouse-clicked - called once after a mouse button has been pressed - * and then released. - * - * :mouse-moved - Called every time the mouse moves and a button is - * not pressed. - * - * :mouse-dragged - Called every time the mouse moves and a button is - * pressed. - * - * :mouse-wheel - Called every time mouse wheel is rotated. - * Takes 1 argument - wheel rotation, an int. - * Negative values if the mouse wheel was rotated - * up/away from the user, and positive values - * if the mouse wheel was rotated down/ towards the user - * - * :key-pressed - Called every time any key is pressed. - * - * :key-released - Called every time any key is released. - * - * :key-typed - Called once every time non-modifier keys are - * pressed. - * - * :on-close - Called once, when sketch is closed - * Not supported in clojurescript. - * - * :middleware - Vector of middleware to be applied to the sketch. - * Middleware will be applied in the same order as in comp - * function: [f g] will be applied as (f (g options)). - * - * :settings - cousin of :setup. A function to be called once when - * setting sketch up. Should be used only for (smooth) and - * (no-smooth). Due to Processing limitations these functions - * cannot be used neither in :setup nor in :draw. - */ -quil.core.defsketch = (function quil$core$defsketch(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1614 = arguments.length; -var i__4642__auto___1615 = (0); -while(true){ -if((i__4642__auto___1615 < len__4641__auto___1614)){ -args__4647__auto__.push((arguments[i__4642__auto___1615])); - -var G__1616 = (i__4642__auto___1615 + (1)); -i__4642__auto___1615 = G__1616; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.core.defsketch.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.core.defsketch.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,app_name,options){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("quil.sketch$macros","defsketch","quil.sketch$macros/defsketch",2065609719,null),null,(1),null)),(new cljs.core.List(null,app_name,null,(1),null)),options))); -}); - -quil.core.defsketch.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.core.defsketch.cljs$lang$applyTo = (function (seq1609){ -var G__1610 = cljs.core.first.call(null,seq1609); -var seq1609__$1 = cljs.core.next.call(null,seq1609); -var G__1611 = cljs.core.first.call(null,seq1609__$1); -var seq1609__$2 = cljs.core.next.call(null,seq1609__$1); -var G__1612 = cljs.core.first.call(null,seq1609__$2); -var seq1609__$3 = cljs.core.next.call(null,seq1609__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1610,G__1611,G__1612,seq1609__$3); -}); - -return null; -})() -; -quil.core.defsketch.cljs$lang$macro = true; - -/** - * Returns true if char c is a 'coded' char i.e. it is necessary to - * fetch the key-code as an integer and use that to determine the - * specific key pressed. See key-keyword. - */ -quil.core.key_coded_QMARK_ = (function quil$core$key_coded_QMARK_(c){ -return cljs.core._EQ_.call(null,(65535),String(c).charCodeAt()); -}); -/** - * Returns a keyword representing the currently pressed key. Modifier - * keys are represented as: :up, :down, :left, :right, :alt, :control, - * :shift, :command, :f1-24 - */ -quil.core.key_as_keyword = (function quil$core$key_as_keyword(){ -var key_char = quil.core.raw_key.call(null); -var code = quil.core.key_code.call(null); -if(quil.core.key_coded_QMARK_.call(null,key_char)){ -return cljs.core.get.call(null,quil.core.KEY_CODES,code,new cljs.core.Keyword(null,"unknown-key","unknown-key",255305911)); -} else { -return cljs.core.keyword.call(null,String(key_char)); -} -}); - -//# sourceMappingURL=core.js.map diff --git a/src/assets/viz/2/quil/core.js.map b/src/assets/viz/2/quil/core.js.map deleted file mode 100644 index 55fa54e..0000000 --- a/src/assets/viz/2/quil/core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/core.js","sources":["core.cljc"],"lineCount":5543,"mappings":";AAAA;;;;;;AAmBA,iCAAA,jCAEEA;AAEF,yBAAA,zBAAsBC;AAEtB;;;;;;;6BAAA,7BAMEC;AANF,AAaE,IAAA,mBAAIF;AAAJ,AAAA,oBAAAG;AAAAA;;AAEa,OAACC;;;AAIhB,AAAA,sBAAA,2CAAA,sDAAA,CAAAC,gCAAA,SAAA,uDAAA,CAAAA,gCA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7BAKEikB,kEAIC;AATH,AAYW,gCAAA,zBAACpU,iCAAQ,AAAa,AAACqU,OAAUpd;;AAE5C;;;;;2BAAA,3BAKEqd;AALF,AAUE,IAAM,WAAS,AAAChL;IACV,OAAS,AAAC3G;AADhB,AAEE,GAAI,AAACyR,qCAAWG;AACd,wDAAA,jDAACpjB,wBAAIpC,oBAAUylB;;AAGf,OAACC,4BACiB,AAACJ,OAAUE","names":["quil.core\/*graphics*","quil.core\/no-fill-prop","quil.core\/current-graphics","or__4047__auto__","quil.sketch\/current-applet","js\/Processing.prototype.PConstants","quil.core\/arc-modes","quil.core\/shape-modes","quil.core\/blend-modes","quil.core\/color-modes","quil.core\/image-formats","quil.core\/ellipse-modes","quil.core\/hint-options","quil.core\/image-modes","quil.core\/rect-modes","quil.core\/p-shape-modes","quil.core\/stroke-cap-modes","quil.core\/stroke-join-modes","quil.core\/horizontal-alignment-modes","quil.core\/vertical-alignment-modes","quil.core\/text-modes","quil.core\/texture-modes","quil.core\/texture-wrap-modes","quil.core\/filter-modes","quil.core\/cursor-modes","quil.core\/PI","js\/Math","quil.core\/HALF-PI","quil.core\/THIRD-PI","quil.core\/QUARTER-PI","quil.core\/TWO-PI","quil.core\/DEG-TO-RAD","quil.core\/RAD-TO-DEG","quil.core\/KEY-CODES","quil.core\/prc-println","msg","quil.core\/prc-print","quil.core\/get-sketch-by-id","js\/Processing","id","i__4642__auto__","len__4641__auto__","args__4647__auto__","cljs.core\/IndexedSeq","quil.core\/with-sketch","argseq__4648__auto__","cljs.core\/first","seq1282","cljs.core\/next","self__4628__auto__","G__1283","G__1284","G__1285","ret__4684__auto__","cljs.core\/sequence","cljs.core\/seq","cljs.core\/concat","cljs.core\/List","quil.util\/clj-compilation?","applet","body","quil.core\/state-atom","G__1291","quil.core\/state","js\/Error","cljs.core\/deref","cljs.core\/contains?","state","key","cljs.core\/get","quil.core\/set-state!","self__4629__auto__","seq1293","state*","cljs.core\/apply","cljs.core\/hash-map","state-vals","cljs.core\/reset!","state-map","quil.core\/abs","n","quil.core\/acos","quil.core\/alpha","cljs.core\/unchecked-int","color","G__1298","quil.core\/ambient-float","gray","x","y","z","quil.core\/ambient-int","rgb","G__1301","quil.core\/ambient","G__1304","quil.core\/ambient-light","red","green","blue","quil.core\/apply-matrix","n00","n01","n02","n03","n10","n11","n12","n13","n20","n21","n22","n23","n30","n31","n32","n33","quil.core\/arc","width","height","start","stop","quil.core\/asin","quil.core\/atan","quil.core\/atan2","quil.core\/available-fonts","js\/PFont","G__1307","quil.core\/background-float","alpha","r","g","b","a","G__1310","quil.core\/background-int","G__1313","quil.core\/background","quil.core\/background-image","img","quil.core\/begin-camera","quil.core\/begin-contour","G__1316","quil.core\/begin-shape","quil.util\/resolve-constant-key","mode","G__1319","quil.core\/bezier","x1","y1","cx1","cy1","cx2","cy2","x2","y2","z1","cz1","cz2","z2","quil.core\/bezier-detail","detail","quil.core\/bezier-point","c","d","t","quil.core\/bezier-tangent","G__1322","quil.core\/bezier-vertex","G__1325","quil.core\/binary","val","num-digits","G__1328","quil.core\/blend","dx","dy","dwidth","dheight","src-img","dest-img","quil.core\/blend-color","c1","c2","quil.core\/blue","G__1331","quil.core\/box","size","depth","quil.core\/brightness","G__1334","quil.core\/camera","eyeX","eyeY","eyeZ","centerX","centerY","centerZ","upX","upY","upZ","quil.core\/ceil","G__1337","quil.core\/color","G__1340","quil.core\/color-mode","max","max-x","max-y","max-z","max-a","quil.core\/constrain","amt","low","high","G__1343","quil.core\/copy","p__1344","cljs.core\/nth","vec__1346","p__1345","vec__1349","p__1352","vec__1354","p__1353","vec__1357","p__1360","vec__1362","p__1361","vec__1365","sx","sy","swidth","sheight","quil.core\/cos","angle","G__1370","quil.core\/create-font","name","smooth","charset","G__1373","quil.core\/create-graphics","w","h","quil.sketch\/resolve-renderer","renderer","path","quil.core\/create-image","format","quil.core\/current-fill","quil.core\/current-stroke","G__1376","quil.core\/cursor","cursor-mode","G__1379","quil.core\/cursor-image","hx","hy","G__1382","quil.core\/curve","x3","y3","x4","y4","z3","z4","quil.core\/curve-detail","quil.core\/curve-point","quil.core\/curve-tangent","quil.core\/curve-tightness","ti","G__1385","quil.core\/curve-vertex","quil.core\/day","quil.core\/degrees","radians","quil.core\/delay-frame","freeze-ms","quil.core\/directional-light","nx","ny","nz","G__1388","quil.core\/dist","quil.core\/do-record","cljs.core\/vec","seq1391","G__1392","G__1393","G__1394","graphics","quil.core\/ellipse","quil.core\/ellipse-mode","G__1400","quil.core\/emissive-float","float-val","quil.core\/emissive-int","int-val","G__1403","quil.core\/emissive","quil.core\/end-camera","quil.core\/end-contour","quil.core\/end-raw","G__1406","quil.core\/end-shape","cljs.core\/=","quil.core\/exit","quil.core\/exp","quil.core\/clear-no-fill-cljs","G__1409","quil.core\/fill-float","G__1412","quil.core\/fill-int","G__1415","quil.core\/fill","G__1418","quil.core\/display-filter","level","quil.core\/floor","quil.core\/focused","quil.core\/frame-count","quil.core\/current-frame-rate","quil.core\/frame-rate","new-rate","quil.core\/frustum","left","right","bottom","top","near","far","G__1421","quil.core\/get-pixel","quil.core\/green","col","G__1424","quil.core\/hex","quil.core\/height","quil.core\/hint","cljs.core\/Keyword","hint-type","quil.core\/hour","quil.core\/hue","G__1427","quil.core\/image","G__1430","quil.core\/image-filter","quil.core\/image-mode","quil.core\/key-code","quil.core\/key-pressed?","quil.core\/light-falloff","constant","linear","quadratic","quil.core\/lerp-color","quil.core\/lerp","quil.core\/lights","quil.core\/light-specular","G__1433","quil.core\/line","p1","p2","quil.core\/load-font","filename","quil.core\/load-image","G__1436","quil.core\/load-shader","fragment-filename","vertex-filename","quil.core\/load-shape","quil.core\/log","G__1439","quil.core\/mag","quil.core\/map-range","low1","high1","low2","high2","quil.core\/millis","quil.core\/minute","quil.core\/model-x","quil.core\/model-y","quil.core\/model-z","quil.core\/month","quil.core\/mouse-button","pred__1441","expr__1442","button-code","quil.core\/mouse-pressed?","quil.core\/mouse-x","quil.core\/mouse-y","quil.core\/no-cursor","quil.core\/no-fill","quil.core\/random-2d","Math\/cos","theta","Math\/sin","quil.core\/random-3d","phi","vx","vy","vz","G__1445","quil.core\/noise","G__1448","quil.core\/noise-detail","octaves","falloff","quil.core\/noise-seed","quil.core\/no-lights","quil.core\/no-loop","quil.core\/norm","quil.core\/normal","quil.core\/no-smooth","quil.core\/no-stroke","quil.core\/no-tint","G__1451","quil.core\/ortho","G__1454","quil.core\/perspective","fovy","aspect","z-near","z-far","G__1457","quil.core\/pixels","pix-array","quil.core\/pmouse-x","quil.core\/pmouse-y","G__1460","quil.core\/point","quil.core\/point-light","quil.core\/pop-matrix","quil.core\/pop-style","quil.core\/pow","num","exponent","quil.core\/print-camera","quil.core\/print-matrix","quil.core\/print-projection","quil.core\/push-matrix","quil.core\/push-style","quil.core\/quad","G__1463","quil.core\/quadratic-vertex","cx","cy","cz","quil.core\/radians","degrees","G__1466","quil.core\/random","min","quil.core\/random-gaussian","quil.core\/random-seed","quil.core\/raw-key","G__1469","quil.core\/rect","top-left-r","top-right-r","bottom-right-r","bottom-left-r","quil.core\/rect-mode","quil.core\/red","quil.core\/redraw","quil.core\/request-image","quil.core\/reset-matrix","quil.core\/resize","G__1472","quil.core\/rotate","quil.core\/rotate-x","quil.core\/rotate-y","quil.core\/rotate-z","quil.core\/round","quil.core\/saturation","quil.core\/save","G__1475","quil.core\/save-frame","G__1478","quil.core\/scale","s","sz","G__1481","quil.core\/screen-x","G__1484","quil.core\/screen-y","quil.core\/screen-z","quil.core\/seconds","G__1487","quil.core\/set-pixel","quil.core\/set-image","src","G__1490","quil.core\/shape","sh","quil.core\/shear-x","quil.core\/shear-y","quil.core\/shape-mode","quil.core\/shininess","shine","quil.core\/sin","G__1493","quil.core\/smooth","G__1496","quil.core\/specular","quil.core\/sphere","radius","G__1499","quil.core\/sphere-detail","res","ures","vres","G__1502","quil.core\/spot-light","p__1503","vec__1506","p__1504","vec__1509","p__1505","vec__1512","concentration","quil.core\/sq","quil.core\/sqrt","quil.core\/start-loop","G__1517","quil.core\/stroke-float","G__1520","quil.core\/stroke-int","G__1523","quil.core\/stroke","quil.core\/stroke-cap","cap-mode","quil.core\/stroke-join","join-mode","quil.core\/stroke-weight","weight","quil.core\/tan","quil.core\/target-frame-rate","quil.core\/no-fill?","G__1526","quil.core\/text-char","cljs.core\/char","G__1529","quil.core\/text-num","G__1532","quil.core\/text","G__1535","quil.core\/text-align","align","align-x","align-y","quil.core\/text-ascent","quil.core\/text-descent","G__1538","quil.core\/text-font","font","quil.core\/text-leading","leading","quil.core\/text-mode","quil.core\/text-size","quil.core\/texture","quil.core\/texture-mode","quil.core\/text-width","data","G__1541","quil.core\/tint-float","G__1544","quil.core\/tint-int","G__1547","quil.core\/tint","G__1550","quil.core\/translate","v","tx","ty","tz","quil.core\/triangle","quil.core\/unbinary","str-val","quil.core\/unhex","hex-str","G__1553","quil.core\/update-pixels","temp__4657__auto__","G__1558","quil.core\/vertex","u","quil.core\/year","quil.core\/width","quil.core\/with-fill","seq1561","G__1562","G__1563","G__1564","fill-args","quil.core\/with-stroke","seq1570","G__1571","G__1572","G__1573","stroke-args","quil.core\/with-translation","seq1579","G__1580","G__1581","G__1582","translation-vector","quil.core\/with-rotation","seq1588","G__1589","G__1590","G__1591","rotation","quil.core\/with-graphics","seq1597","G__1598","G__1599","G__1600","quil.core\/sketch","seq1605","quil.sketch\/sketch","opts","quil.core\/defsketch","seq1609","G__1610","G__1611","G__1612","app-name","options","quil.core\/key-coded?","js\/String","quil.core\/key-as-keyword","key-char","code","cljs.core\/keyword"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/middleware.cljc b/src/assets/viz/2/quil/middleware.cljc deleted file mode 100644 index a8f5672..0000000 --- a/src/assets/viz/2/quil/middleware.cljc +++ /dev/null @@ -1,144 +0,0 @@ -(ns ^{:doc "Quil middleware."} - quil.middleware - (:require [quil.middlewares.fun-mode :as fun-mode] - #?(:clj [quil.middlewares.pause-on-error :as pause-on-error]) - [quil.middlewares.navigation-3d :as navigation-3d] - [quil.middlewares.navigation-2d :as navigation-2d] - )) - -(defn ^{:requires-bindings false - :category "Middleware" - :subcategory nil - :ns "quil.middleware" - :added "2.1.0"} - fun-mode - "Introduces function mode. Adds 'update' function which takes current - state and returns new state. Makes all other functions (setup, draw, - mouse-click, etc) state-aware. See wiki for more details." - [options] - (fun-mode/fun-mode options)) - -#?(:clj -(defn ^{:requires-bindings false - :category "Middleware" - :subcategory nil - :ns "quil.middleware" - :added "2.2.0"} - pause-on-error - "Pauses sketch if any of user-provided handlers throws error. - It allows to fix the error on the fly and continue sketch. - May be good alternative to default '500ms pause if exception' - behaviour." - [options] - (pause-on-error/pause-on-error options))) - -(defn ^{:requires-bindings false - :category "Middleware" - :subcategory nil - :ns "quil.middleware" - :added "2.2.0"} - navigation-3d - "Enables navigation in 3D space. Similar to how it is done in - shooters: WASD navigation, space is go up, drag mouse to look around. - This middleware requires fun-mode. - - - Navigation - - * Drag mouse to look around. You can change settings to bind - mouse-moved instead of mouse-dragged to look around. See - customization info below. - - * Keyboard: - * w - go forward - * s - go backward - * a - strafe left - * d - strafe right - * space - go up - * z - go down, can't bind to ctrl, limitation of Processing - - - Customization - - You can customize this middleware by providing map as - :navigation-3d option in defsketch/sketch. Map can have following - optional keys: - - :position - vector of 3 numbers, initial camera position. Default - is the same as in 'camera' function. - - :straight - vector of 3 numbers, direction you'll be looking at. - Default is [0 0 -1] (looking down). - - :up - vector of 3 numbers, 'up' direction. Default is [0 1 0]. - - :pixels-in-360 - number, mouse sensitivity. Defines how many pixels - you need to move/drag you mouse to rotate 360 degrees. - The less the number the more sensitive is mouse. - Default is 1000. - - :step-size - number, number of pixels you move on each key event (wasd). - Default is 20. - - :rotate-on - keyword, either :mouse-dragged or :mouse-moved. Specifies - on which mouse event camera should rotate. Default is - :mouse-dragged. - - - Accessing position information from sketch - - navigation-3d uses fun-mode under the hood so all position-related - information is stored in the state map. It means that you can access in - draw/update/any handler and modify it if you need to. Position - information is a map which is stored under :navigation-3d key in the - state map. Position consists of 3 values: :position, :straight and :up. - See \"Customization\" section above for more details. - - Usage example: - - (q/defsketch my-sketch - ... - :middleware [m/fun-mode m/navigation-3d]) - - See wiki article for more(?) details: - https://github.com/quil/quil/wiki/Navigation-3D" - [options] - (navigation-3d/navigation-3d options)) - -(defn ^{:requires-bindings false - :category "Middleware" - :subcategory nil - :ns "quil.middleware" - :added "2.2.6"} - navigation-2d - "Enables navigation over 2D sketch. Drag mouse to change the center of the - sketch and mouse wheel controls zoom. This middleware requires fun-mode. - - Customization - - You can customize this middleware by providing map as - :navigation-2d option in defsketch/sketch. Map can have following - optional keys: - - :position - vector of 2 numbers, x and y - center of the screen. - Default is width/2, height/2. - - :zoom - number indicating current zoom level. Default is 1. - - Accessing position information from sketch - - navigation-2d uses fun-mode under the hood so all position-related - information is stored in the state map. It means that you can access in - draw/update/any handler and modify it if you need to. Position - information is a map which is stored under :navigation-2d key in the - state map. Position consists of 2 values: :position and :zoom. - See \"Customization\" section above for more details. - - Usage example: - - (q/defsketch my-sketch - ... - :middleware [m/fun-mode m/navigation-2d]) -" - [options] - (navigation-2d/navigation-2d options)) diff --git a/src/assets/viz/2/quil/middleware.cljc.cache.json b/src/assets/viz/2/quil/middleware.cljc.cache.json deleted file mode 100644 index ac5c7df..0000000 --- a/src/assets/viz/2/quil/middleware.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.middleware","~:imports",null,"~:requires",["^ ","~$fun-mode","~$quil.middlewares.fun-mode","^:","^:","~$navigation-3d","~$quil.middlewares.navigation-3d","^<","^<","~$navigation-2d","~$quil.middlewares.navigation-2d","^>","^>"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","^9",["^ ","~:category","Middleware","~:protocol-inline",null,"~:meta",["^ ","^B","Middleware","~:added","2.1.0","~:ns","quil.middleware","~:subcategory",null,"~:file","/home/mediocregopher/src/viz/out/quil/middleware.cljc","~:end-column",11,"~:column",3,"~:requires-bindings",false,"~:line",14,"~:end-line",14,"~:arglists",["~#list",["~$quote",["^O",[["~$options"]]]]],"~:doc","Introduces function mode. Adds 'update' function which takes current\n state and returns new state. Makes all other functions (setup, draw,\n mouse-click, etc) state-aware. See wiki for more details."],"^E","2.1.0","^F","quil.middleware","^5","~$quil.middleware/fun-mode","^G",null,"^H","out/quil/middleware.cljc","^I",11,"~:method-params",["^O",[["^Q"]]],"~:protocol-impl",null,"~:arglists-meta",["^O",[null,null]],"^J",1,"~:variadic?",false,"^K",false,"^L",9,"~:ret-tag",["^4",[null,"~$any"]],"^M",14,"~:max-fixed-arity",1,"~:fn-var",true,"^N",["^O",["^P",["^O",[["^Q"]]]]],"^R","Introduces function mode. Adds 'update' function which takes current\n state and returns new state. Makes all other functions (setup, draw,\n mouse-click, etc) state-aware. See wiki for more details."],"^;",["^ ","^B","Middleware","^C",null,"^D",["^ ","^B","Middleware","^E","2.2.0","^F","quil.middleware","^G",null,"^H","/home/mediocregopher/src/viz/out/quil/middleware.cljc","^I",16,"^J",3,"^K",false,"^L",40,"^M",40,"^N",["^O",["^P",["^O",[["^Q"]]]]],"^R","Enables navigation in 3D space. Similar to how it is done in\n shooters: WASD navigation, space is go up, drag mouse to look around.\n This middleware requires fun-mode.\n\n\n Navigation\n\n * Drag mouse to look around. You can change settings to bind\n mouse-moved instead of mouse-dragged to look around. See\n customization info below.\n\n * Keyboard:\n * w - go forward\n * s - go backward\n * a - strafe left\n * d - strafe right\n * space - go up\n * z - go down, can't bind to ctrl, limitation of Processing\n\n\n Customization\n\n You can customize this middleware by providing map as\n :navigation-3d option in defsketch/sketch. Map can have following\n optional keys:\n\n :position - vector of 3 numbers, initial camera position. Default\n is the same as in 'camera' function.\n\n :straight - vector of 3 numbers, direction you'll be looking at.\n Default is [0 0 -1] (looking down).\n\n :up - vector of 3 numbers, 'up' direction. Default is [0 1 0].\n\n :pixels-in-360 - number, mouse sensitivity. Defines how many pixels\n you need to move/drag you mouse to rotate 360 degrees.\n The less the number the more sensitive is mouse.\n Default is 1000.\n\n :step-size - number, number of pixels you move on each key event (wasd).\n Default is 20.\n\n :rotate-on - keyword, either :mouse-dragged or :mouse-moved. Specifies\n on which mouse event camera should rotate. Default is\n :mouse-dragged.\n\n\n Accessing position information from sketch\n\n navigation-3d uses fun-mode under the hood so all position-related\n information is stored in the state map. It means that you can access in\n draw/update/any handler and modify it if you need to. Position\n information is a map which is stored under :navigation-3d key in the\n state map. Position consists of 3 values: :position, :straight and :up.\n See \"Customization\" section above for more details.\n\n Usage example:\n\n (q/defsketch my-sketch\n ...\n :middleware [m/fun-mode m/navigation-3d])\n\n See wiki article for more(?) details:\n https://github.com/quil/quil/wiki/Navigation-3D"],"^E","2.2.0","^F","quil.middleware","^5","~$quil.middleware/navigation-3d","^G",null,"^H","out/quil/middleware.cljc","^I",16,"^T",["^O",[["^Q"]]],"^U",null,"^V",["^O",[null,null]],"^J",1,"^W",false,"^K",false,"^L",35,"^X","^Y","^M",40,"^Z",1,"^[",true,"^N",["^O",["^P",["^O",[["^Q"]]]]],"^R","Enables navigation in 3D space. Similar to how it is done in\n shooters: WASD navigation, space is go up, drag mouse to look around.\n This middleware requires fun-mode.\n\n\n Navigation\n\n * Drag mouse to look around. You can change settings to bind\n mouse-moved instead of mouse-dragged to look around. See\n customization info below.\n\n * Keyboard:\n * w - go forward\n * s - go backward\n * a - strafe left\n * d - strafe right\n * space - go up\n * z - go down, can't bind to ctrl, limitation of Processing\n\n\n Customization\n\n You can customize this middleware by providing map as\n :navigation-3d option in defsketch/sketch. Map can have following\n optional keys:\n\n :position - vector of 3 numbers, initial camera position. Default\n is the same as in 'camera' function.\n\n :straight - vector of 3 numbers, direction you'll be looking at.\n Default is [0 0 -1] (looking down).\n\n :up - vector of 3 numbers, 'up' direction. Default is [0 1 0].\n\n :pixels-in-360 - number, mouse sensitivity. Defines how many pixels\n you need to move/drag you mouse to rotate 360 degrees.\n The less the number the more sensitive is mouse.\n Default is 1000.\n\n :step-size - number, number of pixels you move on each key event (wasd).\n Default is 20.\n\n :rotate-on - keyword, either :mouse-dragged or :mouse-moved. Specifies\n on which mouse event camera should rotate. Default is\n :mouse-dragged.\n\n\n Accessing position information from sketch\n\n navigation-3d uses fun-mode under the hood so all position-related\n information is stored in the state map. It means that you can access in\n draw/update/any handler and modify it if you need to. Position\n information is a map which is stored under :navigation-3d key in the\n state map. Position consists of 3 values: :position, :straight and :up.\n See \"Customization\" section above for more details.\n\n Usage example:\n\n (q/defsketch my-sketch\n ...\n :middleware [m/fun-mode m/navigation-3d])\n\n See wiki article for more(?) details:\n https://github.com/quil/quil/wiki/Navigation-3D"],"^=",["^ ","^B","Middleware","^C",null,"^D",["^ ","^B","Middleware","^E","2.2.6","^F","quil.middleware","^G",null,"^H","/home/mediocregopher/src/viz/out/quil/middleware.cljc","^I",16,"^J",3,"^K",false,"^L",113,"^M",113,"^N",["^O",["^P",["^O",[["^Q"]]]]],"^R","Enables navigation over 2D sketch. Drag mouse to change the center of the\n sketch and mouse wheel controls zoom. This middleware requires fun-mode.\n\n Customization\n\n You can customize this middleware by providing map as\n :navigation-2d option in defsketch/sketch. Map can have following\n optional keys:\n\n :position - vector of 2 numbers, x and y - center of the screen.\n Default is width/2, height/2.\n\n :zoom - number indicating current zoom level. Default is 1.\n\n Accessing position information from sketch\n\n navigation-2d uses fun-mode under the hood so all position-related\n information is stored in the state map. It means that you can access in\n draw/update/any handler and modify it if you need to. Position\n information is a map which is stored under :navigation-2d key in the\n state map. Position consists of 2 values: :position and :zoom.\n See \"Customization\" section above for more details.\n\n Usage example:\n\n (q/defsketch my-sketch\n ...\n :middleware [m/fun-mode m/navigation-2d])\n"],"^E","2.2.6","^F","quil.middleware","^5","~$quil.middleware/navigation-2d","^G",null,"^H","out/quil/middleware.cljc","^I",16,"^T",["^O",[["^Q"]]],"^U",null,"^V",["^O",[null,null]],"^J",1,"^W",false,"^K",false,"^L",108,"^X","^Y","^M",113,"^Z",1,"^[",true,"^N",["^O",["^P",["^O",[["^Q"]]]]],"^R","Enables navigation over 2D sketch. Drag mouse to change the center of the\n sketch and mouse wheel controls zoom. This middleware requires fun-mode.\n\n Customization\n\n You can customize this middleware by providing map as\n :navigation-2d option in defsketch/sketch. Map can have following\n optional keys:\n\n :position - vector of 2 numbers, x and y - center of the screen.\n Default is width/2, height/2.\n\n :zoom - number indicating current zoom level. Default is 1.\n\n Accessing position information from sketch\n\n navigation-2d uses fun-mode under the hood so all position-related\n information is stored in the state map. It means that you can access in\n draw/update/any handler and modify it if you need to. Position\n information is a map which is stored under :navigation-2d key in the\n state map. Position consists of 2 values: :position and :zoom.\n See \"Customization\" section above for more details.\n\n Usage example:\n\n (q/defsketch my-sketch\n ...\n :middleware [m/fun-mode m/navigation-2d])\n"]],"~:cljs.spec/registry-ref",[],"~:require-macros",null,"^R","Quil middleware."] \ No newline at end of file diff --git a/src/assets/viz/2/quil/middleware.js b/src/assets/viz/2/quil/middleware.js deleted file mode 100644 index fcac0f6..0000000 --- a/src/assets/viz/2/quil/middleware.js +++ /dev/null @@ -1,118 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.middleware'); -goog.require('cljs.core'); -goog.require('quil.middlewares.fun_mode'); -goog.require('quil.middlewares.navigation_3d'); -goog.require('quil.middlewares.navigation_2d'); -/** - * Introduces function mode. Adds 'update' function which takes current - * state and returns new state. Makes all other functions (setup, draw, - * mouse-click, etc) state-aware. See wiki for more details. - */ -quil.middleware.fun_mode = (function quil$middleware$fun_mode(options){ -return quil.middlewares.fun_mode.fun_mode.call(null,options); -}); -/** - * Enables navigation in 3D space. Similar to how it is done in - * shooters: WASD navigation, space is go up, drag mouse to look around. - * This middleware requires fun-mode. - * - * - * Navigation - * - * * Drag mouse to look around. You can change settings to bind - * mouse-moved instead of mouse-dragged to look around. See - * customization info below. - * - * * Keyboard: - * * w - go forward - * * s - go backward - * * a - strafe left - * * d - strafe right - * * space - go up - * * z - go down, can't bind to ctrl, limitation of Processing - * - * - * Customization - * - * You can customize this middleware by providing map as - * :navigation-3d option in defsketch/sketch. Map can have following - * optional keys: - * - * :position - vector of 3 numbers, initial camera position. Default - * is the same as in 'camera' function. - * - * :straight - vector of 3 numbers, direction you'll be looking at. - * Default is [0 0 -1] (looking down). - * - * :up - vector of 3 numbers, 'up' direction. Default is [0 1 0]. - * - * :pixels-in-360 - number, mouse sensitivity. Defines how many pixels - * you need to move/drag you mouse to rotate 360 degrees. - * The less the number the more sensitive is mouse. - * Default is 1000. - * - * :step-size - number, number of pixels you move on each key event (wasd). - * Default is 20. - * - * :rotate-on - keyword, either :mouse-dragged or :mouse-moved. Specifies - * on which mouse event camera should rotate. Default is - * :mouse-dragged. - * - * - * Accessing position information from sketch - * - * navigation-3d uses fun-mode under the hood so all position-related - * information is stored in the state map. It means that you can access in - * draw/update/any handler and modify it if you need to. Position - * information is a map which is stored under :navigation-3d key in the - * state map. Position consists of 3 values: :position, :straight and :up. - * See "Customization" section above for more details. - * - * Usage example: - * - * (q/defsketch my-sketch - * ... - * :middleware [m/fun-mode m/navigation-3d]) - * - * See wiki article for more(?) details: - * https://github.com/quil/quil/wiki/Navigation-3D - */ -quil.middleware.navigation_3d = (function quil$middleware$navigation_3d(options){ -return quil.middlewares.navigation_3d.navigation_3d.call(null,options); -}); -/** - * Enables navigation over 2D sketch. Drag mouse to change the center of the - * sketch and mouse wheel controls zoom. This middleware requires fun-mode. - * - * Customization - * - * You can customize this middleware by providing map as - * :navigation-2d option in defsketch/sketch. Map can have following - * optional keys: - * - * :position - vector of 2 numbers, x and y - center of the screen. - * Default is width/2, height/2. - * - * :zoom - number indicating current zoom level. Default is 1. - * - * Accessing position information from sketch - * - * navigation-2d uses fun-mode under the hood so all position-related - * information is stored in the state map. It means that you can access in - * draw/update/any handler and modify it if you need to. Position - * information is a map which is stored under :navigation-2d key in the - * state map. Position consists of 2 values: :position and :zoom. - * See "Customization" section above for more details. - * - * Usage example: - * - * (q/defsketch my-sketch - * ... - * :middleware [m/fun-mode m/navigation-2d]) - */ -quil.middleware.navigation_2d = (function quil$middleware$navigation_2d(options){ -return quil.middlewares.navigation_2d.navigation_2d.call(null,options); -}); - -//# sourceMappingURL=middleware.js.map diff --git a/src/assets/viz/2/quil/middleware.js.map b/src/assets/viz/2/quil/middleware.js.map deleted file mode 100644 index 63af250..0000000 --- a/src/assets/viz/2/quil/middleware.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/middleware.js","sources":["middleware.cljc"],"lineCount":118,"mappings":";AAAA;;;;;AAQA;;;;;2BAAA,3BAKEA,8DAIC;AATH,AAUE,OAACC,6CAAkBC;;AAgBrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAA,hCAKEC,wEAiEC;AAtEH,AAuEE,OAACC,uDAA4BF;;AAE\/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAA,hCAKEG,wEA8BC;AAnCH,AAoCE,OAACC,uDAA4BJ","names":["quil.middleware\/fun-mode","quil.middlewares.fun-mode\/fun-mode","options","quil.middleware\/navigation-3d","quil.middlewares.navigation-3d\/navigation-3d","quil.middleware\/navigation-2d","quil.middlewares.navigation-2d\/navigation-2d"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/deprecated_options.cljc b/src/assets/viz/2/quil/middlewares/deprecated_options.cljc deleted file mode 100644 index 6ed40d2..0000000 --- a/src/assets/viz/2/quil/middlewares/deprecated_options.cljc +++ /dev/null @@ -1,26 +0,0 @@ -(ns quil.middlewares.deprecated-options) - -(def ^:private deprecated - {:decor ["2.0" "Try :features [:present] for similar effect"] - :target ["2.0" "Use :features [:keep-on-top] instead."] - :safe-draw-fn ["2.0" "Use :features [:no-safe-fns] instead."]}) - -(defn- check-features-vector [features] - (let [features (set features)] - (when (features :no-safe-draw) - (println "Feature :no-safe-draw was renamed to :no-safe-fns in Quil 2.1." - "Use :feature [:no-safe-fns] now.")) - (disj features :no-safe-draw))) - -(defn deprecated-options - "Checks if options map contains deprected options and removes them. - Prints messages how to fix deprecated functions." - [options] - (let [options (update-in options [:features] check-features-vector)] - (->> (for [[name value] options] - (if-let [[version message] (deprecated name)] - (do (println name "option was removed in Quil" version "." message) - nil) - [name value])) - (remove nil?) - (into {})))) diff --git a/src/assets/viz/2/quil/middlewares/deprecated_options.cljc.cache.json b/src/assets/viz/2/quil/middlewares/deprecated_options.cljc.cache.json deleted file mode 100644 index b0ba153..0000000 --- a/src/assets/viz/2/quil/middlewares/deprecated_options.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.middlewares.deprecated-options","~:imports",null,"~:requires",null,"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$deprecated",["^ ","^5","~$quil.middlewares.deprecated-options/deprecated","~:file","out/quil/middlewares/deprecated_options.cljc","~:line",3,"~:column",1,"~:end-line",3,"~:end-column",26,"~:private",true,"~:meta",["^ ","^>","/home/mediocregopher/src/viz/out/quil/middlewares/deprecated_options.cljc","^?",3,"^@",16,"^A",3,"^B",26,"^C",true],"~:tag","~$cljs.core/IMap"],"~$check-features-vector",["^ ","~:protocol-inline",null,"^D",["^ ","^>","/home/mediocregopher/src/viz/out/quil/middlewares/deprecated_options.cljc","^?",8,"^@",8,"^A",8,"^B",29,"^C",true,"~:arglists",["~#list",["~$quote",["^J",[["~$features"]]]]]],"^C",true,"^5","~$quil.middlewares.deprecated-options/check-features-vector","^>","out/quil/middlewares/deprecated_options.cljc","^B",29,"~:method-params",["^J",[["^L"]]],"~:protocol-impl",null,"~:arglists-meta",["^J",[null,null]],"^@",1,"~:variadic?",false,"^?",8,"~:ret-tag","~$any","^A",8,"~:max-fixed-arity",1,"~:fn-var",true,"^I",["^J",["^K",["^J",[["^L"]]]]]],"~$deprecated-options",["^ ","^H",null,"^D",["^ ","^>","/home/mediocregopher/src/viz/out/quil/middlewares/deprecated_options.cljc","^?",15,"^@",7,"^A",15,"^B",25,"^I",["^J",["^K",["^J",[["~$options"]]]]],"~:doc","Checks if options map contains deprected options and removes them.\n Prints messages how to fix deprecated functions."],"^5","~$quil.middlewares.deprecated-options/deprecated-options","^>","out/quil/middlewares/deprecated_options.cljc","^B",25,"^N",["^J",[["^W"]]],"^O",null,"^P",["^J",[null,null]],"^@",1,"^Q",false,"^?",15,"^R","^S","^A",15,"^T",1,"^U",true,"^I",["^J",["^K",["^J",[["^W"]]]]],"^X","Checks if options map contains deprected options and removes them.\n Prints messages how to fix deprecated functions."]],"~:cljs.spec/registry-ref",[],"~:require-macros",null,"~:cljs.analyzer/constants",["^ ","~:seen",["^4",["~:features","~:decor","~:safe-draw-fn","~:no-safe-draw","~:target"]],"~:order",["^13","^16","^14","^15","^12"]],"^X",null] \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/deprecated_options.js b/src/assets/viz/2/quil/middlewares/deprecated_options.js deleted file mode 100644 index e80614c..0000000 --- a/src/assets/viz/2/quil/middlewares/deprecated_options.js +++ /dev/null @@ -1,95 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.middlewares.deprecated_options'); -goog.require('cljs.core'); -quil.middlewares.deprecated_options.deprecated = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"decor","decor",-1730969431),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["2.0","Try :features [:present] for similar effect"], null),new cljs.core.Keyword(null,"target","target",253001721),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["2.0","Use :features [:keep-on-top] instead."], null),new cljs.core.Keyword(null,"safe-draw-fn","safe-draw-fn",1454900202),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["2.0","Use :features [:no-safe-fns] instead."], null)], null); -quil.middlewares.deprecated_options.check_features_vector = (function quil$middlewares$deprecated_options$check_features_vector(features){ -var features__$1 = cljs.core.set.call(null,features); -if(cljs.core.truth_(features__$1.call(null,new cljs.core.Keyword(null,"no-safe-draw","no-safe-draw",-1157778157)))){ -cljs.core.println.call(null,"Feature :no-safe-draw was renamed to :no-safe-fns in Quil 2.1.","Use :feature [:no-safe-fns] now."); -} else { -} - -return cljs.core.disj.call(null,features__$1,new cljs.core.Keyword(null,"no-safe-draw","no-safe-draw",-1157778157)); -}); -/** - * Checks if options map contains deprected options and removes them. - * Prints messages how to fix deprecated functions. - */ -quil.middlewares.deprecated_options.deprecated_options = (function quil$middlewares$deprecated_options$deprecated_options(options){ -var options__$1 = cljs.core.update_in.call(null,options,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"features","features",-1146962336)], null),quil.middlewares.deprecated_options.check_features_vector); -return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.remove.call(null,cljs.core.nil_QMARK_,(function (){var iter__4434__auto__ = ((function (options__$1){ -return (function quil$middlewares$deprecated_options$deprecated_options_$_iter__1106(s__1107){ -return (new cljs.core.LazySeq(null,((function (options__$1){ -return (function (){ -var s__1107__$1 = s__1107; -while(true){ -var temp__4657__auto__ = cljs.core.seq.call(null,s__1107__$1); -if(temp__4657__auto__){ -var s__1107__$2 = temp__4657__auto__; -if(cljs.core.chunked_seq_QMARK_.call(null,s__1107__$2)){ -var c__4432__auto__ = cljs.core.chunk_first.call(null,s__1107__$2); -var size__4433__auto__ = cljs.core.count.call(null,c__4432__auto__); -var b__1109 = cljs.core.chunk_buffer.call(null,size__4433__auto__); -if((function (){var i__1108 = (0); -while(true){ -if((i__1108 < size__4433__auto__)){ -var vec__1110 = cljs.core._nth.call(null,c__4432__auto__,i__1108); -var name = cljs.core.nth.call(null,vec__1110,(0),null); -var value = cljs.core.nth.call(null,vec__1110,(1),null); -cljs.core.chunk_append.call(null,b__1109,(function (){var temp__4655__auto__ = quil.middlewares.deprecated_options.deprecated.call(null,name); -if(cljs.core.truth_(temp__4655__auto__)){ -var vec__1113 = temp__4655__auto__; -var version = cljs.core.nth.call(null,vec__1113,(0),null); -var message = cljs.core.nth.call(null,vec__1113,(1),null); -cljs.core.println.call(null,name,"option was removed in Quil",version,".",message); - -return null; -} else { -return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [name,value], null); -} -})()); - -var G__1122 = (i__1108 + (1)); -i__1108 = G__1122; -continue; -} else { -return true; -} -break; -} -})()){ -return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__1109),quil$middlewares$deprecated_options$deprecated_options_$_iter__1106.call(null,cljs.core.chunk_rest.call(null,s__1107__$2))); -} else { -return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__1109),null); -} -} else { -var vec__1116 = cljs.core.first.call(null,s__1107__$2); -var name = cljs.core.nth.call(null,vec__1116,(0),null); -var value = cljs.core.nth.call(null,vec__1116,(1),null); -return cljs.core.cons.call(null,(function (){var temp__4655__auto__ = quil.middlewares.deprecated_options.deprecated.call(null,name); -if(cljs.core.truth_(temp__4655__auto__)){ -var vec__1119 = temp__4655__auto__; -var version = cljs.core.nth.call(null,vec__1119,(0),null); -var message = cljs.core.nth.call(null,vec__1119,(1),null); -cljs.core.println.call(null,name,"option was removed in Quil",version,".",message); - -return null; -} else { -return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [name,value], null); -} -})(),quil$middlewares$deprecated_options$deprecated_options_$_iter__1106.call(null,cljs.core.rest.call(null,s__1107__$2))); -} -} else { -return null; -} -break; -} -});})(options__$1)) -,null,null)); -});})(options__$1)) -; -return iter__4434__auto__.call(null,options__$1); -})())); -}); - -//# sourceMappingURL=deprecated_options.js.map diff --git a/src/assets/viz/2/quil/middlewares/deprecated_options.js.map b/src/assets/viz/2/quil/middlewares/deprecated_options.js.map deleted file mode 100644 index fdcedf9..0000000 --- a/src/assets/viz/2/quil/middlewares/deprecated_options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/middlewares\/deprecated_options.js","sources":["deprecated_options.cljc"],"lineCount":95,"mappings":";AAAA;;AAEA,iDAAA,2CAAA,wDAAA,mFAAA,MAAA,sDAAA,wDAAA,mFAAA,MAAA,gDAAA,qEAAA,mFAAA,MAAA,loBAAeA;AAKf,4DAAA,5DAAOC,gIAAuB;AAA9B,AACE,IAAM,eAAS,AAACC,wBAAIC;AAApB,AACE,oBAAM,uBAAA,vBAACA;AAAP,AACE,4BAAA,iEAAA,7FAACC;;AADH;;AAGA,6CAAA,tCAACC,yBAAKF;;AAEV;;;;yDAAA,zDAAMG,0HAGH;AAHH,AAIE,IAAM,cAAQ,sCAAA,mFAAA,zHAACC,8BAAUC,iKAAoBP;AAA7C,mHACO,iBAAA,qBAAA,tFAKA,AAACuC,2BAAOC,9FACR,gCAAA,zBAACC;qFAND;AAAA,AAAA,YAAAjC,kBAAA,KAAA;;AAAA,AAAA,IAAA,cAAAC;;AAAA,AAAA,IAAA,qBAAA,AAAAC,wBAAAD;AAAA,AAAA,GAAAE;AAAA,AAAA,IAAA,cAAAA;AAAA,AAAA,GAAA,AAAAC,uCAAAH;AAAA,IAAA,kBA61E0C,AAAAiC,gCAAAjC;IA71E1C,qBAAA,AAAAI,0BAAAC;IAAA,UAAA,AAAAC,iCAAAC;AAAA,AAAA,GAAA,AAAA,iBAAA,UAAA;;AAAA,AAAA,GAAA,CAAAC,UAAAD;AAAA,IAAA,YAAA,AAAAE,yBAAAJ,gBAAAG;WAAA,AAAAE,wBAAAC,UAAA,IAAA,7CAAO;YAAP,AAAAD,wBAAAC,UAAA,IAAA,9CAAY;AAAZ,AAAA,AAAA,AAAAC,iCAAAC,QACE,iBAAA,qBAA2B,AAACvB,yDAAWoC;AAAvC,AAAA,oBAAAH;AAAA,IAAA,YAAAA;cAAA,AAAAb,wBAAAc,UAAA,IAAA,hDAAU;cAAV,AAAAd,wBAAAc,UAAA,IAAA,hDAAkB;AAAlB,AACE,AAAI,iCAAA,qCAAA,tEAAC9B,4BAAQgC,kCAAkCC,YAAYC;;AAA3D;;AADF,0FAGGF,KAAKG;;;;AAJV,cAAA,CAAArB,UAAA;;;;AAAA;;;;;AAAA,OAAAM,+BAAA,AAAAC,0BAAAF,SAAA,AAAAG,8EAAA,AAAAC,+BAAAjB;;AAAA,OAAAc,+BAAA,AAAAC,0BAAAF,SAAA;;;AAAA,IAAA,YAAA,AAAAK,0BAAAlB;WAAA,AAAAU,wBAAAS,UAAA,IAAA,7CAAO;YAAP,AAAAT,wBAAAS,UAAA,IAAA,9CAAY;AAAZ,AAAA,OAAAC,yBACE,iBAAA,qBAA2B,AAAC9B,yDAAWoC;AAAvC,AAAA,oBAAAH;AAAA,IAAA,YAAAA;cAAA,AAAAb,wBAAAe,UAAA,IAAA,hDAAU;cAAV,AAAAf,wBAAAe,UAAA,IAAA,hDAAkB;AAAlB,AACE,AAAI,iCAAA,qCAAA,tEAAC\/B,4BAAQgC,kCAAkCC,YAAYC;;AAA3D;;AADF,0FAGGF,KAAKG;;KAJV,AAAAb,8EAAA,AAAAK,yBAAArB;;;AAAA;;;;;CAAA,KAAA;;;AAAA,AAAA,OAAAsB,6BAAmBxB","names":["quil.middlewares.deprecated-options\/deprecated","quil.middlewares.deprecated-options\/check-features-vector","cljs.core\/set","features","cljs.core\/println","cljs.core\/disj","quil.middlewares.deprecated-options\/deprecated-options","cljs.core\/update-in","options","cljs.core\/LazySeq","s__1107","cljs.core\/seq","temp__4657__auto__","cljs.core\/chunked-seq?","cljs.core\/count","c__4432__auto__","cljs.core\/chunk-buffer","size__4433__auto__","i__1108","cljs.core\/-nth","cljs.core\/nth","vec__1110","cljs.core\/chunk-append","b__1109","cljs.core\/chunk-cons","cljs.core\/chunk","iter__1106","cljs.core\/chunk-rest","cljs.core\/first","vec__1116","cljs.core\/cons","cljs.core\/rest","iter__4434__auto__","temp__4655__auto__","vec__1113","vec__1119","name","version","message","value","cljs.core\/remove","cljs.core\/nil?","cljs.core\/into","cljs.core\/chunk-first"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/fun_mode.cljc b/src/assets/viz/2/quil/middlewares/fun_mode.cljc deleted file mode 100644 index 14330c7..0000000 --- a/src/assets/viz/2/quil/middlewares/fun_mode.cljc +++ /dev/null @@ -1,78 +0,0 @@ -(ns quil.middlewares.fun-mode - (:require [quil.core :as q])) - -(defn- wrap-setup [options] - (let [setup (:setup options (fn [] nil))] - (assoc options - :setup #(reset! (q/state-atom) (setup))))) - -(defn- wrap-draw-update [options] - (let [draw (:draw options (fn [_])) - update (:update options identity) - quil-draw #(-> (q/state-atom) - (swap! (if (= (q/frame-count) 1) - identity - update)) - (draw))] - (-> options - (dissoc :update) - (assoc :draw quil-draw)))) - -(defn- mouse-event [] - {:x (q/mouse-x) - :y (q/mouse-y)}) - -(defn- mouse-event-full [] - {:x (q/mouse-x) - :y (q/mouse-y) - :button (q/mouse-button)}) - -(defn- key-event [] - {:key (q/key-as-keyword) - :key-code (q/key-code) - :raw-key (q/raw-key) - #?@(:clj [:modifiers (q/key-modifiers)])}) - -(defn- wrap-handler - ([options handler-key] - (wrap-handler options handler-key nil)) - ([options handler-key event-fn] - (if-let [handler (options handler-key)] - (assoc options handler-key - (if event-fn - #(swap! (q/state-atom) handler (event-fn)) - #(swap! (q/state-atom) handler))) - options))) - -(defn- wrap-handlers [options & handlers] - (reduce (fn [options handler] - (if (keyword? handler) - (wrap-handler options handler) - (apply wrap-handler options handler))) - options handlers)) - -(defn- wrap-mouse-wheel [options] - (if-let [handler (:mouse-wheel options)] - (assoc options :mouse-wheel - (fn [rotation] - (swap! (q/state-atom) handler rotation))) - options)) - -(defn fun-mode - "Introduces function mode making all handlers (setup, draw, mouse-click, etc) - state-aware. Adds support for 'update' function." - [options] - (-> options - wrap-setup - wrap-draw-update - (wrap-handlers :focus-gained :focus-lost [:mouse-entered mouse-event] - [:mouse-exited mouse-event] [:mouse-pressed mouse-event-full] - [:mouse-released mouse-event] [:mouse-clicked mouse-event-full] - [:mouse-moved (fn [] {:x (q/mouse-x) :y (q/mouse-y) - :p-x (q/pmouse-x) :p-y (q/pmouse-y)})] - [:mouse-dragged (fn [] {:x (q/mouse-x) :y (q/mouse-y) - :p-x (q/pmouse-x) :p-y (q/pmouse-y) - :button (q/mouse-button)})] - [:key-pressed key-event] :key-released [:key-typed key-event] - :on-close) - wrap-mouse-wheel)) diff --git a/src/assets/viz/2/quil/middlewares/fun_mode.cljc.cache.json b/src/assets/viz/2/quil/middlewares/fun_mode.cljc.cache.json deleted file mode 100644 index 26e797e..0000000 --- a/src/assets/viz/2/quil/middlewares/fun_mode.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Error",["^ "]],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.middlewares.fun-mode","~:imports",null,"~:requires",["^ ","~$q","~$quil.core","^;","^;"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$wrap-setup",["^ ","~:protocol-inline",null,"~:meta",["^ ","~:file","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","~:line",4,"~:column",8,"~:end-line",4,"~:end-column",18,"~:private",true,"~:arglists",["~#list",["~$quote",["^I",[["~$options"]]]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/wrap-setup","^B","out/quil/middlewares/fun_mode.cljc","^F",18,"~:method-params",["^I",[["^K"]]],"~:protocol-impl",null,"~:arglists-meta",["^I",[null,null]],"^D",1,"~:variadic?",false,"^C",4,"~:ret-tag","~$any","^E",4,"~:max-fixed-arity",1,"~:fn-var",true,"^H",["^I",["^J",["^I",[["^K"]]]]]],"~$wrap-draw-update",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",9,"^D",8,"^E",9,"^F",24,"^G",true,"^H",["^I",["^J",["^I",[["^K"]]]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/wrap-draw-update","^B","out/quil/middlewares/fun_mode.cljc","^F",24,"^M",["^I",[["^K"]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",9,"^Q","^R","^E",9,"^S",1,"^T",true,"^H",["^I",["^J",["^I",[["^K"]]]]]],"~$mouse-event",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",21,"^D",8,"^E",21,"^F",19,"^G",true,"^H",["^I",["^J",["^I",[[]]]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/mouse-event","^B","out/quil/middlewares/fun_mode.cljc","^F",19,"^M",["^I",[[]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",21,"^Q","~$cljs.core/IMap","^E",21,"^S",0,"^T",true,"^H",["^I",["^J",["^I",[[]]]]]],"~$mouse-event-full",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",25,"^D",8,"^E",25,"^F",24,"^G",true,"^H",["^I",["^J",["^I",[[]]]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/mouse-event-full","^B","out/quil/middlewares/fun_mode.cljc","^F",24,"^M",["^I",[[]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",25,"^Q","^Y","^E",25,"^S",0,"^T",true,"^H",["^I",["^J",["^I",[[]]]]]],"~$key-event",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",30,"^D",8,"^E",30,"^F",17,"^G",true,"^H",["^I",["^J",["^I",[[]]]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/key-event","^B","out/quil/middlewares/fun_mode.cljc","^F",17,"^M",["^I",[[]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",30,"^Q","^Y","^E",30,"^S",0,"^T",true,"^H",["^I",["^J",["^I",[[]]]]]],"~$wrap-handler",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",36,"^D",8,"^E",36,"^F",20,"^G",true,"^H",["^I",["^J",["^I",[["^K","~$handler-key"],["^K","^13","~$event-fn"]]]]],"~:top-fn",["^ ","^P",false,"^S",3,"^M",["^I",[["^K","^13"],["^K","^13","^14"]]],"^H",["^I",[["^K","^13"],["^K","^13","^14"]]],"^O",["^I",[null,null]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/wrap-handler","^B","out/quil/middlewares/fun_mode.cljc","^F",20,"^15",["^ ","^P",false,"^S",3,"^M",["^I",[["^K","^13"],["^K","^13","^14"]]],"^H",["^I",[["^K","^13"],["^K","^13","^14"]]],"^O",["^I",[null,null]]],"^M",["^I",[["^K","^13"],["^K","^13","^14"]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",36,"^E",36,"^S",3,"^T",true,"^H",["^I",[["^K","^13"],["^K","^13","^14"]]]],"~$wrap-handlers",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",47,"^D",8,"^E",47,"^F",21,"^G",true,"^H",["^I",["^J",["^I",[["^K","~$&","~$handlers"]]]]],"^15",["^ ","^P",true,"^S",1,"^M",[["^I",["^K","^18"]]],"^H",["^I",[["^K","~$&","^18"]]],"^O",["^I",[null]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/wrap-handlers","^B","out/quil/middlewares/fun_mode.cljc","^F",21,"^15",["^ ","^P",true,"^S",1,"^M",[["^I",["^K","^18"]]],"^H",["^I",[["^K","~$&","^18"]]],"^O",["^I",[null]]],"^M",[["^I",["^K","^18"]]],"^N",null,"^O",["^I",[null]],"^D",1,"^P",true,"^C",47,"^Q","^R","^E",47,"^S",1,"^T",true,"^H",["^I",[["^K","~$&","^18"]]]],"~$wrap-mouse-wheel",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",54,"^D",8,"^E",54,"^F",24,"^G",true,"^H",["^I",["^J",["^I",[["^K"]]]]]],"^G",true,"^7","~$quil.middlewares.fun-mode/wrap-mouse-wheel","^B","out/quil/middlewares/fun_mode.cljc","^F",24,"^M",["^I",[["^K"]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",54,"^Q",["^6",[null,"^R"]],"^E",54,"^S",1,"^T",true,"^H",["^I",["^J",["^I",[["^K"]]]]]],"~$fun-mode",["^ ","^@",null,"^A",["^ ","^B","/home/mediocregopher/src/viz/out/quil/middlewares/fun_mode.cljc","^C",61,"^D",7,"^E",61,"^F",15,"^H",["^I",["^J",["^I",[["^K"]]]]],"~:doc","Introduces function mode making all handlers (setup, draw, mouse-click, etc)\n state-aware. Adds support for 'update' function."],"^7","~$quil.middlewares.fun-mode/fun-mode","^B","out/quil/middlewares/fun_mode.cljc","^F",15,"^M",["^I",[["^K"]]],"^N",null,"^O",["^I",[null,null]],"^D",1,"^P",false,"^C",61,"^Q",["^6",[null,"^R"]],"^E",61,"^S",1,"^T",true,"^H",["^I",["^J",["^I",[["^K"]]]]],"^1=","Introduces function mode making all handlers (setup, draw, mouse-click, etc)\n state-aware. Adds support for 'update' function."]],"~:cljs.spec/registry-ref",[],"~:require-macros",null,"~:cljs.analyzer/constants",["^ ","~:seen",["^6",["~:y","~:key-code","~:p-y","~:key-typed","~:mouse-clicked","~:mouse-released","~:mouse-exited","~:key","~:on-close","~:button","~:mouse-wheel","~:mouse-moved","~:update","~:setup","~:mouse-pressed","~:focus-gained","~:mouse-entered","~:focus-lost","~:key-pressed","~:key-released","~:p-x","~:x","~:raw-key","~:draw","~:mouse-dragged"]],"~:order",["^1O","^1X","^1N","~:x","~:y","^1K","^1I","^1C","^1W","^1L","^1Q","^1S","^1R","^1H","^1P","^1G","^1F","^1M","^1V","^1D","^1Y","^1T","^1U","^1E","^1J"]],"^1=",null] \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/fun_mode.js b/src/assets/viz/2/quil/middlewares/fun_mode.js deleted file mode 100644 index 5eabdf8..0000000 --- a/src/assets/viz/2/quil/middlewares/fun_mode.js +++ /dev/null @@ -1,142 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.middlewares.fun_mode'); -goog.require('cljs.core'); -goog.require('quil.core'); -quil.middlewares.fun_mode.wrap_setup = (function quil$middlewares$fun_mode$wrap_setup(options){ -var setup = new cljs.core.Keyword(null,"setup","setup",1987730512).cljs$core$IFn$_invoke$arity$2(options,(function (){ -return null; -})); -return cljs.core.assoc.call(null,options,new cljs.core.Keyword(null,"setup","setup",1987730512),((function (setup){ -return (function (){ -return cljs.core.reset_BANG_.call(null,quil.core.state_atom.call(null),setup.call(null)); -});})(setup)) -); -}); -quil.middlewares.fun_mode.wrap_draw_update = (function quil$middlewares$fun_mode$wrap_draw_update(options){ -var draw = new cljs.core.Keyword(null,"draw","draw",1358331674).cljs$core$IFn$_invoke$arity$2(options,(function (_){ -return null; -})); -var update = new cljs.core.Keyword(null,"update","update",1045576396).cljs$core$IFn$_invoke$arity$2(options,cljs.core.identity); -var quil_draw = ((function (draw,update){ -return (function (){ -return draw.call(null,cljs.core.swap_BANG_.call(null,quil.core.state_atom.call(null),((cljs.core._EQ_.call(null,quil.core.frame_count.call(null),(1)))?cljs.core.identity:update))); -});})(draw,update)) -; -return cljs.core.assoc.call(null,cljs.core.dissoc.call(null,options,new cljs.core.Keyword(null,"update","update",1045576396)),new cljs.core.Keyword(null,"draw","draw",1358331674),quil_draw); -}); -quil.middlewares.fun_mode.mouse_event = (function quil$middlewares$fun_mode$mouse_event(){ -return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"x","x",2099068185),quil.core.mouse_x.call(null),new cljs.core.Keyword(null,"y","y",-1757859776),quil.core.mouse_y.call(null)], null); -}); -quil.middlewares.fun_mode.mouse_event_full = (function quil$middlewares$fun_mode$mouse_event_full(){ -return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"x","x",2099068185),quil.core.mouse_x.call(null),new cljs.core.Keyword(null,"y","y",-1757859776),quil.core.mouse_y.call(null),new cljs.core.Keyword(null,"button","button",1456579943),quil.core.mouse_button.call(null)], null); -}); -quil.middlewares.fun_mode.key_event = (function quil$middlewares$fun_mode$key_event(){ -return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"key","key",-1516042587),quil.core.key_as_keyword.call(null),new cljs.core.Keyword(null,"key-code","key-code",-1732114304),quil.core.key_code.call(null),new cljs.core.Keyword(null,"raw-key","raw-key",-162482279),quil.core.raw_key.call(null)], null); -}); -quil.middlewares.fun_mode.wrap_handler = (function quil$middlewares$fun_mode$wrap_handler(var_args){ -var G__2134 = arguments.length; -switch (G__2134) { -case 2: -return quil.middlewares.fun_mode.wrap_handler.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.middlewares.fun_mode.wrap_handler.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.middlewares.fun_mode.wrap_handler.cljs$core$IFn$_invoke$arity$2 = (function (options,handler_key){ -return quil.middlewares.fun_mode.wrap_handler.call(null,options,handler_key,null); -}); - -quil.middlewares.fun_mode.wrap_handler.cljs$core$IFn$_invoke$arity$3 = (function (options,handler_key,event_fn){ -var temp__4655__auto__ = options.call(null,handler_key); -if(cljs.core.truth_(temp__4655__auto__)){ -var handler = temp__4655__auto__; -return cljs.core.assoc.call(null,options,handler_key,(cljs.core.truth_(event_fn)?((function (handler,temp__4655__auto__){ -return (function (){ -return cljs.core.swap_BANG_.call(null,quil.core.state_atom.call(null),handler,event_fn.call(null)); -});})(handler,temp__4655__auto__)) -:((function (handler,temp__4655__auto__){ -return (function (){ -return cljs.core.swap_BANG_.call(null,quil.core.state_atom.call(null),handler); -});})(handler,temp__4655__auto__)) -)); -} else { -return options; -} -}); - -quil.middlewares.fun_mode.wrap_handler.cljs$lang$maxFixedArity = 3; - -quil.middlewares.fun_mode.wrap_handlers = (function quil$middlewares$fun_mode$wrap_handlers(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___2138 = arguments.length; -var i__4642__auto___2139 = (0); -while(true){ -if((i__4642__auto___2139 < len__4641__auto___2138)){ -args__4647__auto__.push((arguments[i__4642__auto___2139])); - -var G__2140 = (i__4642__auto___2139 + (1)); -i__4642__auto___2139 = G__2140; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((1) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((1)),(0),null)):null); -return quil.middlewares.fun_mode.wrap_handlers.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4648__auto__); -}); - -quil.middlewares.fun_mode.wrap_handlers.cljs$core$IFn$_invoke$arity$variadic = (function (options,handlers){ -return cljs.core.reduce.call(null,(function (options__$1,handler){ -if((handler instanceof cljs.core.Keyword)){ -return quil.middlewares.fun_mode.wrap_handler.call(null,options__$1,handler); -} else { -return cljs.core.apply.call(null,quil.middlewares.fun_mode.wrap_handler,options__$1,handler); -} -}),options,handlers); -}); - -quil.middlewares.fun_mode.wrap_handlers.cljs$lang$maxFixedArity = (1); - -/** @this {Function} */ -quil.middlewares.fun_mode.wrap_handlers.cljs$lang$applyTo = (function (seq2136){ -var G__2137 = cljs.core.first.call(null,seq2136); -var seq2136__$1 = cljs.core.next.call(null,seq2136); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__2137,seq2136__$1); -}); - -quil.middlewares.fun_mode.wrap_mouse_wheel = (function quil$middlewares$fun_mode$wrap_mouse_wheel(options){ -var temp__4655__auto__ = new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439).cljs$core$IFn$_invoke$arity$1(options); -if(cljs.core.truth_(temp__4655__auto__)){ -var handler = temp__4655__auto__; -return cljs.core.assoc.call(null,options,new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439),((function (handler,temp__4655__auto__){ -return (function (rotation){ -return cljs.core.swap_BANG_.call(null,quil.core.state_atom.call(null),handler,rotation); -});})(handler,temp__4655__auto__)) -); -} else { -return options; -} -}); -/** - * Introduces function mode making all handlers (setup, draw, mouse-click, etc) - * state-aware. Adds support for 'update' function. - */ -quil.middlewares.fun_mode.fun_mode = (function quil$middlewares$fun_mode$fun_mode(options){ -return quil.middlewares.fun_mode.wrap_mouse_wheel.call(null,quil.middlewares.fun_mode.wrap_handlers.call(null,quil.middlewares.fun_mode.wrap_draw_update.call(null,quil.middlewares.fun_mode.wrap_setup.call(null,options)),new cljs.core.Keyword(null,"focus-gained","focus-gained",-857086384),new cljs.core.Keyword(null,"focus-lost","focus-lost",-554849613),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-entered","mouse-entered",811350322),quil.middlewares.fun_mode.mouse_event], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-exited","mouse-exited",-483205244),quil.middlewares.fun_mode.mouse_event], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-pressed","mouse-pressed",736955536),quil.middlewares.fun_mode.mouse_event_full], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-released","mouse-released",-664480061),quil.middlewares.fun_mode.mouse_event], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-clicked","mouse-clicked",-199339421),quil.middlewares.fun_mode.mouse_event_full], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-moved","mouse-moved",-1918152310),(function (){ -return new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"x","x",2099068185),quil.core.mouse_x.call(null),new cljs.core.Keyword(null,"y","y",-1757859776),quil.core.mouse_y.call(null),new cljs.core.Keyword(null,"p-x","p-x",-1721211211),quil.core.pmouse_x.call(null),new cljs.core.Keyword(null,"p-y","p-y",-530704830),quil.core.pmouse_y.call(null)], null); -})], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"mouse-dragged","mouse-dragged",-1220073441),(function (){ -return new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"x","x",2099068185),quil.core.mouse_x.call(null),new cljs.core.Keyword(null,"y","y",-1757859776),quil.core.mouse_y.call(null),new cljs.core.Keyword(null,"p-x","p-x",-1721211211),quil.core.pmouse_x.call(null),new cljs.core.Keyword(null,"p-y","p-y",-530704830),quil.core.pmouse_y.call(null),new cljs.core.Keyword(null,"button","button",1456579943),quil.core.mouse_button.call(null)], null); -})], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"key-pressed","key-pressed",-757100364),quil.middlewares.fun_mode.key_event], null),new cljs.core.Keyword(null,"key-released","key-released",215919828),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"key-typed","key-typed",-876037597),quil.middlewares.fun_mode.key_event], null),new cljs.core.Keyword(null,"on-close","on-close",-761178394))); -}); - -//# sourceMappingURL=fun_mode.js.map diff --git a/src/assets/viz/2/quil/middlewares/fun_mode.js.map b/src/assets/viz/2/quil/middlewares/fun_mode.js.map deleted file mode 100644 index 459ff6e..0000000 --- a/src/assets/viz/2/quil/middlewares/fun_mode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/qu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,lCAAC1B,0BAAMD,2EACA;kBAAK;AAAL,AACE,OAACO,+BAAM,AAACJ,gCAAc0B,QAAQiB;;;;AACvC9C;;;AAEJ;;;;qCAAA,rCAAM+C,kFAGH;AAHH,AAIE,kNAAI\/C,\/CACAD,rDACAM,lDACA,kDAAA,qDAAA,yDAAA,qEAAA,iEAAA,mFAAA,oHAAA,mFAAA,mHAAA,mFAAA,yHAAA,mFAAA,uHAAA,mFAAA,0HAAA,mFAAA,z2CAAC6B,+bAAwDpB,sMAC3BA,uMAA6BG,+MAC3BH,wMAA6BG,0MAChC,l+CAO7B4B;AAP6B,AAAA,kDAAA,4EAAA,6EAAA,kFAAA,5LAAW,AAAC9B,6EAAc,AAACC,iFACd,AAACgC,iFAAiB,AAACC;WAJ7D,mFAAA,wEAK+B;AAAA,AAAA,kDAAA,4EAAA,6EAAA,kFAAA,iFAAA,7QAAW,AAAClC,6EAAc,AAACC,iFACd,AAACgC,iFAAiB,AAACC,uFAChB,AAAC\/B;WAPhD,mFAAA,+GAAA,oEAAA,mFAAA,2GAAA,9SAQ6BC,kQAAqCA","names":["quil.middlewares.fun-mode\/wrap-setup","options","cljs.core\/assoc","cljs.core\/reset!","quil.core\/state-atom","setup","quil.middlewares.fun-mode\/wrap-draw-update","cljs.core\/identity","cljs.core\/swap!","cljs.core\/=","quil.core\/frame-count","update","draw","cljs.core\/dissoc","quil-draw","quil.middlewares.fun-mode\/mouse-event","quil.core\/mouse-x","quil.core\/mouse-y","quil.middlewares.fun-mode\/mouse-event-full","quil.core\/mouse-button","quil.middlewares.fun-mode\/key-event","quil.core\/key-as-keyword","quil.core\/key-code","quil.core\/raw-key","G__2134","quil.middlewares.fun-mode\/wrap-handler","js\/Error","handler-key","temp__4655__auto__","event-fn","handler","i__4642__auto__","len__4641__auto__","args__4647__auto__","cljs.core\/IndexedSeq","quil.middlewares.fun-mode\/wrap-handlers","argseq__4648__auto__","cljs.core\/first","seq2136","cljs.core\/next","self__4628__auto__","G__2137","cljs.core\/reduce","cljs.core\/Keyword","cljs.core\/apply","handlers","quil.middlewares.fun-mode\/wrap-mouse-wheel","rotation","quil.middlewares.fun-mode\/fun-mode","quil.core\/pmouse-x","quil.core\/pmouse-y"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/navigation_2d.cljc b/src/assets/viz/2/quil/middlewares/navigation_2d.cljc deleted file mode 100644 index cd03710..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_2d.cljc +++ /dev/null @@ -1,89 +0,0 @@ -(ns quil.middlewares.navigation-2d - (:require [quil.core :as q :include-macros true])) - -(def ^:private missing-navigation-key-error - (str "state map is missing :navigation-2d key. " - "Did you accidentally removed it from the state in " - ":update or any other handler?")) - -(defn- assert-state-has-navigation - "Asserts that state map contains :navigation-2d object." - [state] - (when-not (:navigation-2d state) - (throw #?(:clj (RuntimeException. missing-navigation-key-error) - :cljs (js/Error. missing-navigation-key-error))))) - -(defn- default-position - "Default position configuration: zoom is neutral and central point is - width/2, height/2." - [] - {:position [(/ (q/width) 2.0) - (/ (q/height) 2.0)] - :zoom 1}) - -(defn- setup-2d-nav - "Custom 'setup' function which creates initial position - configuration and puts it to the state map." - [user-setup user-settings] - (let [initial-state (-> user-settings - (select-keys [:position :zoom]) - (->> (merge (default-position))))] - (update-in (user-setup) [:navigation-2d] - #(merge initial-state %)))) - -(defn- mouse-dragged - "Changes center of the sketch depending on the last mouse move. Takes - zoom into account as well." - [state event] - (assert-state-has-navigation state) - (let [dx (- (:p-x event) (:x event)) - dy (- (:p-y event) (:y event)) - zoom (-> state :navigation-2d :zoom)] - (-> state - (update-in [:navigation-2d :position 0] + (/ dx zoom)) - (update-in [:navigation-2d :position 1] + (/ dy zoom))))) - -(defn- mouse-wheel - "Changes zoom settings based on scroll." - [state event] - (assert-state-has-navigation state) - (update-in state [:navigation-2d :zoom] * (+ 1 (* -0.1 event)))) - -(defn- draw - "Calls user draw function with necessary all transformations (position - and zoom) applied." - [user-draw state] - (assert-state-has-navigation state) - (q/push-matrix) - (let [nav-2d (:navigation-2d state) - zoom (:zoom nav-2d) - pos (:position nav-2d)] - (q/scale zoom) - (q/with-translation [(- (/ (q/width) 2 zoom) (first pos)) - (- (/ (q/height) 2 zoom) (second pos))] - (user-draw state))) - (q/pop-matrix)) - -(defn navigation-2d - "Enables navigation over 2D sketch. Dragging mouse will move center of the - skecth and mouse wheel controls zoom." - [options] - (let [; 2d-navigation related user settings - user-settings (:navigation-2d options) - - ; user-provided handlers which will be overridden - ; by 3d-navigation - user-draw (:draw options (fn [state])) - user-mouse-dragged (:mouse-dragged options (fn [state _] state)) - user-mouse-wheel (:mouse-wheel options (fn [state _] state)) - setup (:setup options (fn [] {}))] - (assoc options - - :setup (partial setup-2d-nav setup user-settings) - - :draw (partial draw user-draw) - - :mouse-dragged (fn [state event] - (user-mouse-dragged (mouse-dragged state event) event)) - :mouse-wheel (fn [state event] - (user-mouse-wheel (mouse-wheel state event) event))))) diff --git a/src/assets/viz/2/quil/middlewares/navigation_2d.cljc.cache.json b/src/assets/viz/2/quil/middlewares/navigation_2d.cljc.cache.json deleted file mode 100644 index 664f7ef..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_2d.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Error",["^ "]],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.middlewares.navigation-2d","~:imports",null,"~:requires",["^ ","~$q","~$quil.core","^;","^;"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$missing-navigation-key-error",["^ ","^7","~$quil.middlewares.navigation-2d/missing-navigation-key-error","~:file","out/quil/middlewares/navigation_2d.cljc","~:line",4,"~:column",1,"~:end-line",4,"~:end-column",44,"~:private",true,"~:meta",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",4,"^C",16,"^D",4,"^E",44,"^F",true],"~:tag","~$any"],"~$assert-state-has-navigation",["^ ","~:protocol-inline",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",9,"^C",8,"^D",9,"^E",35,"^F",true,"~:arglists",["~#list",["~$quote",["^M",[["~$state"]]]]],"~:doc","Asserts that state map contains :navigation-2d object."],"^F",true,"^7","~$quil.middlewares.navigation-2d/assert-state-has-navigation","^A","out/quil/middlewares/navigation_2d.cljc","^E",35,"~:method-params",["^M",[["^O"]]],"~:protocol-impl",null,"~:arglists-meta",["^M",[null,null]],"^C",1,"~:variadic?",false,"^B",9,"~:ret-tag","~$clj-nil","^D",9,"~:max-fixed-arity",1,"~:fn-var",true,"^L",["^M",["^N",["^M",[["^O"]]]]],"^P","Asserts that state map contains :navigation-2d object."],"~$default-position",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",16,"^C",8,"^D",16,"^E",24,"^F",true,"^L",["^M",["^N",["^M",[[]]]]],"^P","Default position configuration: zoom is neutral and central point is\n width/2, height/2."],"^F",true,"^7","~$quil.middlewares.navigation-2d/default-position","^A","out/quil/middlewares/navigation_2d.cljc","^E",24,"^R",["^M",[[]]],"^S",null,"^T",["^M",[null,null]],"^C",1,"^U",false,"^B",16,"^V","~$cljs.core/IMap","^D",16,"^X",0,"^Y",true,"^L",["^M",["^N",["^M",[[]]]]],"^P","Default position configuration: zoom is neutral and central point is\n width/2, height/2."],"~$setup-2d-nav",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",24,"^C",8,"^D",24,"^E",20,"^F",true,"^L",["^M",["^N",["^M",[["~$user-setup","~$user-settings"]]]]],"^P","Custom 'setup' function which creates initial position\n configuration and puts it to the state map."],"^F",true,"^7","~$quil.middlewares.navigation-2d/setup-2d-nav","^A","out/quil/middlewares/navigation_2d.cljc","^E",20,"^R",["^M",[["^12","^13"]]],"^S",null,"^T",["^M",[null,null]],"^C",1,"^U",false,"^B",24,"^V","^I","^D",24,"^X",2,"^Y",true,"^L",["^M",["^N",["^M",[["^12","^13"]]]]],"^P","Custom 'setup' function which creates initial position\n configuration and puts it to the state map."],"~$mouse-dragged",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",34,"^C",8,"^D",34,"^E",21,"^F",true,"^L",["^M",["^N",["^M",[["^O","~$event"]]]]],"^P","Changes center of the sketch depending on the last mouse move. Takes\n zoom into account as well."],"^F",true,"^7","~$quil.middlewares.navigation-2d/mouse-dragged","^A","out/quil/middlewares/navigation_2d.cljc","^E",21,"^R",["^M",[["^O","^16"]]],"^S",null,"^T",["^M",[null,null]],"^C",1,"^U",false,"^B",34,"^V","^I","^D",34,"^X",2,"^Y",true,"^L",["^M",["^N",["^M",[["^O","^16"]]]]],"^P","Changes center of the sketch depending on the last mouse move. Takes\n zoom into account as well."],"~$mouse-wheel",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",46,"^C",8,"^D",46,"^E",19,"^F",true,"^L",["^M",["^N",["^M",[["^O","^16"]]]]],"^P","Changes zoom settings based on scroll."],"^F",true,"^7","~$quil.middlewares.navigation-2d/mouse-wheel","^A","out/quil/middlewares/navigation_2d.cljc","^E",19,"^R",["^M",[["^O","^16"]]],"^S",null,"^T",["^M",[null,null]],"^C",1,"^U",false,"^B",46,"^V","^I","^D",46,"^X",2,"^Y",true,"^L",["^M",["^N",["^M",[["^O","^16"]]]]],"^P","Changes zoom settings based on scroll."],"~$draw",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",52,"^C",8,"^D",52,"^E",12,"^F",true,"^L",["^M",["^N",["^M",[["~$user-draw","^O"]]]]],"^P","Calls user draw function with necessary all transformations (position\n and zoom) applied."],"^F",true,"^7","~$quil.middlewares.navigation-2d/draw","^A","out/quil/middlewares/navigation_2d.cljc","^E",12,"^R",["^M",[["^1;","^O"]]],"^S",null,"^T",["^M",[null,null]],"^C",1,"^U",false,"^B",52,"^V","^I","^D",52,"^X",2,"^Y",true,"^L",["^M",["^N",["^M",[["^1;","^O"]]]]],"^P","Calls user draw function with necessary all transformations (position\n and zoom) applied."],"~$navigation-2d",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_2d.cljc","^B",67,"^C",7,"^D",67,"^E",20,"^L",["^M",["^N",["^M",[["~$options"]]]]],"^P","Enables navigation over 2D sketch. Dragging mouse will move center of the\n skecth and mouse wheel controls zoom."],"^7","~$quil.middlewares.navigation-2d/navigation-2d","^A","out/quil/middlewares/navigation_2d.cljc","^E",20,"^R",["^M",[["^1>"]]],"^S",null,"^T",["^M",[null,null]],"^C",1,"^U",false,"^B",67,"^V","^I","^D",67,"^X",1,"^Y",true,"^L",["^M",["^N",["^M",[["^1>"]]]]],"^P","Enables navigation over 2D sketch. Dragging mouse will move center of the\n skecth and mouse wheel controls zoom."]],"~:cljs.spec/registry-ref",[],"~:require-macros",["^ ","~$q","^;","^;","^;"],"~:cljs.analyzer/constants",["^ ","~:seen",["^6",["~:y","~:p-y","~:zoom","~:mouse-wheel","~:setup","~:p-x","~:position","~:x","~:draw","~:navigation-2d","~:mouse-dragged"]],"~:order",["^1K","^1I","^1E","^1H","~:x","^1D","~:y","^1J","^1L","^1F","^1G"]],"^P",null] \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/navigation_2d.js b/src/assets/viz/2/quil/middlewares/navigation_2d.js deleted file mode 100644 index 9403a91..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_2d.js +++ /dev/null @@ -1,116 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.middlewares.navigation_2d'); -goog.require('cljs.core'); -goog.require('quil.core'); -quil.middlewares.navigation_2d.missing_navigation_key_error = ["state map is missing :navigation-2d key. ","Did you accidentally removed it from the state in ",":update or any other handler?"].join(''); -/** - * Asserts that state map contains :navigation-2d object. - */ -quil.middlewares.navigation_2d.assert_state_has_navigation = (function quil$middlewares$navigation_2d$assert_state_has_navigation(state){ -if(cljs.core.truth_(new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611).cljs$core$IFn$_invoke$arity$1(state))){ -return null; -} else { -throw (new Error(quil.middlewares.navigation_2d.missing_navigation_key_error)); -} -}); -/** - * Default position configuration: zoom is neutral and central point is - * width/2, height/2. - */ -quil.middlewares.navigation_2d.default_position = (function quil$middlewares$navigation_2d$default_position(){ -return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"position","position",-2011731912),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(quil.core.width.call(null) / 2.0),(quil.core.height.call(null) / 2.0)], null),new cljs.core.Keyword(null,"zoom","zoom",-1827487038),(1)], null); -}); -/** - * Custom 'setup' function which creates initial position - * configuration and puts it to the state map. - */ -quil.middlewares.navigation_2d.setup_2d_nav = (function quil$middlewares$navigation_2d$setup_2d_nav(user_setup,user_settings){ -var initial_state = cljs.core.merge.call(null,quil.middlewares.navigation_2d.default_position.call(null),cljs.core.select_keys.call(null,user_settings,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"position","position",-2011731912),new cljs.core.Keyword(null,"zoom","zoom",-1827487038)], null))); -return cljs.core.update_in.call(null,user_setup.call(null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611)], null),((function (initial_state){ -return (function (p1__2126_SHARP_){ -return cljs.core.merge.call(null,initial_state,p1__2126_SHARP_); -});})(initial_state)) -); -}); -/** - * Changes center of the sketch depending on the last mouse move. Takes - * zoom into account as well. - */ -quil.middlewares.navigation_2d.mouse_dragged = (function quil$middlewares$navigation_2d$mouse_dragged(state,event){ -quil.middlewares.navigation_2d.assert_state_has_navigation.call(null,state); - -var dx = (new cljs.core.Keyword(null,"p-x","p-x",-1721211211).cljs$core$IFn$_invoke$arity$1(event) - new cljs.core.Keyword(null,"x","x",2099068185).cljs$core$IFn$_invoke$arity$1(event)); -var dy = (new cljs.core.Keyword(null,"p-y","p-y",-530704830).cljs$core$IFn$_invoke$arity$1(event) - new cljs.core.Keyword(null,"y","y",-1757859776).cljs$core$IFn$_invoke$arity$1(event)); -var zoom = new cljs.core.Keyword(null,"zoom","zoom",-1827487038).cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611).cljs$core$IFn$_invoke$arity$1(state)); -return cljs.core.update_in.call(null,cljs.core.update_in.call(null,state,new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611),new cljs.core.Keyword(null,"position","position",-2011731912),(0)], null),cljs.core._PLUS_,(dx / zoom)),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611),new cljs.core.Keyword(null,"position","position",-2011731912),(1)], null),cljs.core._PLUS_,(dy / zoom)); -}); -/** - * Changes zoom settings based on scroll. - */ -quil.middlewares.navigation_2d.mouse_wheel = (function quil$middlewares$navigation_2d$mouse_wheel(state,event){ -quil.middlewares.navigation_2d.assert_state_has_navigation.call(null,state); - -return cljs.core.update_in.call(null,state,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611),new cljs.core.Keyword(null,"zoom","zoom",-1827487038)], null),cljs.core._STAR_,((1) + (-0.1 * event))); -}); -/** - * Calls user draw function with necessary all transformations (position - * and zoom) applied. - */ -quil.middlewares.navigation_2d.draw = (function quil$middlewares$navigation_2d$draw(user_draw,state){ -quil.middlewares.navigation_2d.assert_state_has_navigation.call(null,state); - -quil.core.push_matrix.call(null); - -var nav_2d_2127 = new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611).cljs$core$IFn$_invoke$arity$1(state); -var zoom_2128 = new cljs.core.Keyword(null,"zoom","zoom",-1827487038).cljs$core$IFn$_invoke$arity$1(nav_2d_2127); -var pos_2129 = new cljs.core.Keyword(null,"position","position",-2011731912).cljs$core$IFn$_invoke$arity$1(nav_2d_2127); -quil.core.scale.call(null,zoom_2128); - -var tr__2049__auto___2130 = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(((quil.core.width.call(null) / (2)) / zoom_2128) - cljs.core.first.call(null,pos_2129)),(((quil.core.height.call(null) / (2)) / zoom_2128) - cljs.core.second.call(null,pos_2129))], null); -quil.core.push_matrix.call(null); - -try{quil.core.translate.call(null,tr__2049__auto___2130); - -user_draw.call(null,state); -}finally {quil.core.pop_matrix.call(null); -} -return quil.core.pop_matrix.call(null); -}); -/** - * Enables navigation over 2D sketch. Dragging mouse will move center of the - * skecth and mouse wheel controls zoom. - */ -quil.middlewares.navigation_2d.navigation_2d = (function quil$middlewares$navigation_2d$navigation_2d(options){ -var user_settings = new cljs.core.Keyword(null,"navigation-2d","navigation-2d",-1924168611).cljs$core$IFn$_invoke$arity$1(options); -var user_draw = new cljs.core.Keyword(null,"draw","draw",1358331674).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings){ -return (function (state){ -return null; -});})(user_settings)) -); -var user_mouse_dragged = new cljs.core.Keyword(null,"mouse-dragged","mouse-dragged",-1220073441).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings,user_draw){ -return (function (state,_){ -return state; -});})(user_settings,user_draw)) -); -var user_mouse_wheel = new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings,user_draw,user_mouse_dragged){ -return (function (state,_){ -return state; -});})(user_settings,user_draw,user_mouse_dragged)) -); -var setup = new cljs.core.Keyword(null,"setup","setup",1987730512).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings,user_draw,user_mouse_dragged,user_mouse_wheel){ -return (function (){ -return cljs.core.PersistentArrayMap.EMPTY; -});})(user_settings,user_draw,user_mouse_dragged,user_mouse_wheel)) -); -return cljs.core.assoc.call(null,options,new cljs.core.Keyword(null,"setup","setup",1987730512),cljs.core.partial.call(null,quil.middlewares.navigation_2d.setup_2d_nav,setup,user_settings),new cljs.core.Keyword(null,"draw","draw",1358331674),cljs.core.partial.call(null,quil.middlewares.navigation_2d.draw,user_draw),new cljs.core.Keyword(null,"mouse-dragged","mouse-dragged",-1220073441),((function (user_settings,user_draw,user_mouse_dragged,user_mouse_wheel,setup){ -return (function (state,event){ -return user_mouse_dragged.call(null,quil.middlewares.navigation_2d.mouse_dragged.call(null,state,event),event); -});})(user_settings,user_draw,user_mouse_dragged,user_mouse_wheel,setup)) -,new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439),((function (user_settings,user_draw,user_mouse_dragged,user_mouse_wheel,setup){ -return (function (state,event){ -return user_mouse_wheel.call(null,quil.middlewares.navigation_2d.mouse_wheel.call(null,state,event),event); -});})(user_settings,user_draw,user_mouse_dragged,user_mouse_wheel,setup)) -); -}); - -//# sourceMappingURL=navigation_2d.js.map diff --git a/src/assets/viz/2/quil/middlewares/navigation_2d.js.map b/src/assets/viz/2/quil/middlewares/navigation_2d.js.map deleted file mode 100644 index 34afb3c..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/middlewares\/navigation_2d.js","sources":["navigation_2d.cljc"],"lineCount":116,"mappings":";AAAA;;;AAGA,AAAeA,8DACb,CAAA,4CAAA,qDAAA;AAIF;;;6DAAA,7DAAOC,kIAEJ;AAFH,AAGE,oBAAU,AAAA,sGAAgBC;AAA1B;;AAAA,AACE,MACgB,KAAAC,MAAWH;;;AAE\/B;;;;kDAAA,lDAAOI;AA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AAOD;AADtD,AAAA,AAAAP;;AAAA,IAAA,AAAA,AAAAG,8BAAAC;;AAEE,AAACK,oBAAU\/B;UAFb,AAAA,AAAA2B;;AAGF,OAACA;;AAEH;;;;+CAAA,\/CAAMK,sGAGH;AAHH,AAIE,IACM,gBAAc,AAAA,sGAAgBC;IAI9B,YAAU,AAAA,mFAAOA,QAAQ;kBAAK;AAAL,AAAA;;;IACzB,qBAAmB,AAAA,sGAAgBA,QAAQ;kBAAK,MAAM;AAAX,AAAcjC;;;IACzD,mBAAiB,AAAA,iGAAciC,QAAQ;kBAAK,MAAM;AAAX,AAAcjC;;;IACrD,QAAM,AAAA,qFAAQiC,QAAQ;;AAAA,AAAA;;;AAR5B,AASE,yCAAA,oJAAA,gIAAA,tTAACC,0BAAMD,+DAEE,AAACE,4BAAQ9B,4CAAa+B,MAAM9B,oEAE7B,AAAC6B,4BAAQd,oCAAKU,mFAEL;kBAAK,MAAM;AAAX,AACE,OAACM,6BAAmB,AAACxB,uDAAcb,MAAMc,OAAOA;;CAPnE,mEAQe;kBAAK,MAAM;AAAX,AACE,OAACwB,2BAAiB,AAACnB,qDAAYnB,MAAMc,OAAOA","names":["quil.middlewares.navigation-2d\/missing-navigation-key-error","quil.middlewares.navigation-2d\/assert-state-has-navigation","state","js\/Error","quil.middlewares.navigation-2d\/default-position","quil.core\/width","quil.core\/height","quil.middlewares.navigation-2d\/setup-2d-nav","user-settings","cljs.core\/select-keys","cljs.core\/merge","cljs.core\/update-in","user-setup","p1__2126#","initial-state","quil.middlewares.navigation-2d\/mouse-dragged","event","cljs.core\/+","dx","zoom","dy","quil.middlewares.navigation-2d\/mouse-wheel","cljs.core\/*","quil.middlewares.navigation-2d\/draw","quil.core\/push-matrix","nav-2d","quil.core\/scale","quil.core\/translate","tr__2049__auto__","quil.core\/pop-matrix","cljs.core\/first","pos","cljs.core\/second","user-draw","quil.middlewares.navigation-2d\/navigation-2d","options","cljs.core\/assoc","cljs.core\/partial","setup","user-mouse-dragged","user-mouse-wheel"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/navigation_3d.cljc b/src/assets/viz/2/quil/middlewares/navigation_3d.cljc deleted file mode 100644 index 3471cfd..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_3d.cljc +++ /dev/null @@ -1,188 +0,0 @@ -(ns quil.middlewares.navigation-3d - (:require [quil.core :as q])) - -(def ^:private missing-navigation-key-error - (str "state map is missing :navigation-3d key. " - "Did you accidentally removed it from the state in " - ":update or any other handler?")) - -(defn- assert-state-has-navigation - "Asserts that state map contains :navigation-2d object." - [state] - (when-not (:navigation-3d state) - (throw #?(:clj (RuntimeException. missing-navigation-key-error) - :cljs (js/Error. missing-navigation-key-error))))) - -(defn- default-position - "Default position configuration. Check default configuration in - 'camera' function." - [] - {:position [(/ (q/width) 2.0) - (/ (q/height) 2.0) - (/ (q/height) 2.0 (q/tan (/ (* q/PI 60.0) 360.0)))] - :straight [0 0 -1] - :up [0 1 0]}) - -(defn- rotate-by-axis-and-angle - "Rotates vector v by angle with axis. - Formula is taken from wiki: - http://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_and_angle" - [v axis angle] - (let [[a-x a-y a-z] axis - [x y z] v - cs (q/cos angle) - -cs (- 1 cs) - sn (q/sin angle) - ; Matrix is - ; [a b c] - ; [d e f] - ; [g h i] - a (+ cs (* a-x a-x -cs)) - b (- (* a-x a-y -cs) - (* a-z sn)) - c (+ (* a-x a-z -cs) - (* a-y sn)) - d (+ (* a-x a-y -cs) - (* a-z sn)) - e (+ cs (* a-y a-y -cs)) - f (- (* a-y a-z -cs) - (* a-x sn)) - g (- (* a-x a-z -cs) - (* a-y sn)) - h (+ (* a-y a-z -cs) - (* a-x sn)) - i (+ cs (* a-z a-z -cs))] - [(+ (* a x) (* b y) (* c z)) - (+ (* d x) (* e y) (* f z)) - (+ (* g x) (* h y) (* i z))])) - -(defn- rotate-lr - "Rotates nav-3d configuration left-right. angle positive - rotate right, - negative - left." - [nav-3d angle] - (update-in nav-3d [:straight] rotate-by-axis-and-angle (:up nav-3d) angle)) - -(defn- cross-product - "Vector cross-product: http://en.wikipedia.org/wiki/Cross_product" - [[u1 u2 u3] [v1 v2 v3]] - [(- (* u2 v3) (* u3 v2)) - (- (* u3 v1) (* u1 v3)) - (- (* u1 v2) (* u2 v1))]) - -(defn- v-mult - "Multiply vector v by scalar mult." - [v mult] - (mapv #(* % mult) v)) - -(defn- v-plus - "Sum of 2 vectors." - [v1 v2] - (mapv + v1 v2)) - -(defn- v-opposite - "Returns vector opposite to vector v." - [v] - (v-mult v -1)) - -(defn- v-normalize - "Normalize vector, returning vector - which has same direction but with norm equals to 1." - [v] - (let [norm (->> (map q/sq v) - (apply +) - (q/sqrt))] - (v-mult v (/ norm)))) - -(defn- rotate-ud - "Rotates nav-3d configuration up-down." - [nav-3d angle] - (let [axis (cross-product (:straight nav-3d) (:up nav-3d)) - rotate #(rotate-by-axis-and-angle % axis angle)] - (-> nav-3d - (update-in [:straight] rotate) - (update-in [:up] rotate)))) - -(defn- rotate - "Mouse handler function which rotates nav-3d configuration. - It uses mouse from event object and pixels-in-360 to calculate - angles to rotate." - [state event pixels-in-360] - (assert-state-has-navigation state) - (if (= 0 (:p-x event) (:p-y event)) - state - (let [dx (- (:p-x event) (:x event)) - dy (- (:y event) (:p-y event)) - angle-lr (q/map-range dx 0 pixels-in-360 0 q/TWO-PI) - angle-ud (q/map-range dy 0 pixels-in-360 0 q/TWO-PI)] - (update-in state [:navigation-3d] - #(-> % - (rotate-lr angle-lr) - (rotate-ud angle-ud)))))) - -(def ^:private space (keyword " ")) - -(defn- move - "Keyboard handler function which moves nav-3d configuration. - It uses keyboard key from event object to determing in which - direction to move." - [state event step-size] - (assert-state-has-navigation state) - (let [{:keys [up straight]} (:navigation-3d state)] - (if-let [dir (condp = (:key event) - :w straight - :s (v-opposite straight) - space (v-opposite up) - :z up - :d (cross-product straight up) - :a (cross-product up straight) - nil)] - (update-in state [:navigation-3d :position] - #(v-plus % (v-mult dir step-size))) - state))) - -(defn- setup-3d-nav - "Custom 'setup' function which creates initial position - configuration and puts it to the state map." - [user-setup user-settings] - (let [initial-state (-> user-settings - (select-keys [:straight :up :position]) - (->> (merge (default-position))) - (update-in [:straight] v-normalize) - (update-in [:up] v-normalize))] - (update-in (user-setup) [:navigation-3d] - #(merge initial-state %)))) - -(defn navigation-3d - "Enables navigation in 3D space. Similar to how it is done in - shooters: WASD navigation, space is go up, z is go down, - drag mouse to look around." - [options] - (let [; 3d-navigation related user settings - user-settings (:navigation-3d options) - pixels-in-360 (:pixels-in-360 user-settings 1000) - step-size (:step-size user-settings 20) - rotate-on (:rotate-on user-settings :mouse-dragged) - - ; user-provided handlers which will be overridden - ; by 3d-navigation - draw (:draw options (fn [state])) - key-pressed (:key-pressed options (fn [state _] state)) - rotate-on-fn (rotate-on options (fn [state _] state)) - setup (:setup options (fn [] {}))] - (assoc options - - :setup (partial setup-3d-nav setup user-settings) - - :draw (fn [state] - (assert-state-has-navigation state) - (let [{[c-x c-y c-z] :straight - [u-x u-y u-z] :up - [p-x p-y p-z] :position} (:navigation-3d state)] - (q/camera p-x p-y p-z (+ p-x c-x) (+ p-y c-y) (+ p-z c-z) u-x u-y u-z)) - (draw state)) - - :key-pressed (fn [state event] - (key-pressed (move state event step-size) event)) - - rotate-on (fn [state event] - (rotate-on-fn (rotate state event pixels-in-360) event)) ))) diff --git a/src/assets/viz/2/quil/middlewares/navigation_3d.cljc.cache.json b/src/assets/viz/2/quil/middlewares/navigation_3d.cljc.cache.json deleted file mode 100644 index 2edb582..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_3d.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Error",["^ "]],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.middlewares.navigation-3d","~:imports",null,"~:requires",["^ ","~$q","~$quil.core","^;","^;"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$missing-navigation-key-error",["^ ","^7","~$quil.middlewares.navigation-3d/missing-navigation-key-error","~:file","out/quil/middlewares/navigation_3d.cljc","~:line",4,"~:column",1,"~:end-line",4,"~:end-column",44,"~:private",true,"~:meta",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",4,"^C",16,"^D",4,"^E",44,"^F",true],"~:tag","~$any"],"~$v-normalize",["^ ","~:protocol-inline",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",87,"^C",8,"^D",87,"^E",19,"^F",true,"~:arglists",["~#list",["~$quote",["^M",[["~$v"]]]]],"~:doc","Normalize vector, returning vector\n which has same direction but with norm equals to 1."],"^F",true,"^7","~$quil.middlewares.navigation-3d/v-normalize","^A","out/quil/middlewares/navigation_3d.cljc","^E",19,"~:method-params",["^M",[["~$v"]]],"~:protocol-impl",null,"~:arglists-meta",["^M",[null,null]],"^C",1,"~:variadic?",false,"^B",87,"~:ret-tag","^I","^D",87,"~:max-fixed-arity",1,"~:fn-var",true,"^L",["^M",["^N",["^M",[["~$v"]]]]],"^O","Normalize vector, returning vector\n which has same direction but with norm equals to 1."],"~$v-opposite",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",82,"^C",8,"^D",82,"^E",18,"^F",true,"^L",["^M",["^N",["^M",[["~$v"]]]]],"^O","Returns vector opposite to vector v."],"^F",true,"^7","~$quil.middlewares.navigation-3d/v-opposite","^A","out/quil/middlewares/navigation_3d.cljc","^E",18,"^Q",["^M",[["~$v"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",82,"^U","^I","^D",82,"^V",1,"^W",true,"^L",["^M",["^N",["^M",[["~$v"]]]]],"^O","Returns vector opposite to vector v."],"~$v-plus",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",77,"^C",8,"^D",77,"^E",14,"^F",true,"^L",["^M",["^N",["^M",[["~$v1","~$v2"]]]]],"^O","Sum of 2 vectors."],"^F",true,"^7","~$quil.middlewares.navigation-3d/v-plus","^A","out/quil/middlewares/navigation_3d.cljc","^E",14,"^Q",["^M",[["^[","^10"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",77,"^U","^I","^D",77,"^V",2,"^W",true,"^L",["^M",["^N",["^M",[["^[","^10"]]]]],"^O","Sum of 2 vectors."],"~$v-mult",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",72,"^C",8,"^D",72,"^E",14,"^F",true,"^L",["^M",["^N",["^M",[["~$v","~$mult"]]]]],"^O","Multiply vector v by scalar mult."],"^F",true,"^7","~$quil.middlewares.navigation-3d/v-mult","^A","out/quil/middlewares/navigation_3d.cljc","^E",14,"^Q",["^M",[["~$v","^13"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",72,"^U","^I","^D",72,"^V",2,"^W",true,"^L",["^M",["^N",["^M",[["~$v","^13"]]]]],"^O","Multiply vector v by scalar mult."],"~$space",["^ ","^7","~$quil.middlewares.navigation-3d/space","^A","out/quil/middlewares/navigation_3d.cljc","^B",122,"^C",1,"^D",122,"^E",21,"^F",true,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",122,"^C",16,"^D",122,"^E",21,"^F",true],"^H","^I"],"~$setup-3d-nav",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",143,"^C",8,"^D",143,"^E",20,"^F",true,"^L",["^M",["^N",["^M",[["~$user-setup","~$user-settings"]]]]],"^O","Custom 'setup' function which creates initial position\n configuration and puts it to the state map."],"^F",true,"^7","~$quil.middlewares.navigation-3d/setup-3d-nav","^A","out/quil/middlewares/navigation_3d.cljc","^E",20,"^Q",["^M",[["^18","^19"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",143,"^U","^I","^D",143,"^V",2,"^W",true,"^L",["^M",["^N",["^M",[["^18","^19"]]]]],"^O","Custom 'setup' function which creates initial position\n configuration and puts it to the state map."],"~$move",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",124,"^C",8,"^D",124,"^E",12,"^F",true,"^L",["^M",["^N",["^M",[["~$state","~$event","~$step-size"]]]]],"^O","Keyboard handler function which moves nav-3d configuration.\n It uses keyboard key from event object to determing in which\n direction to move."],"^F",true,"^7","~$quil.middlewares.navigation-3d/move","^A","out/quil/middlewares/navigation_3d.cljc","^E",12,"^Q",["^M",[["^1<","^1=","^1>"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",124,"^U",["^6",[null,"^I"]],"^D",124,"^V",3,"^W",true,"^L",["^M",["^N",["^M",[["^1<","^1=","^1>"]]]]],"^O","Keyboard handler function which moves nav-3d configuration.\n It uses keyboard key from event object to determing in which\n direction to move."],"~$rotate-lr",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",59,"^C",8,"^D",59,"^E",17,"^F",true,"^L",["^M",["^N",["^M",[["~$nav-3d","~$angle"]]]]],"^O","Rotates nav-3d configuration left-right. angle positive - rotate right,\n negative - left."],"^F",true,"^7","~$quil.middlewares.navigation-3d/rotate-lr","^A","out/quil/middlewares/navigation_3d.cljc","^E",17,"^Q",["^M",[["^1A","^1B"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",59,"^U","^I","^D",59,"^V",2,"^W",true,"^L",["^M",["^N",["^M",[["^1A","^1B"]]]]],"^O","Rotates nav-3d configuration left-right. angle positive - rotate right,\n negative - left."],"~$cross-product",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",65,"^C",8,"^D",65,"^E",21,"^F",true,"^L",["^M",["^N",["^M",[[["~$u1","~$u2","~$u3"],["^[","^10","~$v3"]]]]]],"^O","Vector cross-product: http://en.wikipedia.org/wiki/Cross_product"],"^F",true,"^7","~$quil.middlewares.navigation-3d/cross-product","^A","out/quil/middlewares/navigation_3d.cljc","^E",21,"^Q",["^M",[["~$p__1626","~$p__1627"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",65,"^U","~$cljs.core/IVector","^D",65,"^V",2,"^W",true,"^L",["^M",["^N",["^M",[[["^1E","^1F","^1G"],["^[","^10","^1H"]]]]]],"^O","Vector cross-product: http://en.wikipedia.org/wiki/Cross_product"],"~$rotate-by-axis-and-angle",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",26,"^C",8,"^D",26,"^E",32,"^F",true,"^L",["^M",["^N",["^M",[["~$v","~$axis","^1B"]]]]],"^O","Rotates vector v by angle with axis.\n Formula is taken from wiki:\n http://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_and_angle"],"^F",true,"^7","~$quil.middlewares.navigation-3d/rotate-by-axis-and-angle","^A","out/quil/middlewares/navigation_3d.cljc","^E",32,"^Q",["^M",[["~$v","^1N","^1B"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",26,"^U","^1L","^D",26,"^V",3,"^W",true,"^L",["^M",["^N",["^M",[["~$v","^1N","^1B"]]]]],"^O","Rotates vector v by angle with axis.\n Formula is taken from wiki:\n http://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_and_angle"],"~$assert-state-has-navigation",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",9,"^C",8,"^D",9,"^E",35,"^F",true,"^L",["^M",["^N",["^M",[["^1<"]]]]],"^O","Asserts that state map contains :navigation-2d object."],"^F",true,"^7","~$quil.middlewares.navigation-3d/assert-state-has-navigation","^A","out/quil/middlewares/navigation_3d.cljc","^E",35,"^Q",["^M",[["^1<"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",9,"^U","~$clj-nil","^D",9,"^V",1,"^W",true,"^L",["^M",["^N",["^M",[["^1<"]]]]],"^O","Asserts that state map contains :navigation-2d object."],"~$navigation-3d",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",155,"^C",7,"^D",155,"^E",20,"^L",["^M",["^N",["^M",[["~$options"]]]]],"^O","Enables navigation in 3D space. Similar to how it is done in\n shooters: WASD navigation, space is go up, z is go down,\n drag mouse to look around."],"^7","~$quil.middlewares.navigation-3d/navigation-3d","^A","out/quil/middlewares/navigation_3d.cljc","^E",20,"^Q",["^M",[["^1T"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",155,"^U","^I","^D",155,"^V",1,"^W",true,"^L",["^M",["^N",["^M",[["^1T"]]]]],"^O","Enables navigation in 3D space. Similar to how it is done in\n shooters: WASD navigation, space is go up, z is go down,\n drag mouse to look around."],"~$default-position",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",16,"^C",8,"^D",16,"^E",24,"^F",true,"^L",["^M",["^N",["^M",[[]]]]],"^O","Default position configuration. Check default configuration in\n 'camera' function."],"^F",true,"^7","~$quil.middlewares.navigation-3d/default-position","^A","out/quil/middlewares/navigation_3d.cljc","^E",24,"^Q",["^M",[[]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",16,"^U","~$cljs.core/IMap","^D",16,"^V",0,"^W",true,"^L",["^M",["^N",["^M",[[]]]]],"^O","Default position configuration. Check default configuration in\n 'camera' function."],"~$rotate",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",105,"^C",8,"^D",105,"^E",14,"^F",true,"^L",["^M",["^N",["^M",[["^1<","^1=","~$pixels-in-360"]]]]],"^O","Mouse handler function which rotates nav-3d configuration.\n It uses mouse from event object and pixels-in-360 to calculate\n angles to rotate."],"^F",true,"^7","~$quil.middlewares.navigation-3d/rotate","^A","out/quil/middlewares/navigation_3d.cljc","^E",14,"^Q",["^M",[["^1<","^1=","^1Z"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",105,"^U",["^6",[null,"^I"]],"^D",105,"^V",3,"^W",true,"^L",["^M",["^N",["^M",[["^1<","^1=","^1Z"]]]]],"^O","Mouse handler function which rotates nav-3d configuration.\n It uses mouse from event object and pixels-in-360 to calculate\n angles to rotate."],"~$rotate-ud",["^ ","^K",null,"^G",["^ ","^A","/home/mediocregopher/src/viz/out/quil/middlewares/navigation_3d.cljc","^B",96,"^C",8,"^D",96,"^E",17,"^F",true,"^L",["^M",["^N",["^M",[["^1A","^1B"]]]]],"^O","Rotates nav-3d configuration up-down."],"^F",true,"^7","~$quil.middlewares.navigation-3d/rotate-ud","^A","out/quil/middlewares/navigation_3d.cljc","^E",17,"^Q",["^M",[["^1A","^1B"]]],"^R",null,"^S",["^M",[null,null]],"^C",1,"^T",false,"^B",96,"^U","^I","^D",96,"^V",2,"^W",true,"^L",["^M",["^N",["^M",[["^1A","^1B"]]]]],"^O","Rotates nav-3d configuration up-down."]],"~:cljs.spec/registry-ref",[],"~:require-macros",null,"~:cljs.analyzer/constants",["^ ","~:seen",["^6",["~:y","~:pixels-in-360","~:p-y","~:step-size","~:key","~:w","~:s","~:rotate-on","~:up","~:setup","~:z","~:straight","~:key-pressed","~:p-x","~:navigation-3d","~:position","~:d","~:x","~:draw","~:a","~:mouse-dragged"]],"~:order",["^2@","^2A","^2=","^2;","^2?","^27","~:x","~:y","^29","~:w","~:s","~:z","~:d","~:a","^26","^28","^2:","^2C","^2B","^2>","^2<"]],"^O",null] \ No newline at end of file diff --git a/src/assets/viz/2/quil/middlewares/navigation_3d.js b/src/assets/viz/2/quil/middlewares/navigation_3d.js deleted file mode 100644 index d80d58a..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_3d.js +++ /dev/null @@ -1,261 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.middlewares.navigation_3d'); -goog.require('cljs.core'); -goog.require('quil.core'); -quil.middlewares.navigation_3d.missing_navigation_key_error = ["state map is missing :navigation-3d key. ","Did you accidentally removed it from the state in ",":update or any other handler?"].join(''); -/** - * Asserts that state map contains :navigation-2d object. - */ -quil.middlewares.navigation_3d.assert_state_has_navigation = (function quil$middlewares$navigation_3d$assert_state_has_navigation(state){ -if(cljs.core.truth_(new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301).cljs$core$IFn$_invoke$arity$1(state))){ -return null; -} else { -throw (new Error(quil.middlewares.navigation_3d.missing_navigation_key_error)); -} -}); -/** - * Default position configuration. Check default configuration in - * 'camera' function. - */ -quil.middlewares.navigation_3d.default_position = (function quil$middlewares$navigation_3d$default_position(){ -return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"position","position",-2011731912),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [(quil.core.width.call(null) / 2.0),(quil.core.height.call(null) / 2.0),((quil.core.height.call(null) / 2.0) / quil.core.tan.call(null,((quil.core.PI * 60.0) / 360.0)))], null),new cljs.core.Keyword(null,"straight","straight",-1252567854),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [(0),(0),(-1)], null),new cljs.core.Keyword(null,"up","up",-269712113),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [(0),(1),(0)], null)], null); -}); -/** - * Rotates vector v by angle with axis. - * Formula is taken from wiki: - * http://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_and_angle - */ -quil.middlewares.navigation_3d.rotate_by_axis_and_angle = (function quil$middlewares$navigation_3d$rotate_by_axis_and_angle(v,axis,angle){ -var vec__1620 = axis; -var a_x = cljs.core.nth.call(null,vec__1620,(0),null); -var a_y = cljs.core.nth.call(null,vec__1620,(1),null); -var a_z = cljs.core.nth.call(null,vec__1620,(2),null); -var vec__1623 = v; -var x = cljs.core.nth.call(null,vec__1623,(0),null); -var y = cljs.core.nth.call(null,vec__1623,(1),null); -var z = cljs.core.nth.call(null,vec__1623,(2),null); -var cs = quil.core.cos.call(null,angle); -var _cs = ((1) - cs); -var sn = quil.core.sin.call(null,angle); -var a = (cs + ((a_x * a_x) * _cs)); -var b = (((a_x * a_y) * _cs) - (a_z * sn)); -var c = (((a_x * a_z) * _cs) + (a_y * sn)); -var d = (((a_x * a_y) * _cs) + (a_z * sn)); -var e = (cs + ((a_y * a_y) * _cs)); -var f = (((a_y * a_z) * _cs) - (a_x * sn)); -var g = (((a_x * a_z) * _cs) - (a_y * sn)); -var h = (((a_y * a_z) * _cs) + (a_x * sn)); -var i = (cs + ((a_z * a_z) * _cs)); -return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [(((a * x) + (b * y)) + (c * z)),(((d * x) + (e * y)) + (f * z)),(((g * x) + (h * y)) + (i * z))], null); -}); -/** - * Rotates nav-3d configuration left-right. angle positive - rotate right, - * negative - left. - */ -quil.middlewares.navigation_3d.rotate_lr = (function quil$middlewares$navigation_3d$rotate_lr(nav_3d,angle){ -return cljs.core.update_in.call(null,nav_3d,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"straight","straight",-1252567854)], null),quil.middlewares.navigation_3d.rotate_by_axis_and_angle,new cljs.core.Keyword(null,"up","up",-269712113).cljs$core$IFn$_invoke$arity$1(nav_3d),angle); -}); -/** - * Vector cross-product: http://en.wikipedia.org/wiki/Cross_product - */ -quil.middlewares.navigation_3d.cross_product = (function quil$middlewares$navigation_3d$cross_product(p__1626,p__1627){ -var vec__1628 = p__1626; -var u1 = cljs.core.nth.call(null,vec__1628,(0),null); -var u2 = cljs.core.nth.call(null,vec__1628,(1),null); -var u3 = cljs.core.nth.call(null,vec__1628,(2),null); -var vec__1631 = p__1627; -var v1 = cljs.core.nth.call(null,vec__1631,(0),null); -var v2 = cljs.core.nth.call(null,vec__1631,(1),null); -var v3 = cljs.core.nth.call(null,vec__1631,(2),null); -return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [((u2 * v3) - (u3 * v2)),((u3 * v1) - (u1 * v3)),((u1 * v2) - (u2 * v1))], null); -}); -/** - * Multiply vector v by scalar mult. - */ -quil.middlewares.navigation_3d.v_mult = (function quil$middlewares$navigation_3d$v_mult(v,mult){ -return cljs.core.mapv.call(null,(function (p1__1634_SHARP_){ -return (p1__1634_SHARP_ * mult); -}),v); -}); -/** - * Sum of 2 vectors. - */ -quil.middlewares.navigation_3d.v_plus = (function quil$middlewares$navigation_3d$v_plus(v1,v2){ -return cljs.core.mapv.call(null,cljs.core._PLUS_,v1,v2); -}); -/** - * Returns vector opposite to vector v. - */ -quil.middlewares.navigation_3d.v_opposite = (function quil$middlewares$navigation_3d$v_opposite(v){ -return quil.middlewares.navigation_3d.v_mult.call(null,v,(-1)); -}); -/** - * Normalize vector, returning vector - * which has same direction but with norm equals to 1. - */ -quil.middlewares.navigation_3d.v_normalize = (function quil$middlewares$navigation_3d$v_normalize(v){ -var norm = quil.core.sqrt.call(null,cljs.core.apply.call(null,cljs.core._PLUS_,cljs.core.map.call(null,quil.core.sq,v))); -return quil.middlewares.navigation_3d.v_mult.call(null,v,((1) / norm)); -}); -/** - * Rotates nav-3d configuration up-down. - */ -quil.middlewares.navigation_3d.rotate_ud = (function quil$middlewares$navigation_3d$rotate_ud(nav_3d,angle){ -var axis = quil.middlewares.navigation_3d.cross_product.call(null,new cljs.core.Keyword(null,"straight","straight",-1252567854).cljs$core$IFn$_invoke$arity$1(nav_3d),new cljs.core.Keyword(null,"up","up",-269712113).cljs$core$IFn$_invoke$arity$1(nav_3d)); -var rotate = ((function (axis){ -return (function (p1__1635_SHARP_){ -return quil.middlewares.navigation_3d.rotate_by_axis_and_angle.call(null,p1__1635_SHARP_,axis,angle); -});})(axis)) -; -return cljs.core.update_in.call(null,cljs.core.update_in.call(null,nav_3d,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"straight","straight",-1252567854)], null),rotate),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"up","up",-269712113)], null),rotate); -}); -/** - * Mouse handler function which rotates nav-3d configuration. - * It uses mouse from event object and pixels-in-360 to calculate - * angles to rotate. - */ -quil.middlewares.navigation_3d.rotate = (function quil$middlewares$navigation_3d$rotate(state,event,pixels_in_360){ -quil.middlewares.navigation_3d.assert_state_has_navigation.call(null,state); - -if(cljs.core._EQ_.call(null,(0),new cljs.core.Keyword(null,"p-x","p-x",-1721211211).cljs$core$IFn$_invoke$arity$1(event),new cljs.core.Keyword(null,"p-y","p-y",-530704830).cljs$core$IFn$_invoke$arity$1(event))){ -return state; -} else { -var dx = (new cljs.core.Keyword(null,"p-x","p-x",-1721211211).cljs$core$IFn$_invoke$arity$1(event) - new cljs.core.Keyword(null,"x","x",2099068185).cljs$core$IFn$_invoke$arity$1(event)); -var dy = (new cljs.core.Keyword(null,"y","y",-1757859776).cljs$core$IFn$_invoke$arity$1(event) - new cljs.core.Keyword(null,"p-y","p-y",-530704830).cljs$core$IFn$_invoke$arity$1(event)); -var angle_lr = quil.core.map_range.call(null,dx,(0),pixels_in_360,(0),quil.core.TWO_PI); -var angle_ud = quil.core.map_range.call(null,dy,(0),pixels_in_360,(0),quil.core.TWO_PI); -return cljs.core.update_in.call(null,state,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301)], null),((function (dx,dy,angle_lr,angle_ud){ -return (function (p1__1636_SHARP_){ -return quil.middlewares.navigation_3d.rotate_ud.call(null,quil.middlewares.navigation_3d.rotate_lr.call(null,p1__1636_SHARP_,angle_lr),angle_ud); -});})(dx,dy,angle_lr,angle_ud)) -); -} -}); -quil.middlewares.navigation_3d.space = cljs.core.keyword.call(null," "); -/** - * Keyboard handler function which moves nav-3d configuration. - * It uses keyboard key from event object to determing in which - * direction to move. - */ -quil.middlewares.navigation_3d.move = (function quil$middlewares$navigation_3d$move(state,event,step_size){ -quil.middlewares.navigation_3d.assert_state_has_navigation.call(null,state); - -var map__1638 = new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301).cljs$core$IFn$_invoke$arity$1(state); -var map__1638__$1 = (((((!((map__1638 == null))))?(((((map__1638.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__1638.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__1638):map__1638); -var up = cljs.core.get.call(null,map__1638__$1,new cljs.core.Keyword(null,"up","up",-269712113)); -var straight = cljs.core.get.call(null,map__1638__$1,new cljs.core.Keyword(null,"straight","straight",-1252567854)); -var temp__4655__auto__ = (function (){var pred__1640 = cljs.core._EQ_; -var expr__1641 = new cljs.core.Keyword(null,"key","key",-1516042587).cljs$core$IFn$_invoke$arity$1(event); -if(cljs.core.truth_(pred__1640.call(null,new cljs.core.Keyword(null,"w","w",354169001),expr__1641))){ -return straight; -} else { -if(cljs.core.truth_(pred__1640.call(null,new cljs.core.Keyword(null,"s","s",1705939918),expr__1641))){ -return quil.middlewares.navigation_3d.v_opposite.call(null,straight); -} else { -if(cljs.core.truth_(pred__1640.call(null,quil.middlewares.navigation_3d.space,expr__1641))){ -return quil.middlewares.navigation_3d.v_opposite.call(null,up); -} else { -if(cljs.core.truth_(pred__1640.call(null,new cljs.core.Keyword(null,"z","z",-789527183),expr__1641))){ -return up; -} else { -if(cljs.core.truth_(pred__1640.call(null,new cljs.core.Keyword(null,"d","d",1972142424),expr__1641))){ -return quil.middlewares.navigation_3d.cross_product.call(null,straight,up); -} else { -if(cljs.core.truth_(pred__1640.call(null,new cljs.core.Keyword(null,"a","a",-2123407586),expr__1641))){ -return quil.middlewares.navigation_3d.cross_product.call(null,up,straight); -} else { -return null; -} -} -} -} -} -} -})(); -if(cljs.core.truth_(temp__4655__auto__)){ -var dir = temp__4655__auto__; -return cljs.core.update_in.call(null,state,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301),new cljs.core.Keyword(null,"position","position",-2011731912)], null),((function (dir,temp__4655__auto__,map__1638,map__1638__$1,up,straight){ -return (function (p1__1637_SHARP_){ -return quil.middlewares.navigation_3d.v_plus.call(null,p1__1637_SHARP_,quil.middlewares.navigation_3d.v_mult.call(null,dir,step_size)); -});})(dir,temp__4655__auto__,map__1638,map__1638__$1,up,straight)) -); -} else { -return state; -} -}); -/** - * Custom 'setup' function which creates initial position - * configuration and puts it to the state map. - */ -quil.middlewares.navigation_3d.setup_3d_nav = (function quil$middlewares$navigation_3d$setup_3d_nav(user_setup,user_settings){ -var initial_state = cljs.core.update_in.call(null,cljs.core.update_in.call(null,cljs.core.merge.call(null,quil.middlewares.navigation_3d.default_position.call(null),cljs.core.select_keys.call(null,user_settings,new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"straight","straight",-1252567854),new cljs.core.Keyword(null,"up","up",-269712113),new cljs.core.Keyword(null,"position","position",-2011731912)], null))),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"straight","straight",-1252567854)], null),quil.middlewares.navigation_3d.v_normalize),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"up","up",-269712113)], null),quil.middlewares.navigation_3d.v_normalize); -return cljs.core.update_in.call(null,user_setup.call(null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301)], null),((function (initial_state){ -return (function (p1__1643_SHARP_){ -return cljs.core.merge.call(null,initial_state,p1__1643_SHARP_); -});})(initial_state)) -); -}); -/** - * Enables navigation in 3D space. Similar to how it is done in - * shooters: WASD navigation, space is go up, z is go down, - * drag mouse to look around. - */ -quil.middlewares.navigation_3d.navigation_3d = (function quil$middlewares$navigation_3d$navigation_3d(options){ -var user_settings = new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301).cljs$core$IFn$_invoke$arity$1(options); -var pixels_in_360 = new cljs.core.Keyword(null,"pixels-in-360","pixels-in-360",1789567298).cljs$core$IFn$_invoke$arity$2(user_settings,(1000)); -var step_size = new cljs.core.Keyword(null,"step-size","step-size",1545609922).cljs$core$IFn$_invoke$arity$2(user_settings,(20)); -var rotate_on = new cljs.core.Keyword(null,"rotate-on","rotate-on",-1282225937).cljs$core$IFn$_invoke$arity$2(user_settings,new cljs.core.Keyword(null,"mouse-dragged","mouse-dragged",-1220073441)); -var draw = new cljs.core.Keyword(null,"draw","draw",1358331674).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings,pixels_in_360,step_size,rotate_on){ -return (function (state){ -return null; -});})(user_settings,pixels_in_360,step_size,rotate_on)) -); -var key_pressed = new cljs.core.Keyword(null,"key-pressed","key-pressed",-757100364).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings,pixels_in_360,step_size,rotate_on,draw){ -return (function (state,_){ -return state; -});})(user_settings,pixels_in_360,step_size,rotate_on,draw)) -); -var rotate_on_fn = rotate_on.call(null,options,((function (user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed){ -return (function (state,_){ -return state; -});})(user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed)) -); -var setup = new cljs.core.Keyword(null,"setup","setup",1987730512).cljs$core$IFn$_invoke$arity$2(options,((function (user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn){ -return (function (){ -return cljs.core.PersistentArrayMap.EMPTY; -});})(user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn)) -); -return cljs.core.assoc.call(null,options,new cljs.core.Keyword(null,"setup","setup",1987730512),cljs.core.partial.call(null,quil.middlewares.navigation_3d.setup_3d_nav,setup,user_settings),new cljs.core.Keyword(null,"draw","draw",1358331674),((function (user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn,setup){ -return (function (state){ -quil.middlewares.navigation_3d.assert_state_has_navigation.call(null,state); - -var map__1644_1655 = new cljs.core.Keyword(null,"navigation-3d","navigation-3d",682305301).cljs$core$IFn$_invoke$arity$1(state); -var map__1644_1656__$1 = (((((!((map__1644_1655 == null))))?(((((map__1644_1655.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__1644_1655.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__1644_1655):map__1644_1655); -var vec__1645_1657 = cljs.core.get.call(null,map__1644_1656__$1,new cljs.core.Keyword(null,"straight","straight",-1252567854)); -var c_x_1658 = cljs.core.nth.call(null,vec__1645_1657,(0),null); -var c_y_1659 = cljs.core.nth.call(null,vec__1645_1657,(1),null); -var c_z_1660 = cljs.core.nth.call(null,vec__1645_1657,(2),null); -var vec__1648_1661 = cljs.core.get.call(null,map__1644_1656__$1,new cljs.core.Keyword(null,"up","up",-269712113)); -var u_x_1662 = cljs.core.nth.call(null,vec__1648_1661,(0),null); -var u_y_1663 = cljs.core.nth.call(null,vec__1648_1661,(1),null); -var u_z_1664 = cljs.core.nth.call(null,vec__1648_1661,(2),null); -var vec__1651_1665 = cljs.core.get.call(null,map__1644_1656__$1,new cljs.core.Keyword(null,"position","position",-2011731912)); -var p_x_1666 = cljs.core.nth.call(null,vec__1651_1665,(0),null); -var p_y_1667 = cljs.core.nth.call(null,vec__1651_1665,(1),null); -var p_z_1668 = cljs.core.nth.call(null,vec__1651_1665,(2),null); -quil.core.camera.call(null,p_x_1666,p_y_1667,p_z_1668,(p_x_1666 + c_x_1658),(p_y_1667 + c_y_1659),(p_z_1668 + c_z_1660),u_x_1662,u_y_1663,u_z_1664); - -return draw.call(null,state); -});})(user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn,setup)) -,new cljs.core.Keyword(null,"key-pressed","key-pressed",-757100364),((function (user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn,setup){ -return (function (state,event){ -return key_pressed.call(null,quil.middlewares.navigation_3d.move.call(null,state,event,step_size),event); -});})(user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn,setup)) -,rotate_on,((function (user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn,setup){ -return (function (state,event){ -return rotate_on_fn.call(null,quil.middlewares.navigation_3d.rotate.call(null,state,event,pixels_in_360),event); -});})(user_settings,pixels_in_360,step_size,rotate_on,draw,key_pressed,rotate_on_fn,setup)) -); -}); - -//# sourceMappingURL=navigation_3d.js.map diff --git a/src/assets/viz/2/quil/middlewares/navigation_3d.js.map b/src/assets/viz/2/quil/middlewares/navigation_3d.js.map deleted file mode 100644 index 6668288..0000000 --- a/src/assets/viz/2/quil/middlewares/navigation_3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/middlewares\/navigation_3d.js","sources":["navigation_3d.cljc"],"lineCount":261,"mappings":";AAAA;;;AAGA,AAAeA,8DACb,CAAA,4CAAA,qDAAA;AAIF;;;6DAAA,7DAAOC,kIAEJ;AAFH,AAGE,oBAAU,AAAA,oGAAgBC;AAA1B;;AAAA,AACE,MACgB,KAAAC,MAAWH;;;AAE\/B;;;;kDAAA,lDAAOI;AAAP,AAAA,kDAAA,8DAAA,mQAAA,8DAAA,mFAAA,IAAA,IAAA,aAAA,iDAAA,mFAAA,IAAA,IAAA,leAIc,8BAAA,7BAAG,AAACC,kCACJ,+BAAA,9BAAG,AAACC,m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AEE,AAACG,4BAAQX,4CAAaY,MAAMX,oEAE7B;kBAAK;AAAL,AACE,AAAC5F,qEAA4BC;;AAC7B,IAAA,iBAEgC,AAAA,oGAAgBA;IAFhD,qBAAA,EAAA,EAAA,GAAA,CAAAuG,kBAAA,SAAA,EAAA,EAAA,CAAA,AAAAA,qDAAA,WAAA,CAAAxB,gCAAA,AAAAwB,mCAAA,KAAA,OAAA,QAAA,AAAA7C,0BAAAsB,mBAAAuB,gBAAAA;IAAA,iBAAA,AAAAtB,wBAAAsB,mBAAA;eAAA,AAAA\/F,wBAAAgG,eAAA,IAAA,tDAAQ;eAAR,AAAAhG,wBAAAgG,eAAA,IAAA,tDAAY;eAAZ,AAAAhG,wBAAAgG,eAAA,IAAA,tDAAgB;IAAhB,iBAAA,AAAAvB,wBAAAsB,mBAAA;eAAA,AAAA\/F,wBAAAiG,eAAA,IAAA,tDACQ;eADR,AAAAjG,wBAAAiG,eAAA,IAAA,tDACY;eADZ,AAAAjG,wBAAAiG,eAAA,IAAA,tDACgB;IADhB,iBAAA,AAAAxB,wBAAAsB,mBAAA;eAAA,AAAA\/F,wBAAAkG,eAAA,IAAA,tDAEQ;eAFR,AAAAlG,wBAAAkG,eAAA,IAAA,tDAEY;eAFZ,AAAAlG,wBAAAkG,eAAA,IAAA,tDAEgB;AAFhB,AAGE,AAACC,2BAASC,SAAIC,SAAIC,SAAI,CAAGF,WAAIG,UAAK,CAAGF,WAAIG,UAAK,CAAGF,WAAIG,UAAKC,SAAIC,SAAIC;;AACpE,OAACC,eAAKrH;;CAVhB,mEAYe;kBAAK,MAAM;AAAX,AACE,OAACsH,sBAAY,AAACzC,8CAAK7E,MAAMkE,MAAMuB,WAAWvB;;CAEzDiC,UAAU;kBAAK,MAAM;AAAX,AACE,OAACoB,uBAAa,AAACvD,gDAAOhE,MAAMkE,MAAMG,eAAeH","names":["quil.middlewares.navigation-3d\/missing-navigation-key-error","quil.middlewares.navigation-3d\/assert-state-has-navigation","state","js\/Error","quil.middlewares.navigation-3d\/default-position","quil.core\/width","quil.core\/height","quil.core\/tan","quil.core\/PI","quil.middlewares.navigation-3d\/rotate-by-axis-and-angle","cljs.core\/nth","vec__1620","vec__1623","axis","v","quil.core\/cos","angle","cs","quil.core\/sin","a-x","-cs","a-y","a-z","sn","a","x","b","y","c","z","d","e","f","g","h","i","quil.middlewares.navigation-3d\/rotate-lr","cljs.core\/update-in","nav-3d","p__1626","vec__1628","p__1627","vec__1631","quil.middlewares.navigation-3d\/cross-product","u2","v3","u3","v2","v1","u1","quil.middlewares.navigation-3d\/v-mult","cljs.core\/mapv","p1__1634#","mult","quil.middlewares.navigation-3d\/v-plus","cljs.core\/+","quil.middlewares.navigation-3d\/v-opposite","quil.middlewares.navigation-3d\/v-normalize","cljs.core\/map","quil.core\/sq","cljs.core\/apply","quil.core\/sqrt","norm","quil.middlewares.navigation-3d\/rotate-ud","p1__1635#","rotate","quil.middlewares.navigation-3d\/rotate","cljs.core\/=","event","quil.core\/map-range","dx","pixels-in-360","quil.core\/TWO-PI","dy","p1__1636#","angle-lr","angle-ud","quil.middlewares.navigation-3d\/space","cljs.core\/keyword","quil.middlewares.navigation-3d\/move","map__1638","cljs.core\/PROTOCOL_SENTINEL","cljs.core\/hash-map","cljs.core\/get","temp__4655__auto__","pred__1640","expr__1641","straight","up","p1__1637#","dir","step-size","quil.middlewares.navigation-3d\/setup-3d-nav","user-settings","cljs.core\/select-keys","cljs.core\/merge","user-setup","p1__1643#","initial-state","quil.middlewares.navigation-3d\/navigation-3d","options","rotate-on","cljs.core\/assoc","cljs.core\/partial","setup","map__1644","vec__1645","vec__1648","vec__1651","quil.core\/camera","p-x","p-y","p-z","c-x","c-y","c-z","u-x","u-y","u-z","draw","key-pressed","rotate-on-fn"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/sketch.cljs b/src/assets/viz/2/quil/sketch.cljs deleted file mode 100644 index 4e48038..0000000 --- a/src/assets/viz/2/quil/sketch.cljs +++ /dev/null @@ -1,128 +0,0 @@ -(ns quil.sketch - (:require [quil.util :as u :include-macros true] - [quil.middlewares.deprecated-options :as do] - [goog.dom :as dom] - [goog.events :as events] - [goog.events.EventType :as EventType]) - (:require-macros [quil.sketch])) - -(def ^:dynamic - *applet* nil) - -(defn current-applet [] *applet*) - -(u/generate-quil-constants :cljs - rendering-modes (:java2d :p2d :p3d :opengl)) - -(defn resolve-renderer [mode] - (u/resolve-constant-key mode rendering-modes)) - -(defn size - ([width height] - (.size (current-applet) (int width) (int height))) - - ([width height mode] - (.size (current-applet) (int width) (int height) (u/resolve-constant-key mode rendering-modes)))) - -(defn- bind-handlers [prc opts] - (doseq [[processing-name quil-name] {:setup :setup - :draw :draw - - :keyPressed :key-pressed - :keyReleased :key-released - :keyTyped :key-typed - - :mouseClicked :mouse-clicked - :mouseDragged :mouse-dragged - :mouseMoved :mouse-moved - :mousePressed :mouse-pressed - :mouseReleased :mouse-released - :mouseOut :mouse-exited - :mouseOver :mouse-entered - :mouseScrolled :mouse-wheel}] - (when-let [handler (opts quil-name)] - (aset prc (name processing-name) - (fn [] - (quil.sketch/with-sketch prc - (handler))))))) - -(defn make-sketch [options] - (let [opts (->> (:middleware options []) - (cons do/deprecated-options) - (apply comp) - (#(% options)) - (merge {:size [500 300]})) - - sketch-size (or (:size opts) [200 200]) - renderer (:renderer opts) - features (set (:features opts)) - - setup (fn [] - (->> (if renderer [renderer] []) - (concat sketch-size) - (apply size)) - (when (:settings opts) ((:settings opts))) - (when (:setup opts) ((:setup opts)))) - mouse-wheel (when (:mouse-wheel opts) - ;; -1 need for compability with Clojure version - #((:mouse-wheel opts) (* -1 (.-mouseScroll *applet*)))) - - opts (assoc opts - :setup setup - :mouse-wheel mouse-wheel) - attach-function (fn [prc] - (bind-handlers prc opts) - (set! (.-quil prc) (atom nil)) - (set! (.-target-frame-rate prc) (atom 60))) - sketch (js/Processing.Sketch. attach-function)] - (when (contains? features :global-key-events) - (aset (aget sketch "options") "globalKeyEvents" true)) - sketch)) - -(defn destroy-previous-sketch [host-elem] - (when-let [proc-obj (.-processing-obj host-elem)] - (.exit proc-obj))) - -(defn sketch [& opts] - (let [opts-map (apply hash-map opts) - host-elem (dom/getElement (:host opts-map)) - renderer (or (:renderer opts-map) :p2d)] - (if host-elem - (do - (if (.-processing-context host-elem) - (when-not (= renderer (.-processing-context host-elem)) - (.warn js/console "WARNING: Using different context on one canvas!")) - (set! (.-processing-context host-elem) renderer)) - (destroy-previous-sketch host-elem) - (set! (.-processing-obj host-elem) - (js/Processing. host-elem (make-sketch opts-map)))) - (.error js/console "ERROR: Cannot create sketch. :host is not specified.")))) - -(def sketch-init-list (atom (list ))) - -(defn empty-body? [] - (let [child (.-childNodes (.-body js/document))] - ; seems hacky, we should come up with better way of - ; checking whether body is empty or not - (<= (.-length child) 1))) - -(defn add-canvas [canvas-id] - (let [canvas (.createElement js/document "canvas")] - (.setAttribute canvas "id" canvas-id) - (.appendChild (.-body js/document) canvas))) - -(defn init-sketches [] - (let [add-elem? (empty-body?)] - (doseq [sk @sketch-init-list] - (when add-elem? - (add-canvas (:host-id sk))) - ((:fn sk)))) - (reset! sketch-init-list [])) - -(defn add-sketch-to-init-list [sk] - (swap! sketch-init-list conj sk) - ; if page already loaded immediately init sketch we just added - (when (= (.-readyState js/document) "complete") - (init-sketches))) - -(events/listenOnce js/window EventType/LOAD init-sketches) diff --git a/src/assets/viz/2/quil/sketch.cljs.cache.json b/src/assets/viz/2/quil/sketch.cljs.cache.json deleted file mode 100644 index 5544f56..0000000 --- a/src/assets/viz/2/quil/sketch.cljs.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Processing",["^ ","~$prototype",["^ ","~$PConstants",["^ "]],"~$Sketch",["^ "]],"~$Error",["^ "],"~$console",["^ ","~$warn",["^ "],"~$error",["^ "]],"~$document",["^ ","~$body",["^ ","~$childNodes",["^ ","~$length",["^ "]],"~$appendChild",["^ "]],"~$createElement",["^ "],"~$readyState",["^ "]],"~$Object",["^ ","~$setAttribute",["^ "]],"~$window",["^ "]],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.sketch","~:imports",null,"~:requires",["^ ","~$goog.dom","^L","~$dom","^L","~$u","~$quil.util","~$EventType","~$goog.events.EventType","~$quil.middlewares.deprecated-options","^Q","~$do","^Q","^P","^P","~$events","~$goog.events","^T","^T","^N","^N"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$current-applet",["^ ","~:protocol-inline",null,"~:meta",["^ ","~:file","/home/mediocregopher/src/viz/out/quil/sketch.cljs","~:line",12,"~:column",7,"~:end-line",12,"~:end-column",21,"~:arglists",["~#list",["~$quote",["^15",[[]]]]]],"^H","~$quil.sketch/current-applet","^[","out/quil/sketch.cljs","^13",21,"~:method-params",["^15",[[]]],"~:protocol-impl",null,"~:arglists-meta",["^15",[null,null]],"^11",1,"~:variadic?",false,"^10",12,"~:ret-tag","~$clj-nil","^12",12,"~:max-fixed-arity",0,"~:fn-var",true,"^14",["^15",["^16",["^15",[[]]]]]],"~$make-sketch",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",49,"^11",7,"^12",49,"^13",18,"^14",["^15",["^16",["^15",[["~$options"]]]]]],"^H","~$quil.sketch/make-sketch","^[","out/quil/sketch.cljs","^13",18,"^18",["^15",[["^1A"]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",49,"^1<","~$js/Processing.Sketch","^12",49,"^1>",1,"^1?",true,"^14",["^15",["^16",["^15",[["^1A"]]]]]],"~$sketch",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",86,"^11",7,"^12",86,"^13",13,"^14",["^15",["^16",["^15",[["~$&","~$opts"]]]]],"~:top-fn",["^ ","^1;",true,"^1>",0,"^18",[["^15",["^1E"]]],"^14",["^15",[["~$&","^1E"]]],"^1:",["^15",[null]]]],"^H","~$quil.sketch/sketch","^[","out/quil/sketch.cljs","^13",13,"^1F",["^ ","^1;",true,"^1>",0,"^18",[["^15",["^1E"]]],"^14",["^15",[["~$&","^1E"]]],"^1:",["^15",[null]]],"^18",[["^15",["^1E"]]],"^19",null,"^1:",["^15",[null]],"^11",1,"^1;",true,"^10",86,"^1<","~$any","^12",86,"^1>",0,"^1?",true,"^14",["^15",[["~$&","^1E"]]]],"~$bind-handlers",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",27,"^11",8,"^12",27,"^13",21,"~:private",true,"^14",["^15",["^16",["^15",[["~$prc","^1E"]]]]]],"^1J",true,"^H","~$quil.sketch/bind-handlers","^[","out/quil/sketch.cljs","^13",21,"^18",["^15",[["^1K","^1E"]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",27,"^1<","^1=","^12",27,"^1>",2,"^1?",true,"^14",["^15",["^16",["^15",[["^1K","^1E"]]]]]],"~$empty-body?",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",103,"^11",7,"^12",103,"^13",18,"^14",["^15",["^16",["^15",[[]]]]]],"^H","~$quil.sketch/empty-body?","^[","out/quil/sketch.cljs","^13",18,"^18",["^15",[[]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",103,"^1<","~$boolean","^12",103,"^1>",0,"^1?",true,"^14",["^15",["^16",["^15",[[]]]]]],"~$rendering-modes",["^ ","^H","~$quil.sketch/rendering-modes","^[","out/quil/sketch.cljs","^10",14,"^11",1,"^12",15,"^13",18,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",15,"^11",3,"^12",15,"^13",18],"~:tag","~$cljs.core/IMap"],"~$size",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",20,"^11",7,"^12",20,"^13",11,"^14",["^15",["^16",["^15",[["~$width","~$height"],["^1U","^1V","~$mode"]]]]],"^1F",["^ ","^1;",false,"^1>",3,"^18",["^15",[["^1U","^1V"],["^1U","^1V","^1W"]]],"^14",["^15",[["^1U","^1V"],["^1U","^1V","^1W"]]],"^1:",["^15",[null,null]]]],"^H","~$quil.sketch/size","^[","out/quil/sketch.cljs","^13",11,"^1F",["^ ","^1;",false,"^1>",3,"^18",["^15",[["^1U","^1V"],["^1U","^1V","^1W"]]],"^14",["^15",[["^1U","^1V"],["^1U","^1V","^1W"]]],"^1:",["^15",[null,null]]],"^18",["^15",[["^1U","^1V"],["^1U","^1V","^1W"]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",20,"^12",20,"^1>",3,"^1?",true,"^14",["^15",[["^1U","^1V"],["^1U","^1V","^1W"]]]],"~$add-sketch-to-init-list",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",122,"^11",7,"^12",122,"^13",30,"^14",["^15",["^16",["^15",[["~$sk"]]]]]],"^H","~$quil.sketch/add-sketch-to-init-list","^[","out/quil/sketch.cljs","^13",30,"^18",["^15",[["^1Z"]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",122,"^1<",["^G",[null,"^1H","^1="]],"^12",122,"^1>",1,"^1?",true,"^14",["^15",["^16",["^15",[["^1Z"]]]]]],"~$sketch-init-list",["^ ","^H","~$quil.sketch/sketch-init-list","^[","out/quil/sketch.cljs","^10",101,"^11",1,"^12",101,"^13",22,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",101,"^11",6,"^12",101,"^13",22],"^1R","^1H"],"~$init-sketches",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",114,"^11",7,"^12",114,"^13",20,"^14",["^15",["^16",["^15",[[]]]]]],"^H","~$quil.sketch/init-sketches","^[","out/quil/sketch.cljs","^13",20,"^18",["^15",[[]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",114,"^1<",["^G",[null,"^1H"]],"^12",114,"^1>",0,"^1?",true,"^14",["^15",["^16",["^15",[[]]]]]],"~$destroy-previous-sketch",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",82,"^11",7,"^12",82,"^13",30,"^14",["^15",["^16",["^15",[["~$host-elem"]]]]]],"^H","~$quil.sketch/destroy-previous-sketch","^[","out/quil/sketch.cljs","^13",30,"^18",["^15",[["^25"]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",82,"^1<",["^G",["^1H","^1="]],"^12",82,"^1>",1,"^1?",true,"^14",["^15",["^16",["^15",[["^25"]]]]]],"~$resolve-renderer",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",17,"^11",7,"^12",17,"^13",23,"^14",["^15",["^16",["^15",[["^1W"]]]]]],"^H","~$quil.sketch/resolve-renderer","^[","out/quil/sketch.cljs","^13",23,"^18",["^15",[["^1W"]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",17,"^1<",["^G",[null,"^1H"]],"^12",17,"^1>",1,"^1?",true,"^14",["^15",["^16",["^15",[["^1W"]]]]]],"~$*applet*",["^ ","^H","~$quil.sketch/*applet*","^[","out/quil/sketch.cljs","^10",9,"^11",1,"^12",10,"^13",11,"~:dynamic",true,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",10,"^11",3,"^12",10,"^13",11,"^2;",true],"^1R","^1="],"~$add-canvas",["^ ","^Y",null,"^Z",["^ ","^[","/home/mediocregopher/src/viz/out/quil/sketch.cljs","^10",109,"^11",7,"^12",109,"^13",17,"^14",["^15",["^16",["^15",[["~$canvas-id"]]]]]],"^H","~$quil.sketch/add-canvas","^[","out/quil/sketch.cljs","^13",17,"^18",["^15",[["^2="]]],"^19",null,"^1:",["^15",[null,null]],"^11",1,"^1;",false,"^10",109,"^1<","~$js","^12",109,"^1>",1,"^1?",true,"^14",["^15",["^16",["^15",[["^2="]]]]]]],"~:cljs.spec/registry-ref",[],"~:require-macros",["^ ","^I","^I","~$u","^N","^N","^N"],"~:cljs.analyzer/constants",["^ ","~:seen",["^G",["~:features","~:key-typed","~:mouse-clicked","~:mouse-released","~:fn","~:mouse-exited","~:java2d","~:mouse-wheel","~:keyPressed","~:opengl","~:mouse-moved","~:mouseOut","~:settings","~:mouseScrolled","~:mouseDragged","~:renderer","~:size","~:setup","~:mouse-pressed","~:middleware","~:global-key-events","~:host","~:mouse-entered","~:key-pressed","~:key-released","~:keyReleased","~:mouseClicked","~:p2d","~:mouseReleased","~:mousePressed","~:mouseMoved","~:mouseOver","~:host-id","~:keyTyped","~:draw","~:p3d","~:mouse-dragged"]],"~:order",["^2J","^33","^3;","^2M","^2L","^2O","^2Q","^2R","^2U","^31","^32","^34","^35","^36","^37","^39","^3:","^2[","^2I","^2K","^3<","^30","^2F","^2G","^2V","^2N","^2Z","^2E","^2T","^2W","^2S","^2D","^2P","^2X","^2Y","^38","^2H"]],"~:doc",null] \ No newline at end of file diff --git a/src/assets/viz/2/quil/sketch.js b/src/assets/viz/2/quil/sketch.js deleted file mode 100644 index b394075..0000000 --- a/src/assets/viz/2/quil/sketch.js +++ /dev/null @@ -1,341 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.sketch'); -goog.require('cljs.core'); -goog.require('quil.util'); -goog.require('quil.middlewares.deprecated_options'); -goog.require('goog.dom'); -goog.require('goog.events'); -goog.require('goog.events.EventType'); -quil.sketch._STAR_applet_STAR_ = null; -quil.sketch.current_applet = (function quil$sketch$current_applet(){ -return quil.sketch._STAR_applet_STAR_; -}); -quil.sketch.rendering_modes = new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"java2d","java2d",166099237),(Processing.prototype.PConstants["JAVA2D"]),new cljs.core.Keyword(null,"p2d","p2d",-2106175755),(Processing.prototype.PConstants["P2D"]),new cljs.core.Keyword(null,"p3d","p3d",-850380194),(Processing.prototype.PConstants["P3D"]),new cljs.core.Keyword(null,"opengl","opengl",-614998103),(Processing.prototype.PConstants["OPENGL"])], null); -quil.sketch.resolve_renderer = (function quil$sketch$resolve_renderer(mode){ -return quil.util.resolve_constant_key.call(null,mode,quil.sketch.rendering_modes); -}); -quil.sketch.size = (function quil$sketch$size(var_args){ -var G__1217 = arguments.length; -switch (G__1217) { -case 2: -return quil.sketch.size.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.sketch.size.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.sketch.size.cljs$core$IFn$_invoke$arity$2 = (function (width,height){ -return quil.sketch.current_applet.call(null).size((width | (0)),(height | (0))); -}); - -quil.sketch.size.cljs$core$IFn$_invoke$arity$3 = (function (width,height,mode){ -return quil.sketch.current_applet.call(null).size((width | (0)),(height | (0)),quil.util.resolve_constant_key.call(null,mode,quil.sketch.rendering_modes)); -}); - -quil.sketch.size.cljs$lang$maxFixedArity = 3; - -quil.sketch.bind_handlers = (function quil$sketch$bind_handlers(prc,opts){ -var seq__1219 = cljs.core.seq.call(null,cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"keyPressed","keyPressed",1791025256),new cljs.core.Keyword(null,"mouseOut","mouseOut",-386669045),new cljs.core.Keyword(null,"mouseScrolled","mouseScrolled",31878252),new cljs.core.Keyword(null,"mouseDragged","mouseDragged",129975181),new cljs.core.Keyword(null,"setup","setup",1987730512),new cljs.core.Keyword(null,"keyReleased","keyReleased",541714964),new cljs.core.Keyword(null,"mouseClicked","mouseClicked",1764302965),new cljs.core.Keyword(null,"mouseReleased","mouseReleased",1116234838),new cljs.core.Keyword(null,"mousePressed","mousePressed",1776186454),new cljs.core.Keyword(null,"mouseMoved","mouseMoved",-1936954058),new cljs.core.Keyword(null,"mouseOver","mouseOver",-1334461930),new cljs.core.Keyword(null,"keyTyped","keyTyped",1437329399),new cljs.core.Keyword(null,"draw","draw",1358331674)],[new cljs.core.Keyword(null,"key-pressed","key-pressed",-757100364),new cljs.core.Keyword(null,"mouse-exited","mouse-exited",-483205244),new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439),new cljs.core.Keyword(null,"mouse-dragged","mouse-dragged",-1220073441),new cljs.core.Keyword(null,"setup","setup",1987730512),new cljs.core.Keyword(null,"key-released","key-released",215919828),new cljs.core.Keyword(null,"mouse-clicked","mouse-clicked",-199339421),new cljs.core.Keyword(null,"mouse-released","mouse-released",-664480061),new cljs.core.Keyword(null,"mouse-pressed","mouse-pressed",736955536),new cljs.core.Keyword(null,"mouse-moved","mouse-moved",-1918152310),new cljs.core.Keyword(null,"mouse-entered","mouse-entered",811350322),new cljs.core.Keyword(null,"key-typed","key-typed",-876037597),new cljs.core.Keyword(null,"draw","draw",1358331674)])); -var chunk__1220 = null; -var count__1221 = (0); -var i__1222 = (0); -while(true){ -if((i__1222 < count__1221)){ -var vec__1223 = cljs.core._nth.call(null,chunk__1220,i__1222); -var processing_name = cljs.core.nth.call(null,vec__1223,(0),null); -var quil_name = cljs.core.nth.call(null,vec__1223,(1),null); -var temp__4657__auto___1233 = opts.call(null,quil_name); -if(cljs.core.truth_(temp__4657__auto___1233)){ -var handler_1234 = temp__4657__auto___1233; -(prc[cljs.core.name.call(null,processing_name)] = ((function (seq__1219,chunk__1220,count__1221,i__1222,handler_1234,temp__4657__auto___1233,vec__1223,processing_name,quil_name){ -return (function (){ -var _STAR_applet_STAR__orig_val__1226 = quil.sketch._STAR_applet_STAR_; -var _STAR_applet_STAR__temp_val__1227 = prc; -quil.sketch._STAR_applet_STAR_ = _STAR_applet_STAR__temp_val__1227; - -try{return handler_1234.call(null); -}finally {quil.sketch._STAR_applet_STAR_ = _STAR_applet_STAR__orig_val__1226; -}});})(seq__1219,chunk__1220,count__1221,i__1222,handler_1234,temp__4657__auto___1233,vec__1223,processing_name,quil_name)) -); -} else { -} - - -var G__1235 = seq__1219; -var G__1236 = chunk__1220; -var G__1237 = count__1221; -var G__1238 = (i__1222 + (1)); -seq__1219 = G__1235; -chunk__1220 = G__1236; -count__1221 = G__1237; -i__1222 = G__1238; -continue; -} else { -var temp__4657__auto__ = cljs.core.seq.call(null,seq__1219); -if(temp__4657__auto__){ -var seq__1219__$1 = temp__4657__auto__; -if(cljs.core.chunked_seq_QMARK_.call(null,seq__1219__$1)){ -var c__4461__auto__ = cljs.core.chunk_first.call(null,seq__1219__$1); -var G__1239 = cljs.core.chunk_rest.call(null,seq__1219__$1); -var G__1240 = c__4461__auto__; -var G__1241 = cljs.core.count.call(null,c__4461__auto__); -var G__1242 = (0); -seq__1219 = G__1239; -chunk__1220 = G__1240; -count__1221 = G__1241; -i__1222 = G__1242; -continue; -} else { -var vec__1228 = cljs.core.first.call(null,seq__1219__$1); -var processing_name = cljs.core.nth.call(null,vec__1228,(0),null); -var quil_name = cljs.core.nth.call(null,vec__1228,(1),null); -var temp__4657__auto___1243__$1 = opts.call(null,quil_name); -if(cljs.core.truth_(temp__4657__auto___1243__$1)){ -var handler_1244 = temp__4657__auto___1243__$1; -(prc[cljs.core.name.call(null,processing_name)] = ((function (seq__1219,chunk__1220,count__1221,i__1222,handler_1244,temp__4657__auto___1243__$1,vec__1228,processing_name,quil_name,seq__1219__$1,temp__4657__auto__){ -return (function (){ -var _STAR_applet_STAR__orig_val__1231 = quil.sketch._STAR_applet_STAR_; -var _STAR_applet_STAR__temp_val__1232 = prc; -quil.sketch._STAR_applet_STAR_ = _STAR_applet_STAR__temp_val__1232; - -try{return handler_1244.call(null); -}finally {quil.sketch._STAR_applet_STAR_ = _STAR_applet_STAR__orig_val__1231; -}});})(seq__1219,chunk__1220,count__1221,i__1222,handler_1244,temp__4657__auto___1243__$1,vec__1228,processing_name,quil_name,seq__1219__$1,temp__4657__auto__)) -); -} else { -} - - -var G__1245 = cljs.core.next.call(null,seq__1219__$1); -var G__1246 = null; -var G__1247 = (0); -var G__1248 = (0); -seq__1219 = G__1245; -chunk__1220 = G__1246; -count__1221 = G__1247; -i__1222 = G__1248; -continue; -} -} else { -return null; -} -} -break; -} -}); -quil.sketch.make_sketch = (function quil$sketch$make_sketch(options){ -var opts = cljs.core.merge.call(null,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"size","size",1098693007),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(500),(300)], null)], null),(function (p1__1249_SHARP_){ -return p1__1249_SHARP_.call(null,options); -}).call(null,cljs.core.apply.call(null,cljs.core.comp,cljs.core.cons.call(null,quil.middlewares.deprecated_options.deprecated_options,new cljs.core.Keyword(null,"middleware","middleware",1462115504).cljs$core$IFn$_invoke$arity$2(options,cljs.core.PersistentVector.EMPTY))))); -var sketch_size = (function (){var or__4047__auto__ = new cljs.core.Keyword(null,"size","size",1098693007).cljs$core$IFn$_invoke$arity$1(opts); -if(cljs.core.truth_(or__4047__auto__)){ -return or__4047__auto__; -} else { -return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(200),(200)], null); -} -})(); -var renderer = new cljs.core.Keyword(null,"renderer","renderer",336841071).cljs$core$IFn$_invoke$arity$1(opts); -var features = cljs.core.set.call(null,new cljs.core.Keyword(null,"features","features",-1146962336).cljs$core$IFn$_invoke$arity$1(opts)); -var setup = ((function (opts,sketch_size,renderer,features){ -return (function (){ -cljs.core.apply.call(null,quil.sketch.size,cljs.core.concat.call(null,sketch_size,(cljs.core.truth_(renderer)?new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [renderer], null):cljs.core.PersistentVector.EMPTY))); - -if(cljs.core.truth_(new cljs.core.Keyword(null,"settings","settings",1556144875).cljs$core$IFn$_invoke$arity$1(opts))){ -new cljs.core.Keyword(null,"settings","settings",1556144875).cljs$core$IFn$_invoke$arity$1(opts).call(null); -} else { -} - -if(cljs.core.truth_(new cljs.core.Keyword(null,"setup","setup",1987730512).cljs$core$IFn$_invoke$arity$1(opts))){ -return new cljs.core.Keyword(null,"setup","setup",1987730512).cljs$core$IFn$_invoke$arity$1(opts).call(null); -} else { -return null; -} -});})(opts,sketch_size,renderer,features)) -; -var mouse_wheel = (cljs.core.truth_(new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439).cljs$core$IFn$_invoke$arity$1(opts))?((function (opts,sketch_size,renderer,features,setup){ -return (function (){ -return new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439).cljs$core$IFn$_invoke$arity$1(opts).call(null,((-1) * quil.sketch._STAR_applet_STAR_.mouseScroll)); -});})(opts,sketch_size,renderer,features,setup)) -:null); -var opts__$1 = cljs.core.assoc.call(null,opts,new cljs.core.Keyword(null,"setup","setup",1987730512),setup,new cljs.core.Keyword(null,"mouse-wheel","mouse-wheel",1811662439),mouse_wheel); -var attach_function = ((function (opts,sketch_size,renderer,features,setup,mouse_wheel,opts__$1){ -return (function (prc){ -quil.sketch.bind_handlers.call(null,prc,opts__$1); - -prc.quil = cljs.core.atom.call(null,null); - -return prc.target_frame_rate = cljs.core.atom.call(null,(60)); -});})(opts,sketch_size,renderer,features,setup,mouse_wheel,opts__$1)) -; -var sketch = (new Processing.Sketch(attach_function)); -if(cljs.core.contains_QMARK_.call(null,features,new cljs.core.Keyword(null,"global-key-events","global-key-events",335064944))){ -((sketch["options"])["globalKeyEvents"] = true); -} else { -} - -return sketch; -}); -quil.sketch.destroy_previous_sketch = (function quil$sketch$destroy_previous_sketch(host_elem){ -var temp__4657__auto__ = host_elem.processing_obj; -if(cljs.core.truth_(temp__4657__auto__)){ -var proc_obj = temp__4657__auto__; -return proc_obj.exit(); -} else { -return null; -} -}); -quil.sketch.sketch = (function quil$sketch$sketch(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1251 = arguments.length; -var i__4642__auto___1252 = (0); -while(true){ -if((i__4642__auto___1252 < len__4641__auto___1251)){ -args__4647__auto__.push((arguments[i__4642__auto___1252])); - -var G__1253 = (i__4642__auto___1252 + (1)); -i__4642__auto___1252 = G__1253; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((0) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((0)),(0),null)):null); -return quil.sketch.sketch.cljs$core$IFn$_invoke$arity$variadic(argseq__4648__auto__); -}); - -quil.sketch.sketch.cljs$core$IFn$_invoke$arity$variadic = (function (opts){ -var opts_map = cljs.core.apply.call(null,cljs.core.hash_map,opts); -var host_elem = goog.dom.getElement(new cljs.core.Keyword(null,"host","host",-1558485167).cljs$core$IFn$_invoke$arity$1(opts_map)); -var renderer = (function (){var or__4047__auto__ = new cljs.core.Keyword(null,"renderer","renderer",336841071).cljs$core$IFn$_invoke$arity$1(opts_map); -if(cljs.core.truth_(or__4047__auto__)){ -return or__4047__auto__; -} else { -return new cljs.core.Keyword(null,"p2d","p2d",-2106175755); -} -})(); -if(cljs.core.truth_(host_elem)){ -if(cljs.core.truth_(host_elem.processing_context)){ -if(cljs.core._EQ_.call(null,renderer,host_elem.processing_context)){ -} else { -console.warn("WARNING: Using different context on one canvas!"); -} -} else { -host_elem.processing_context = renderer; -} - -quil.sketch.destroy_previous_sketch.call(null,host_elem); - -return host_elem.processing_obj = (new Processing(host_elem,quil.sketch.make_sketch.call(null,opts_map))); -} else { -return console.error("ERROR: Cannot create sketch. :host is not specified."); -} -}); - -quil.sketch.sketch.cljs$lang$maxFixedArity = (0); - -/** @this {Function} */ -quil.sketch.sketch.cljs$lang$applyTo = (function (seq1250){ -var self__4629__auto__ = this; -return self__4629__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq1250)); -}); - -quil.sketch.sketch_init_list = cljs.core.atom.call(null,cljs.core.List.EMPTY); -quil.sketch.empty_body_QMARK_ = (function quil$sketch$empty_body_QMARK_(){ -var child = document.body.childNodes; -return (child.length <= (1)); -}); -quil.sketch.add_canvas = (function quil$sketch$add_canvas(canvas_id){ -var canvas = document.createElement("canvas"); -canvas.setAttribute("id",canvas_id); - -return document.body.appendChild(canvas); -}); -quil.sketch.init_sketches = (function quil$sketch$init_sketches(){ -var add_elem_QMARK__1258 = quil.sketch.empty_body_QMARK_.call(null); -var seq__1254_1259 = cljs.core.seq.call(null,cljs.core.deref.call(null,quil.sketch.sketch_init_list)); -var chunk__1255_1260 = null; -var count__1256_1261 = (0); -var i__1257_1262 = (0); -while(true){ -if((i__1257_1262 < count__1256_1261)){ -var sk_1263 = cljs.core._nth.call(null,chunk__1255_1260,i__1257_1262); -if(add_elem_QMARK__1258){ -quil.sketch.add_canvas.call(null,new cljs.core.Keyword(null,"host-id","host-id",742376279).cljs$core$IFn$_invoke$arity$1(sk_1263)); -} else { -} - -new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(sk_1263).call(null); - - -var G__1264 = seq__1254_1259; -var G__1265 = chunk__1255_1260; -var G__1266 = count__1256_1261; -var G__1267 = (i__1257_1262 + (1)); -seq__1254_1259 = G__1264; -chunk__1255_1260 = G__1265; -count__1256_1261 = G__1266; -i__1257_1262 = G__1267; -continue; -} else { -var temp__4657__auto___1268 = cljs.core.seq.call(null,seq__1254_1259); -if(temp__4657__auto___1268){ -var seq__1254_1269__$1 = temp__4657__auto___1268; -if(cljs.core.chunked_seq_QMARK_.call(null,seq__1254_1269__$1)){ -var c__4461__auto___1270 = cljs.core.chunk_first.call(null,seq__1254_1269__$1); -var G__1271 = cljs.core.chunk_rest.call(null,seq__1254_1269__$1); -var G__1272 = c__4461__auto___1270; -var G__1273 = cljs.core.count.call(null,c__4461__auto___1270); -var G__1274 = (0); -seq__1254_1259 = G__1271; -chunk__1255_1260 = G__1272; -count__1256_1261 = G__1273; -i__1257_1262 = G__1274; -continue; -} else { -var sk_1275 = cljs.core.first.call(null,seq__1254_1269__$1); -if(add_elem_QMARK__1258){ -quil.sketch.add_canvas.call(null,new cljs.core.Keyword(null,"host-id","host-id",742376279).cljs$core$IFn$_invoke$arity$1(sk_1275)); -} else { -} - -new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(sk_1275).call(null); - - -var G__1276 = cljs.core.next.call(null,seq__1254_1269__$1); -var G__1277 = null; -var G__1278 = (0); -var G__1279 = (0); -seq__1254_1259 = G__1276; -chunk__1255_1260 = G__1277; -count__1256_1261 = G__1278; -i__1257_1262 = G__1279; -continue; -} -} else { -} -} -break; -} - -return cljs.core.reset_BANG_.call(null,quil.sketch.sketch_init_list,cljs.core.PersistentVector.EMPTY); -}); -quil.sketch.add_sketch_to_init_list = (function quil$sketch$add_sketch_to_init_list(sk){ -cljs.core.swap_BANG_.call(null,quil.sketch.sketch_init_list,cljs.core.conj,sk); - -if(cljs.core._EQ_.call(null,document.readyState,"complete")){ -return quil.sketch.init_sketches.call(null); -} else { -return null; -} -}); -goog.events.listenOnce(window,goog.events.EventType.LOAD,quil.sketch.init_sketches); - -//# sourceMappingURL=sketch.js.map diff --git a/src/assets/viz/2/quil/sketch.js.map b/src/assets/viz/2/quil/sketch.js.map deleted file mode 100644 index b9bbeec..0000000 --- a/src/assets/viz/2/quil/sketch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/sketch.js","sources":["sketch.cljs"],"lineCount":341,"mappings":";AAAA;;;;;;;AAQA,iCAAA,jCACEA;AAEF,6BAAA,7BAAMC;AAAN,AAAwBD;;AAExB,AAAA,8BAAA,2CAAA,wDAAA,CAAAE,gCAAA,WAAA,oDAAA,CAAAA,gCAAA,QAAA,mDAAA,CAAAA,gCAAA,QAAA,yDAAA,CAAAA,gCAAA,hcACEC;AAEF,+BAAA,\/BAAMC,sEAAkB;AAAxB,AACE,OAACC,yCAAuBC,KAAKH;;AAE\/B,AAAA,mBAAA,2BAAA,9CAAMK;AAAN,AAAA,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AA,0BAAA,AAAA3E,wBAAA8E;AAAA,AAAA,GAAAtE;AAAA,AAAA,IAAA,qBAAAA;AAAA,AAAA,GAAA,AAAAC,uCAAAqE;AAAA,IAAA,uBAAA,AAAApE,gCAAAoE;AAAA,AAAA,cAAA,AAAAnE,+BAAAmE;cAAAlE;cAAA,AAAAC,0BAAAD;cAAA;;;;;;;AAAA,cAAA,AAAAE,0BAAAgE,pCAAQ;AAAR,AAAA,AACE,GAAMC;AAAN,AACE,AAACT,iCAAW,AAAA,wFAAUU;;AADxB;;AAEA,AAAC,AAAA,gFAAKA;;AAHR;AAAA,cAAA,AAAAhE,yBAAA8D;cAAA;cAAA;cAAA;;;;;;;;AAAA;;;;;AAIF,oEAAA,7DAACG,gCAAOf;;AAEV,sCAAA,tCAAMgB,oFAAyB;AAA\/B,AACE,AAACC,+BAAMjB,6BAAiBkB,eAAKJ;;AAE7B,GAAM,6CAAA,7CAACjB,yBAAE,AAAcK;AAAvB,AACE,OAACK;;AADH;;;AAGF,AAACY,uBAAkBC,OAAUC,2BAAed","names":["quil.sketch\/*applet*","quil.sketch\/current-applet","js\/Processing.prototype.PConstants","quil.sketch\/rendering-modes","quil.sketch\/resolve-renderer","quil.util\/resolve-constant-key","mode","G__1217","quil.sketch\/size","js\/Error","width","height","quil.sketch\/bind-handlers","cljs.core\/seq","i__1222","count__1221","cljs.core\/-nth","chunk__1220","cljs.core\/nth","vec__1223","seq__1219","temp__4657__auto__","cljs.core\/chunked-seq?","cljs.core\/chunk-first","cljs.core\/chunk-rest","c__4461__auto__","cljs.core\/count","cljs.core\/first","vec__1228","cljs.core\/next","opts","quil-name","prc","cljs.core\/name","processing-name","*applet*-temp-val__1227","*applet*-orig-val__1226","*applet*-temp-val__1232","*applet*-orig-val__1231","handler","quil.sketch\/make-sketch","options","cljs.core\/cons","quil.middlewares.deprecated-options\/deprecated-options","cljs.core\/apply","cljs.core\/comp","p1__1249#","cljs.core\/merge","or__4047__auto__","cljs.core\/set","renderer","cljs.core\/concat","sketch-size","cljs.core\/assoc","setup","mouse-wheel","cljs.core\/atom","js\/Processing.Sketch","attach-function","cljs.core\/contains?","features","sketch","quil.sketch\/destroy-previous-sketch","host-elem","proc-obj","i__4642__auto__","len__4641__auto__","args__4647__auto__","cljs.core\/IndexedSeq","quil.sketch\/sketch","argseq__4648__auto__","self__4629__auto__","seq1250","cljs.core\/hash-map","goog.dom\/getElement","opts-map","cljs.core\/=","js\/console","js\/Processing","quil.sketch\/sketch-init-list","quil.sketch\/empty-body?","js\/document","child","quil.sketch\/add-canvas","canvas","canvas-id","quil.sketch\/init-sketches","cljs.core\/deref","i__1257","count__1256","chunk__1255","seq__1254","add-elem?","sk","cljs.core\/reset!","quil.sketch\/add-sketch-to-init-list","cljs.core\/swap!","cljs.core\/conj","goog.events\/listenOnce","js\/window","goog.events.EventType\/LOAD","cljs.core\/List"]} \ No newline at end of file diff --git a/src/assets/viz/2/quil/util.cljc b/src/assets/viz/2/quil/util.cljc deleted file mode 100644 index 3cd0739..0000000 --- a/src/assets/viz/2/quil/util.cljc +++ /dev/null @@ -1,109 +0,0 @@ -(ns ^{:doc "Utility fns"} - quil.util - (:require [clojure.string :as cstr])) - -(defn no-fn - "Function that does nothing." - []) - -#?(:clj - (defn callable? [value] - (or (fn? value) - (var? value)))) - -#?(:clj - (defn absolute-path [path] - (-> (str path) - (java.io.File.) - (.getAbsolutePath)))) - -#?(:clj - (defn int-like? - [val] - (let [t (type val)] - (or (= java.lang.Long t) - (= java.lang.Integer t))))) - -(defn resolve-constant-key - "Returns the val associated with key in mappings or key directly if it - is one of the vals in mappings. Otherwise throws an exception." - [key mappings] - (cond - (get mappings key) (get mappings key) - (some #{key} (vals mappings)) key - - :else (throw (#?(:clj Exception. - :cljs js/Error.) - (str "Expecting a keyword, got: " key ". Expected one of: " (vec (sort (keys mappings)))))))) - -(defn- length-of-longest-key - "Returns the length of the longest key of map m. Assumes m's keys are strings - and returns 0 if map is empty: - (length-of-longest-key {\"foo\" 1 \"barr\" 2 \"bazzz\" 3}) ;=> 5 - (length-of-longest-key {}) ;=> 0" - [m] - (or (last (sort (map #(.length %) (keys m)))) - 0)) - -(defn- gen-padding - "Generates a padding string starting concatting s with len times pad: - (gen-padding \"\" 5 \"b\") ;=> \"bbbbb\" - May be called without starting string s in which case it defaults to the - empty string and also without pad in which case it defaults to a single space" - ([len] (gen-padding "" len " ")) - ([len pad] (gen-padding "" len pad)) - ([s len pad] - (if (> len 0) - (gen-padding (str s pad) (dec len) pad) - s))) - -(defn print-definition-list - [definitions] - (let [longest-key (length-of-longest-key definitions)] - (dorun - (map (fn [[k v]] - (let [len (.length k) - diff (- longest-key len) - pad (gen-padding diff)] - (println k pad "- " v))) - definitions)))) - -(defn clj-compilation? [] - #?(:clj - (not - (boolean - (when-let [n (find-ns 'cljs.analyzer)] - (when-let [v (ns-resolve n '*cljs-file*)] - @v)))) - :cljs false)) - - -(defn prepare-quil-name [const-keyword] - (cstr/replace - (cstr/upper-case (name const-keyword)) - #"-" "_")) - -(defn prepare-quil-clj-constants [constants] - (into {} - (map - #(vector % (symbol (str "PConstants/" (prepare-quil-name %)))) - constants))) - -(defn prepare-quil-cljs-constants [constants] - (into {} - (map - #(vector % `(aget js/Processing.prototype.PConstants ~(prepare-quil-name %))) - constants))) - -(defn make-quil-constant-map [target const-map-name const-map] - `(def ^{:private true} - ~const-map-name - ~(if (= target :clj) - (prepare-quil-clj-constants const-map) - (prepare-quil-cljs-constants const-map)))) - -(defmacro generate-quil-constants [target & opts] - `(do - ~@(map - #(make-quil-constant-map target (first %) (second %)) - (partition 2 opts)))) diff --git a/src/assets/viz/2/quil/util.cljc.cache.json b/src/assets/viz/2/quil/util.cljc.cache.json deleted file mode 100644 index ffc87ae..0000000 --- a/src/assets/viz/2/quil/util.cljc.cache.json +++ /dev/null @@ -1 +0,0 @@ -["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Error",["^ "],"~$Processing",["^ ","~$prototype",["^ ","~$PConstants",["^ "]]]],"~:use-macros",["^ "],"~:excludes",["~#set",[]],"~:name","~$quil.util","~:imports",null,"~:requires",["^ ","~$cstr","~$clojure.string","^?","^?"],"~:cljs.spec/speced-vars",[],"~:uses",null,"~:defs",["^ ","~$clj-compilation?",["^ ","~:protocol-inline",null,"~:meta",["^ ","~:file","/home/mediocregopher/src/viz/out/quil/util.cljc","~:line",71,"~:column",7,"~:end-line",71,"~:end-column",23,"~:arglists",["~#list",["~$quote",["^L",[[]]]]]],"^:","~$quil.util/clj-compilation?","^F","out/quil/util.cljc","^J",23,"~:method-params",["^L",[[]]],"~:protocol-impl",null,"~:arglists-meta",["^L",[null,null]],"^H",1,"~:variadic?",false,"^G",71,"~:ret-tag","~$boolean","^I",71,"~:max-fixed-arity",0,"~:fn-var",true,"^K",["^L",["^M",["^L",[[]]]]]],"~$make-quil-constant-map",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",98,"^H",7,"^I",98,"^J",29,"^K",["^L",["^M",["^L",[["~$target","~$const-map-name","~$const-map"]]]]]],"^:","~$quil.util/make-quil-constant-map","^F","out/quil/util.cljc","^J",29,"^O",["^L",[["^X","^Y","^Z"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",98,"^S","~$any","^I",98,"^U",3,"^V",true,"^K",["^L",["^M",["^L",[["^X","^Y","^Z"]]]]]],"~$print-definition-list",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",60,"^H",7,"^I",60,"^J",28,"^K",["^L",["^M",["^L",[["~$definitions"]]]]]],"^:","~$quil.util/print-definition-list","^F","out/quil/util.cljc","^J",28,"^O",["^L",[["^12"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",60,"^S","^10","^I",60,"^U",1,"^V",true,"^K",["^L",["^M",["^L",[["^12"]]]]]],"~$generate-quil-constants",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",105,"^H",11,"^I",105,"^J",34,"~:macro",true,"^K",["^L",["^M",["^L",[["^X","~$&","~$opts"]]]]],"~:top-fn",["^ ","^R",true,"^U",1,"^O",["^L",[["^L",["^X","^16"]]]],"^K",["^L",[["^X","~$&","^16"]]],"^Q",["^L",[null]]]],"^:","~$quil.util/generate-quil-constants","^F","out/quil/util.cljc","^J",34,"^17",["^ ","^R",true,"^U",1,"^O",["^L",[["^L",["^X","^16"]]]],"^K",["^L",[["^X","~$&","^16"]]],"^Q",["^L",[null]]],"^O",["^L",[["^L",["^X","^16"]]]],"^P",null,"^Q",["^L",[null]],"^H",1,"^R",true,"^G",105,"^15",true,"^S","^10","^I",105,"^U",1,"^V",false,"^K",["^L",[["^X","~$&","^16"]]]],"~$resolve-constant-key",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",27,"^H",7,"^I",27,"^J",27,"^K",["^L",["^M",["^L",[["~$key","~$mappings"]]]]],"~:doc","Returns the val associated with key in mappings or key directly if it\n is one of the vals in mappings. Otherwise throws an exception."],"^:","~$quil.util/resolve-constant-key","^F","out/quil/util.cljc","^J",27,"^O",["^L",[["^1:","^1;"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",27,"^S",["^9",[null,"^10"]],"^I",27,"^U",2,"^V",true,"^K",["^L",["^M",["^L",[["^1:","^1;"]]]]],"^1<","Returns the val associated with key in mappings or key directly if it\n is one of the vals in mappings. Otherwise throws an exception."],"~$no-fn",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",5,"^H",7,"^I",5,"^J",12,"^K",["^L",["^M",["^L",[[]]]]],"^1<","Function that does nothing."],"^:","~$quil.util/no-fn","^F","out/quil/util.cljc","^J",12,"^O",["^L",[[]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",5,"^S","~$clj-nil","^I",5,"^U",0,"^V",true,"^K",["^L",["^M",["^L",[[]]]]],"^1<","Function that does nothing."],"~$prepare-quil-clj-constants",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",86,"^H",7,"^I",86,"^J",33,"^K",["^L",["^M",["^L",[["~$constants"]]]]]],"^:","~$quil.util/prepare-quil-clj-constants","^F","out/quil/util.cljc","^J",33,"^O",["^L",[["^1B"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",86,"^S","^10","^I",86,"^U",1,"^V",true,"^K",["^L",["^M",["^L",[["^1B"]]]]]],"~$prepare-quil-cljs-constants",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",92,"^H",7,"^I",92,"^J",34,"^K",["^L",["^M",["^L",[["^1B"]]]]]],"^:","~$quil.util/prepare-quil-cljs-constants","^F","out/quil/util.cljc","^J",34,"^O",["^L",[["^1B"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",92,"^S","^10","^I",92,"^U",1,"^V",true,"^K",["^L",["^M",["^L",[["^1B"]]]]]],"~$length-of-longest-key",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",39,"^H",8,"^I",39,"^J",29,"~:private",true,"^K",["^L",["^M",["^L",[["~$m"]]]]],"^1<","Returns the length of the longest key of map m. Assumes m's keys are strings\n and returns 0 if map is empty:\n (length-of-longest-key {\"foo\" 1 \"barr\" 2 \"bazzz\" 3}) ;=> 5\n (length-of-longest-key {}) ;=> 0"],"^1G",true,"^:","~$quil.util/length-of-longest-key","^F","out/quil/util.cljc","^J",29,"^O",["^L",[["~$m"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",39,"^S",["^9",["^10","~$number","^1@"]],"^I",39,"^U",1,"^V",true,"^K",["^L",["^M",["^L",[["~$m"]]]]],"^1<","Returns the length of the longest key of map m. Assumes m's keys are strings\n and returns 0 if map is empty:\n (length-of-longest-key {\"foo\" 1 \"barr\" 2 \"bazzz\" 3}) ;=> 5\n (length-of-longest-key {}) ;=> 0"],"~$gen-padding",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",48,"^H",8,"^I",48,"^J",19,"^1G",true,"^K",["^L",["^M",["^L",[["~$len"],["^1K","~$pad"],["~$s","^1K","^1L"]]]]],"^1<","Generates a padding string starting concatting s with len times pad:\n (gen-padding \"\" 5 \"b\") ;=> \"bbbbb\"\n May be called without starting string s in which case it defaults to the\n empty string and also without pad in which case it defaults to a single space","^17",["^ ","^R",false,"^U",3,"^O",["^L",[["^1K"],["^1K","^1L"],["~$s","^1K","^1L"]]],"^K",["^L",[["^1K"],["^1K","^1L"],["~$s","^1K","^1L"]]],"^Q",["^L",[null,null,null]]]],"^1G",true,"^:","~$quil.util/gen-padding","^F","out/quil/util.cljc","^J",19,"^17",["^ ","^R",false,"^U",3,"^O",["^L",[["^1K"],["^1K","^1L"],["~$s","^1K","^1L"]]],"^K",["^L",[["^1K"],["^1K","^1L"],["~$s","^1K","^1L"]]],"^Q",["^L",[null,null,null]]],"^O",["^L",[["^1K"],["^1K","^1L"],["~$s","^1K","^1L"]]],"^P",null,"^Q",["^L",[null,null,null]],"^H",1,"^R",false,"^G",48,"^I",48,"^U",3,"^V",true,"^K",["^L",[["^1K"],["^1K","^1L"],["~$s","^1K","^1L"]]],"^1<","Generates a padding string starting concatting s with len times pad:\n (gen-padding \"\" 5 \"b\") ;=> \"bbbbb\"\n May be called without starting string s in which case it defaults to the\n empty string and also without pad in which case it defaults to a single space"],"~$prepare-quil-name",["^ ","^D",null,"^E",["^ ","^F","/home/mediocregopher/src/viz/out/quil/util.cljc","^G",81,"^H",7,"^I",81,"^J",24,"^K",["^L",["^M",["^L",[["~$const-keyword"]]]]]],"^:","~$quil.util/prepare-quil-name","^F","out/quil/util.cljc","^J",24,"^O",["^L",[["^1O"]]],"^P",null,"^Q",["^L",[null,null]],"^H",1,"^R",false,"^G",81,"^S","^10","^I",81,"^U",1,"^V",true,"^K",["^L",["^M",["^L",[["^1O"]]]]]]],"~:cljs.spec/registry-ref",[],"~:require-macros",null,"~:cljs.analyzer/constants",["^ ","~:seen",["^9",["~:else","~$do","~$js/Processing.prototype.PConstants","~:clj","~$cljs.core/aget","~$def"]],"~:order",["^1U","^1Y","^1W","^1Z","^1X","^1V"]],"^1<","Utility fns"] \ No newline at end of file diff --git a/src/assets/viz/2/quil/util.js b/src/assets/viz/2/quil/util.js deleted file mode 100644 index f0e8bc9..0000000 --- a/src/assets/viz/2/quil/util.js +++ /dev/null @@ -1,168 +0,0 @@ -// Compiled by ClojureScript 1.10.439 {} -goog.provide('quil.util'); -goog.require('cljs.core'); -goog.require('clojure.string'); -/** - * Function that does nothing. - */ -quil.util.no_fn = (function quil$util$no_fn(){ -return null; -}); -/** - * Returns the val associated with key in mappings or key directly if it - * is one of the vals in mappings. Otherwise throws an exception. - */ -quil.util.resolve_constant_key = (function quil$util$resolve_constant_key(key,mappings){ -if(cljs.core.truth_(cljs.core.get.call(null,mappings,key))){ -return cljs.core.get.call(null,mappings,key); -} else { -if(cljs.core.truth_(cljs.core.some.call(null,cljs.core.PersistentHashSet.createAsIfByAssoc([key]),cljs.core.vals.call(null,mappings)))){ -return key; -} else { -throw (new Error(["Expecting a keyword, got: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(key),". Expected one of: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.vec.call(null,cljs.core.sort.call(null,cljs.core.keys.call(null,mappings))))].join(''))); - -} -} -}); -/** - * Returns the length of the longest key of map m. Assumes m's keys are strings - * and returns 0 if map is empty: - * (length-of-longest-key {"foo" 1 "barr" 2 "bazzz" 3}) ;=> 5 - * (length-of-longest-key {}) ;=> 0 - */ -quil.util.length_of_longest_key = (function quil$util$length_of_longest_key(m){ -var or__4047__auto__ = cljs.core.last.call(null,cljs.core.sort.call(null,cljs.core.map.call(null,(function (p1__1156_SHARP_){ -return p1__1156_SHARP_.length(); -}),cljs.core.keys.call(null,m)))); -if(cljs.core.truth_(or__4047__auto__)){ -return or__4047__auto__; -} else { -return (0); -} -}); -/** - * Generates a padding string starting concatting s with len times pad: - * (gen-padding "" 5 "b") ;=> "bbbbb" - * May be called without starting string s in which case it defaults to the - * empty string and also without pad in which case it defaults to a single space - */ -quil.util.gen_padding = (function quil$util$gen_padding(var_args){ -var G__1158 = arguments.length; -switch (G__1158) { -case 1: -return quil.util.gen_padding.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); - -break; -case 2: -return quil.util.gen_padding.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); - -break; -case 3: -return quil.util.gen_padding.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); - -break; -default: -throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); - -} -}); - -quil.util.gen_padding.cljs$core$IFn$_invoke$arity$1 = (function (len){ -return quil.util.gen_padding.call(null,"",len," "); -}); - -quil.util.gen_padding.cljs$core$IFn$_invoke$arity$2 = (function (len,pad){ -return quil.util.gen_padding.call(null,"",len,pad); -}); - -quil.util.gen_padding.cljs$core$IFn$_invoke$arity$3 = (function (s,len,pad){ -if((len > (0))){ -return quil.util.gen_padding.call(null,[cljs.core.str.cljs$core$IFn$_invoke$arity$1(s),cljs.core.str.cljs$core$IFn$_invoke$arity$1(pad)].join(''),(len - (1)),pad); -} else { -return s; -} -}); - -quil.util.gen_padding.cljs$lang$maxFixedArity = 3; - -quil.util.print_definition_list = (function quil$util$print_definition_list(definitions){ -var longest_key = quil.util.length_of_longest_key.call(null,definitions); -return cljs.core.dorun.call(null,cljs.core.map.call(null,((function (longest_key){ -return (function (p__1160){ -var vec__1161 = p__1160; -var k = cljs.core.nth.call(null,vec__1161,(0),null); -var v = cljs.core.nth.call(null,vec__1161,(1),null); -var len = k.length(); -var diff = (longest_key - len); -var pad = quil.util.gen_padding.call(null,diff); -return cljs.core.println.call(null,k,pad,"- ",v); -});})(longest_key)) -,definitions)); -}); -quil.util.clj_compilation_QMARK_ = (function quil$util$clj_compilation_QMARK_(){ -return false; -}); -quil.util.prepare_quil_name = (function quil$util$prepare_quil_name(const_keyword){ -return clojure.string.replace.call(null,clojure.string.upper_case.call(null,cljs.core.name.call(null,const_keyword)),/-/,"_"); -}); -quil.util.prepare_quil_clj_constants = (function quil$util$prepare_quil_clj_constants(constants){ -return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,(function (p1__1164_SHARP_){ -return (new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[p1__1164_SHARP_,cljs.core.symbol.call(null,["PConstants/",cljs.core.str.cljs$core$IFn$_invoke$arity$1(quil.util.prepare_quil_name.call(null,p1__1164_SHARP_))].join(''))],null)); -}),constants)); -}); -quil.util.prepare_quil_cljs_constants = (function quil$util$prepare_quil_cljs_constants(constants){ -return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,(function (p1__1165_SHARP_){ -return (new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[p1__1165_SHARP_,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol("cljs.core","aget","cljs.core/aget",6345791,null),null,(1),null)),(new cljs.core.List(null,new cljs.core.Symbol("js","Processing.prototype.PConstants","js/Processing.prototype.PConstants",2034048972,null),null,(1),null)),(new cljs.core.List(null,quil.util.prepare_quil_name.call(null,p1__1165_SHARP_),null,(1),null)))))],null)); -}),constants)); -}); -quil.util.make_quil_constant_map = (function quil$util$make_quil_constant_map(target,const_map_name,const_map){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"def","def",597100991,null),null,(1),null)),(new cljs.core.List(null,const_map_name,null,(1),null)),(new cljs.core.List(null,((cljs.core._EQ_.call(null,target,new cljs.core.Keyword(null,"clj","clj",-660495428)))?quil.util.prepare_quil_clj_constants.call(null,const_map):quil.util.prepare_quil_cljs_constants.call(null,const_map)),null,(1),null))))); -}); -var ret__4684__auto___1171 = (function (){ -quil.util.generate_quil_constants = (function quil$util$generate_quil_constants(var_args){ -var args__4647__auto__ = []; -var len__4641__auto___1172 = arguments.length; -var i__4642__auto___1173 = (0); -while(true){ -if((i__4642__auto___1173 < len__4641__auto___1172)){ -args__4647__auto__.push((arguments[i__4642__auto___1173])); - -var G__1174 = (i__4642__auto___1173 + (1)); -i__4642__auto___1173 = G__1174; -continue; -} else { -} -break; -} - -var argseq__4648__auto__ = ((((3) < args__4647__auto__.length))?(new cljs.core.IndexedSeq(args__4647__auto__.slice((3)),(0),null)):null); -return quil.util.generate_quil_constants.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4648__auto__); -}); - -quil.util.generate_quil_constants.cljs$core$IFn$_invoke$arity$variadic = (function (_AMPERSAND_form,_AMPERSAND_env,target,opts){ -return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(new cljs.core.List(null,new cljs.core.Symbol(null,"do","do",1686842252,null),null,(1),null)),cljs.core.map.call(null,(function (p1__1166_SHARP_){ -return quil.util.make_quil_constant_map.call(null,target,cljs.core.first.call(null,p1__1166_SHARP_),cljs.core.second.call(null,p1__1166_SHARP_)); -}),cljs.core.partition.call(null,(2),opts))))); -}); - -quil.util.generate_quil_constants.cljs$lang$maxFixedArity = (3); - -/** @this {Function} */ -quil.util.generate_quil_constants.cljs$lang$applyTo = (function (seq1167){ -var G__1168 = cljs.core.first.call(null,seq1167); -var seq1167__$1 = cljs.core.next.call(null,seq1167); -var G__1169 = cljs.core.first.call(null,seq1167__$1); -var seq1167__$2 = cljs.core.next.call(null,seq1167__$1); -var G__1170 = cljs.core.first.call(null,seq1167__$2); -var seq1167__$3 = cljs.core.next.call(null,seq1167__$2); -var self__4628__auto__ = this; -return self__4628__auto__.cljs$core$IFn$_invoke$arity$variadic(G__1168,G__1169,G__1170,seq1167__$3); -}); - -return null; -})() -; -quil.util.generate_quil_constants.cljs$lang$macro = true; - - -//# sourceMappingURL=util.js.map diff --git a/src/assets/viz/2/quil/util.js.map b/src/assets/viz/2/quil/util.js.map deleted file mode 100644 index b78bac5..0000000 --- a/src/assets/viz/2/quil/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"\/home\/mediocregopher\/src\/viz\/out\/quil\/util.js","sources":["util.cljc"],"lineCount":168,"mappings":";AAAA;;;AAIA;;;kBAAA,lBAAMA;AAAN,AAAA;;AAsBA;;;;iCAAA,jCAAMC,0EAGH,IAAI;AAHP,AAIE,oBACE,AAACC,wBAAIC,SAASC;AAAgB,OAACF,wBAAIC,SAASC;;AAD9C,oBAEE,yBAAA,zBAACC,wEAAOD,MAAK,AAACE,yBAAKH;AAAWC;;AAFhC,AAIgC,MAAO,KAAAG,MAEC,CAAA,8EAAA,LAAkCH,uEAA0B,AAACI,wBAAI,AAACC,yBAAK,AAACC,yBAAKP;;;;;AAEvH;;;;;;kCAAA,lCAAOQ,4EAKJ;AALH,AAME,IAAA,mBAAI,AAACE,yBAAK,AAACJ,yBAAK,wBAAA,WAAA,nCAACK;AAAD,AAAM,OAAAC;GAAY,AAACL,yBAAKM;AAAxC,AAAA,oBAAAJ;AAAAA;;AAAA;;;AAGF,AAAA;;;;;;wBAAA,gCAAA,xDAAOM;AAAP,AAAA,IAAA,UAAA,AAAA;AAAA,AAAA,QAAAD;KAAA;AAAA,OAAAC,oDAAA,CAAA,UAAA;;;KAAA;AAAA,OAAAA,oDAAA,CAAA,UAAA,MAAA,CAAA,UAAA;;;KAAA;AAAA,OAAAA,oDAAA,CAAA,UAAA,MAAA,CAAA,UAAA,MAAA,CAAA,UAAA;;;;AAAA,MAAA,KAAAX,MAAA,CAAA,8DAAA,AAAA;;;;;AAAA,AAAA,sDAAA,tDAAOW,iE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AAA;;AAAA;AAAA,AAAA,AAAAA,sDAAA,WAAA;AAAA,AAAA,IAAA,UAAA,AAAAE,0BAAAC;IAAA,cAAA,AAAAC,yBAAAD;IAAA,UAAA,AAAAD,0BAAAC;IAAA,cAAA,AAAAC,yBAAAD;IAAA,UAAA,AAAAD,0BAAAC;IAAA,cAAA,AAAAC,yBAAAD;AAAA,AAAA,IAAA,qBAAA;AAAA,AAAA,OAAAE,wDAAAC,QAAAC,QAAAC,QAAAL;;;AAAA;;;AAAA,AAAA,AAAA,oDAAA,pDAAUH;;AAAVS","names":["quil.util\/no-fn","quil.util\/resolve-constant-key","cljs.core\/get","mappings","key","cljs.core\/some","cljs.core\/vals","js\/Error","cljs.core\/vec","cljs.core\/sort","cljs.core\/keys","quil.util\/length-of-longest-key","or__4047__auto__","cljs.core\/last","cljs.core\/map","p1__1156#","m","G__1158","quil.util\/gen-padding","len","pad","s","quil.util\/print-definition-list","definitions","cljs.core\/dorun","p__1160","cljs.core\/nth","vec__1161","k","longest-key","diff","cljs.core\/println","v","quil.util\/clj-compilation?","quil.util\/prepare-quil-name","clojure.string\/replace","clojure.string\/upper-case","cljs.core\/name","const-keyword","quil.util\/prepare-quil-clj-constants","cljs.core\/into","cljs.core\/PersistentVector","p1__1164#","cljs.core\/symbol","constants","quil.util\/prepare-quil-cljs-constants","p1__1165#","cljs.core\/sequence","cljs.core\/seq","cljs.core\/concat","cljs.core\/List","quil.util\/make-quil-constant-map","const-map-name","cljs.core\/=","target","const-map","i__4642__auto__","len__4641__auto__","args__4647__auto__","cljs.core\/IndexedSeq","quil.util\/generate-quil-constants","argseq__4648__auto__","cljs.core\/first","seq1167","cljs.core\/next","self__4628__auto__","G__1168","G__1169","G__1170","ret__4684__auto__","p1__1166#","cljs.core\/second","cljs.core\/partition","opts"]} \ No newline at end of file -- cgit v1.2.3