      nil))))
 
 '(setup 800 480 24)
-'(start-recording)


(def gif-cam (atom nil))
(def gif-tex (atom nil))
(def gif-encoder (atom false))

(defn setup-encoder []
 (let [encoder (AnimatedGifEncoder. (GameUtils/CreateDocumentFile))]
  (reset! gif-encoder encoder)))

(defn setup [w h b]

(defn start-recording []
 (let [start-time Time/time
       recording-canvas (hard/clone! :ui/recording-canvas)]
  (setup-encoder)
  (set! (.worldCamera (a/cmpt recording-canvas Canvas)) (a/cmpt (a/object-tagged "skatecam") Camera))
  (timeline* :loop
   (wait Time/deltaTime)
