hdr-canvas 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -5932,9 +5932,10 @@ function checkHDRCanvas() {
5932
5932
  }
5933
5933
  }
5934
5934
 
5935
+ const hdr_options = { colorSpace: Uint16Image.DEFAULT_COLORSPACE, pixelFormat: 'float16' };
5935
5936
  function initHDRCanvas(canvas) {
5936
5937
  canvas.configureHighDynamicRange({ mode: 'extended' });
5937
- const ctx = canvas.getContext("2d", { colorSpace: Uint16Image.DEFAULT_COLORSPACE, pixelFormat: 'float16' });
5938
+ const ctx = canvas.getContext("2d", hdr_options);
5938
5939
  return ctx;
5939
5940
  }
5940
5941