Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function updateHandState(context, handState, jointPoint) {
var HANDCLOSEDCOLOR = "red";
var HANDOPENCOLOR = "green";
var HANDLASSOCOLOR = "blue";
switch (handState) {
case Kinect2.HandState.closed:
drawHand(context, jointPoint, HANDCLOSEDCOLOR);
break;
case Kinect2.HandState.open:
drawHand(context, jointPoint, HANDOPENCOLOR);
break;
case Kinect2.HandState.lasso:
drawHand(context, jointPoint, HANDLASSOCOLOR);
break;
}
}
function updateHandState(context, handState, jointPoint) {
switch (handState) {
case Kinect2.HandState.closed:
drawHand(context, jointPoint, HANDCLOSEDCOLOR);
break;
case Kinect2.HandState.open:
drawHand(context, jointPoint, HANDOPENCOLOR);
break;
case Kinect2.HandState.lasso:
drawHand(context, jointPoint, HANDLASSOCOLOR);
break;
}
}
function updateHandState(context, handState, jointPoint) {
switch (handState) {
case Kinect2.HandState.closed:
drawHand(context, jointPoint, HANDCLOSEDCOLOR);
break;
case Kinect2.HandState.open:
drawHand(context, jointPoint, HANDOPENCOLOR);
break;
case Kinect2.HandState.lasso:
drawHand(context, jointPoint, HANDLASSOCOLOR);
break;
}
}