kovasb / gamma-playground

Examples of how to use ClojureScript's Gamma & Gamma-Driver WebGL libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gamma Playground

Join the chat at https://gitter.im/kovasb/gamma

Some examples of how to use Gamma and Gamma Driver. In particular, it contains the code translations of the popular Learn WebGL Series

Currently lessons 1-10 are ported. Please feel free to take a shot at porting the remaining 6, it's far easier than you might think! Head over to Issues to see the remaining lessons.

Warning

Please don't take the state of this code as finished - feel free to clean it up, send pull requests, and open issues. This should become a highly-polished introduction to gamma, from beginner usage to advanced.

Development

Open a terminal and type lein repl to start a Clojure REPL (interactive prompt).

In the REPL, type

(run)
(browser-repl)

The call to (run) does two things, it starts the webserver at port 10555, and also the Figwheel server which takes care of live reloading ClojureScript code and CSS. Give them some time to start.

Running (browser-repl) starts the Weasel REPL server, and drops you into a ClojureScript REPL. Evaluating expressions here will only work once you've loaded the page, so the browser can connect to Weasel.

When you see the line Successfully compiled "resources/public/app.js" in 21.36 seconds., you're ready to go. Browse to http://localhost:10555 and enjoy.

Attention: It is not longer needed to run lein figwheel separately. This is now taken care of behind the scenes

About

Examples of how to use ClojureScript's Gamma & Gamma-Driver WebGL libraries

License:Eclipse Public License 1.0


Languages

Language:Clojure 98.2%Language:JavaScript 1.3%Language:HTML 0.5%Language:CSS 0.0%