Skip to content

Instantly share code, notes, and snippets.

View Quezion's full-sized avatar

Quest Yarbrough Quezion

View GitHub Profile
@Quezion
Quezion / three.cljs
Last active August 29, 2015 14:24 — forked from michiakig/three.cljs
Refactored for current THREE.js and minimized global side-effects
(ns three.demo
(:require
[THREE]))
(defn get-camera []
(let [camera (THREE.PerspectiveCamera. 75 (/ (.-innerWidth js/window)
(.-innerHeight js/window)) 1 10000)]
(set! (.-z (.-position camera)) 1000)
camera))