Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pehrlich committed Apr 17, 2014
1 parent 96edf10 commit b840f16
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 15,052 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ Requires LeapJS Skeletal 0.4.2 or greater with LeapJS-Plugins 0.1.3 or greater.

- Live Demo: [http://leapmotion.github.io/leapjs-rigged-hand/](http://leapmotion.github.io/leapjs-rigged-hand/)
- If you don't have a Leap, automatic mode is available. Ths JSON frame stream is almost 4mb, so give it a moment to load
and then make sure you have the page in focus for playback. http://leapmotion.github.io/rigged-hand/?spy=1
and then make sure you have the page in focus for playback. http://leapmotion.github.io/rigged-hand/?playback=1

![hands](https://f.cloud.github.com/assets/407497/2405446/5e7ee120-aa50-11e3-8ac0-579b316efc04.png)

Expand Down
6 changes: 3 additions & 3 deletions build/leap.rigged-hand-0.1.0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/leap.rigged-hand-0.1.0.min.js

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions examples/advanced.coffee
Expand Up @@ -124,12 +124,11 @@ if getParam('screenPosition')
cursor.style.bottom = screenPosition.y


if getParam('spy')
$.get 'http://lm-007.herokuapp.com/record_json/brian', (data)->
spy = window.LeapUtils.record_controller(controller, 500)
spy.replay({
frames: data.frames,
loop: true,
play_same_frames: true
})
if getParam('playback')
controller.use('playback', {
recording: 'examples/confidence2-49fps.json.lz'
autoPlay: true
pauseOnHand: true
})


14 changes: 5 additions & 9 deletions examples/advanced.js
Expand Up @@ -106,15 +106,11 @@ function getParam(name) {
});
}

if (getParam('spy')) {
$.get('http://lm-007.herokuapp.com/record_json/brian', function(data) {
var spy;
spy = window.LeapUtils.record_controller(controller, 500);
return spy.replay({
frames: data.frames,
loop: true,
play_same_frames: true
});
if (getParam('playback')) {
controller.use('playback', {
recording: 'examples/confidence2-49fps.json.lz',
autoPlay: true,
pauseOnHand: true
});
}

Expand Down
1 change: 1 addition & 0 deletions examples/confidence2-49fps.json.lz

Large diffs are not rendered by default.

0 comments on commit b840f16

Please sign in to comment.