    }
          ctx.putImageData(canvasImageData, 0, 0);
        };

        const renderBodyFrame = (ctx, canvas, bodyFrame, isColor) => {
          let index = 0;
          bodyFrame.bodies.forEach((body) => {
            if(body.tracked) {
              for(const jointType in body.joints) {
                const joint = body.joints[jointType];
                if (joint.trackingState > Kinect2.TrackingState.notTracked) {
                  ctx.fillStyle = colors[index];
                  let size = 4;
    