We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db45a9f commit 6fd707eCopy full SHA for 6fd707e
1 file changed
window.js
@@ -1,5 +1,5 @@
1
const canvas = document.getElementById('canvas');
2
-const ctx = canvas.getContext("2d");
+const ctx = canvas.getContext("2d", {desynchronized: true, alpha: false});
3
export function draw(slice, width) {
4
const clamped = new Uint8ClampedArray(slice);
5
const height = clamped.length / (width * 4);
@@ -15,4 +15,4 @@ export function resize(x, y) {
15
}
16
export function dpr() {
17
return window.devicePixelRatio
18
-}
+}
0 commit comments