              if (joint.trackingState === Kinect2.TrackingState.tracked) {
                    size = 12;
                  }
                  if (isColor) {
                    ctx.fillRect(joint.colorX * canvas.width - size / 2, joint.colorY * canvas.height - size / 2, size, size);
                  } else {
                    ctx.fillRect(joint.depthX * canvas.width - size / 2, joint.depthY * canvas.height - size / 2, size, size);
                  }
                }
              }
              inde