Skip to content

Commit 826758f

Browse files
committed
fix: typo refineTY variable and canvas willReadFrequently warning
1 parent 666edd0 commit 826758f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

2026/sketch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var cols, rows;
1212

1313
// Info for refining
1414
let refining = false;
15-
let refineTX, refinteTY, refineBX, refineBY;
15+
let refineTX, refineTY, refineBX, refineBY;
1616

1717
// Logo text replaces lumon image
1818
const logoTextWidth = 180;
@@ -214,10 +214,12 @@ function setup() {
214214

215215
const cnv = createCanvas(windowWidth, windowHeight);
216216
cnv.parent("game-container");
217+
cnv.drawingContext.willReadFrequently = true;
217218
frameRate(30);
218219

219220
// create a downscaled graphics buffer to draw to, we'll upscale after applying crt shader
220221
g = createGraphics(windowWidth, windowHeight);
222+
g.drawingContext.willReadFrequently = true;
221223

222224
// Scale buffer for mobile
223225
smaller = min(g.width, g.height);

sketch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var cols, rows;
1212

1313
// Info for refining
1414
let refining = false;
15-
let refineTX, refinteTY, refineBX, refineBY;
15+
let refineTX, refineTY, refineBX, refineBY;
1616

1717
// Logo text replaces lumon image
1818
const logoTextWidth = 180;
@@ -214,10 +214,12 @@ function setup() {
214214

215215
const cnv = createCanvas(windowWidth, windowHeight);
216216
cnv.parent("game-container");
217+
cnv.drawingContext.willReadFrequently = true;
217218
frameRate(30);
218219

219220
// create a downscaled graphics buffer to draw to, we'll upscale after applying crt shader
220221
g = createGraphics(windowWidth, windowHeight);
222+
g.drawingContext.willReadFrequently = true;
221223

222224
// Scale buffer for mobile
223225
smaller = min(g.width, g.height);

0 commit comments

Comments
 (0)