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.
- package/README.md +12 -3
- package/dist/hdr-canvas.cjs +2 -1
- package/dist/hdr-canvas.cjs.map +1 -1
- package/dist/hdr-canvas.js +2 -1
- package/dist/hdr-canvas.js.map +1 -1
- package/dist/hdr-canvas.min.js +1 -1
- package/dist/hdr-canvas.min.js.map +1 -1
- package/package.json +2 -2
- package/src/@types/HDRCanvas.d.ts +1 -0
- package/src/hdr-canvas.ts +24 -1
package/dist/hdr-canvas.js
CHANGED
@@ -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",
|
5938
|
+
const ctx = canvas.getContext("2d", hdr_options);
|
5938
5939
|
return ctx;
|
5939
5940
|
}
|
5940
5941
|
|