Skip to content

Instantly share code, notes, and snippets.

View insamniac's full-sized avatar
💭
what

Sam Burke insamniac

💭
what
View GitHub Profile
@insamniac
insamniac / three.cljs
Created November 16, 2015 01:51 — forked from michiakig/three.cljs
three.js demo in ClojureScript
(ns three.demo)
(def camera (THREE.Camera. 75 (/ window/innerWidth
window/innerHeight) 1 10000))
(set! (.z (.position camera)) 1000)
(def scene (THREE.Scene.))
(def geometry (THREE.CubeGeometry. 200 200 200))
(def obj (js/Object.))
(set! (.color obj) 0xff0000)
(set! (.wireframe obj) true)
(def material (THREE.MeshBasicMaterial. obj))