This is a playground application to experiment with Leap Motion's client side Javascript API. The application is a static HTML5, CSS, and Javascript site served up by a NodeJS server. The Javascript files are concatenated and minified by a Grunt task and served up from the public directory. See below for installation instructions.
Here's what it looks like in action:
- NodeJS
- NPM
- A Leap Motion controller
- Install the Leap Motion controller software found at https://www.leapmotion.com/setup.
- Clone the repo and install its dependencies:
$ git clone http://github.com/Diasporism/leap_motion.git
$ cd leap_motion/
$ npm install
- Plug in the Leap Motion controller.
$ grunt
Just type...
$ node server.js
and visit localhost:3000.
If you don't feel like cloning the repo and running the server locally, you can visit the production website at http://leap-motion.herokuapp.com/ and play with it there.
Currently, the website takes up a lot of computer resources due to the high framerate at which Leap Motion gathers data (up to 200 fps). If your computer starts to experience slowness, close the web page and things should go back to normal.
I'm still working on optimizing and tweaking the way Leap Motion gathers and displays data. Stay tuned for updates.