   "Calculates the natural logarithm (the base-e logarithm) of a
   number. This function expects the values greater than 0.0."
   [val]
-  (PApplet/log (float val)))
-
-#+clj
+  #+clj (PApplet/log (float val))
+  #+cljs (.log (current-applet) val))
+
 (defn
   ^{:requires-bindings false
     :processing-name "mag()"

  the value of the parameter. For example, (ceil 9.03) returns the
  value 10."
  [n]
  (PApplet/ceil (float n)))

(defn
  ^{:requires-bindings true

  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 (current-applet) start stop amt))

(defn
  ^{:requires-bindings true
