GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - leapmotion/leapjs: JavaScript client for the Leap Motion Controller

BranchesTags
Open more actions menu

Latest commit

 

History

891 Commits
891 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
examples
examples
 
 
images
images
 
 
integration_test
integration_test
 
 
lib
lib
 
 
stress
stress
 
 
template
template
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTORS.txt
CONTRIBUTORS.txt
 
 
Gruntfile.js
Gruntfile.js
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
leap-1.1.1.js
leap-1.1.1.js
 
 
leap-1.1.1.min.js
leap-1.1.1.min.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

LeapJS Logo

Welcome to the Leap Motion JavaScript framework.

You can now use LeapJS with Ultraleap Gemini V5 and Hyperion V6! Visit the Ultraleap Tracking WebSocket repository to grab the code and build it from source.

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

About

JavaScript client for the Leap Motion Controller

developer.leapmotion.com/leapjs

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

2.0k stars

Watchers

180 watching

Forks

431 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.