-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposes.js
29 lines (26 loc) · 1.36 KB
/
poses.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { GestureDescription, Finger, FingerCurl } from 'fingerpose'
// Rock Gesture
export const rockGesture = new GestureDescription('rock')
rockGesture.addCurl(Finger.Index, FingerCurl.FullCurl)
rockGesture.addCurl(Finger.Middle, FingerCurl.FullCurl)
rockGesture.addCurl(Finger.Ring, FingerCurl.FullCurl)
rockGesture.addCurl(Finger.Pinky, FingerCurl.FullCurl)
rockGesture.addCurl(Finger.Thumb, FingerCurl.FullCurl)
rockGesture.addCurl(Finger.Thumb, FingerCurl.HalfCurl)
rockGesture.addCurl(Finger.Thumb, FingerCurl.NoCurl)
// Paper Gesture
export const paperGesture = new GestureDescription('paper')
paperGesture.addCurl(Finger.Index, FingerCurl.NoCurl)
paperGesture.addCurl(Finger.Middle, FingerCurl.NoCurl)
paperGesture.addCurl(Finger.Ring, FingerCurl.NoCurl)
paperGesture.addCurl(Finger.Pinky, FingerCurl.NoCurl)
paperGesture.addCurl(Finger.Thumb, FingerCurl.NoCurl)
// Scissors Gesture
export const scissorsGesture = new GestureDescription('scissors')
scissorsGesture.addCurl(Finger.Index, FingerCurl.NoCurl)
scissorsGesture.addCurl(Finger.Middle, FingerCurl.NoCurl)
scissorsGesture.addCurl(Finger.Ring, FingerCurl.FullCurl)
scissorsGesture.addCurl(Finger.Pinky, FingerCurl.FullCurl)
scissorsGesture.addCurl(Finger.Thumb, FingerCurl.FullCurl)
scissorsGesture.addCurl(Finger.Thumb, FingerCurl.HalfCurl)
scissorsGesture.addCurl(Finger.Thumb, FingerCurl.NoCurl)