GithubHelp home page GithubHelp logo

alexxnica / leapjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leapmotion/leapjs

0.0 1.0 0.0 3.42 MB

JavaScript client for the Leap Motion Controller

Home Page: https://developer.leapmotion.com/leapjs

License: Apache License 2.0

JavaScript 98.40% Makefile 0.23% HTML 0.56% CoffeeScript 0.81%

leapjs's Introduction

What do you think about the future of VR? Take our survey.

LeapJS Logo

Welcome to the Leap Motion JavaScript framework.

Build Status

Leap.loop(function(frame){
  console.log(frame.hands.length);
});

Learn more in the Getting Started Guide, and the API Reference.

Installation

Browser: Download the latest leap.js from our CDN.

Bower: bower install leapjs

Node: npm install leapjs

Examples

Visit developer.leapmotion.com/gallery/category/javascript for the latest examples.

Some more basic examples have also been included in the examples/ directory.

Plugins

Plugins are used to modularly extend Leap Webapps with external libraries. Here we use the screenPosition plugin to get the position of the hand as an on-screen cursor.

Leap.loop({

  hand: function(hand){
    console.log( hand.screenPosition() );
  }

}).use('screenPosition');

Misc

LeapJS includes the vector math library GL-Matrix for your use and convenience. For example, we can easily compute a dot product. See the example and the gl matrix docs for more info.

var dot = Leap.vec3.dot(hand.direction, hand.indexFinger.direction);

Also visit the wiki for how to make plugins, protocol guide, and other stuff.

Contributing

Add your name, email, and github account to the CONTRIBUTORS.txt list, thereby agreeing to the terms and conditions of the Contributor License Agreement.

Open a Pull Request. If your information is not in the CONTRIBUTORS file, your pull request will not be reviewed.

Analytics

leapjs's People

Contributors

ajacksified avatar alexhung avatar alextucker avatar ashleywright avatar barbagallo avatar bingomanatee avatar bjnortier avatar cabbibo avatar ceg1236 avatar claudiopro avatar jbt avatar joshbuddy avatar juliangarnier avatar julien-c avatar l1fescape avatar leap-famous avatar ljxia avatar logotype avatar maxsillslm avatar neptunius avatar pehrlich avatar peterdavehello avatar raimo avatar robbieongithub avatar rpearson-catdevnull avatar saschagehlich avatar sfkiwi avatar stutrek avatar syntagmatic avatar tk120404 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.