 ;; $$registerPre
 ;; $$registerSize
 ;; $$registerSize
-;; $$requestImage
+
+(defn request-image
+	([filename] (.requestImage *applet* filename))
+	([filename extension] (.requestImage *applet* filename extension)))
 
 (defn reset-matrix [] (.resetMatrix *applet*))
 
-;; $$reverse
+(defn reverse-array [arr] (PApplet/reverse arr))
 
 (defn rotate
   ([angle] (.rotate *applet* (float angle)))


(defn no-loop [] (.noLoop *applet*))

(defn norm [val start stop] (PApplet/norm (float val) (float start) (float stop)))

(defn normal [nx ny nz] (.normal *applet* (float nx) (float ny) (float nz)))


  ([x1 y1 z1 x2 y2 z2] (.line *applet* (float x1) (float y1) (float z1) (float x2) (float y2) (float z2))))

;; $$link

(defn load-bytes [filename] (PApplet/loadBytes filename))

(defn load-font [filename] (.loadFont *applet* filename))

(defn load-image [filename] (.loadImage *applet* filename))

