 (defn rect [x1 y1 x2 y2]
   (.rect *applet* (float x1) (float y1) (float x2) (float y2)))
 
-(defn rect-mode [mode] (.rectMode (int mode)))
+(defn rect-mode [mode] (.rectMode *applet* (int mode)))
 
 (defn red [what] (.red *applet* (int what)))
 

  ([size] (.box *applet* (int size)))
  ([w h d] (.box *applet* (float w) (float h) (float d))))

(defn brake-shape [] (.brakeShape *applet*))

(defn brightness [what] (.brightness *applet* (int what)))

(defn camera


(defn stroke-int
  ([rgb] (.stroke *applet* (int rgb)))
  ([rgb alpha] (.stroke *applet* (int rgb) (float alpha))))

(defn stroke-cap [cap] (.strokeCap *applet* (int cap)))

