This commit is contained in:
awesomeuser 2023-08-04 18:16:22 +00:00
parent d97441835a
commit d71f6f3eba

View file

@ -102,9 +102,9 @@
const copy = ctx.createImageData(128, 64); const copy = ctx.createImageData(128, 64);
for (let i = 0; i < copy.data.length; i += 4) { for (let i = 0; i < copy.data.length; i += 4) {
//if (bits.substring(i/4, 1) == "1") { if (bits.substring(i/4, 1) === "1") {
copy.data[i+3] = 255; copy.data[i+3] = 255;
//} }
} }
ctx.putImageData(copy, 0, 0); ctx.putImageData(copy, 0, 0);