, canvasImageData, imageFrame, depthModeRange) => {
          canvasImageData.data.set(imageFrame.imageData);
          ctx.putImageData(canvasImageData, 0, 0);
        };

        const renderDepthFrameAsBlueToRed = (ctx, canvasImageData, imageFrame, depthModeRange) => {
          const newPixelData = Buffer.from(imageFrame.imageData);
          const pixelArray = canvasImageData.data;
          let depthPixelIndex = 0;
          const range = 2 / 3;

          for (let i = 0; i < canvasImageData.data.leng